SAP DBM Pricing Account Determination for CO

The below form routine is delivered empty and customer can implement his own logic how to determine data (structures ls_header and ls_item) which are needed for account allocation determination Include : /DBM/LCO_INTF11 (User-Exit) Error Message if not implemented Cost element  contains cost element category  SAP DBM Pricing Account Determination for CO Cost element contains cost element category SAP DBM Pricing Account Determination for CO

Continue reading »

SAP DBM Addition of Z fields in pricing

For the SAP DBM Order we can add new Z fields for pricing. Structure : KOMK (Append structure for header conditions), KOMP (Append structure for Item conditions) BADI : /DBM/PRICING_COM In the above BADI two Methods are used /DBM/IF_EX_PRICING_COM~CHANGE_KOMK (For Header) /DBM/IF_EX_PRICING_COM~CHANGE_KOMP […]

Continue reading »

SAP Function Module for the Pending Task

SAP Function Module for getting the pending Task list. You can get the In-Progress Work Item. lv_swr_task–wi_rh_task = ‘TS90000004’. APPEND lv_swr_task TO lt_swr_task. lv_swr_task–wi_rh_task = ‘TS90000027’. APPEND lv_swr_task TO lt_swr_task. lv_swr_task–wi_rh_task = ‘TS90000028’. APPEND lv_swr_task TO lt_swr_task. *  BREAK-POINT. lv_task_filter = lt_swr_task. REFRESH :lt_worklist. CALL FUNCTION ‘SAP_WAPI_CREATE_WORKLIST’ EXPORTING user           = sy–uname language       = ‘E’ im_task_filter = lv_task_filter TABLES worklist       = lt_worklist.  

Continue reading »

Screen Exit IW32 Notification

Screen Exit for the Notification. You can add a Z screen in IW31, IW32 and IW33. Technical Objects Table : QMEL (CI_QMEL Structure needs to be appended with Z fields required) User-Exit: QQMA0001

Continue reading »

SAP Contract Create BAPI VA41

SAP SD Contact Create using VA41 transaction BAPI : BAPI_CONTRACT_CREATEFROMDATA Helpful Source Code : *Field-Symbol declaration FIELD-SYMBOLS: <fs_vbap> TYPE vbap, <fs_vbak> TYPE gty_vbak, <fs_konv> TYPE gty_konv, <fs_vbfa> TYPE gty_vbfa, <fs_vbkd> TYPE gty_vbkd. *Data Declaration DATA: ls_item         TYPE bapisditm, lt_item         TYPE TABLE OF bapisditm, ls_item_x       TYPE bapisditmx, lt_item_x       TYPE TABLE OF bapisditmx, ls_condition1   TYPE bapicond, lt_condition1   TYPE TABLE OF bapicond, ls_condition1_x TYPE bapicondx, lt_condition1_x TYPE TABLE OF bapicondx, ls_condition2   TYPE bapicond, lt_condition2   TYPE TABLE OF bapicond, ls_condition2_x TYPE bapicondx, lt_condition2_x TYPE TABLE OF bapicondx, ls_condition3   TYPE bapicond, lt_condition3   TYPE TABLE OF bapicond, ls_condition3_x TYPE bapicondx, lt_condition3_x TYPE TABLE OF bapicondx. LOOP AT gt_vbap ASSIGNING <fs_vbap>. READ TABLE gt_vbak ASSIGNING <fs_vbak> WITH KEY  vbeln = <fs_vbap>–vbeln BINARY SEARCH. […]

Continue reading »

Read Material Classifications

The BAPI can be used for reading the Classification of Material. Material Classification created using transaction MM01 & MM02 BAPI : BAPI_OBJCL_GETDETAIL Input : OBJECTKEY : Material Number OBJECTTABLE : MARA CLASSNUM : Class Name CLASSTYPE : Class ID  

Continue reading »

SAP Customer Extension to Comany code & Sales Org BAPI

SAP Customer Extension BAPI for sales organization and company code.     DATA : “Local Variable lv_vkorg TYPE knvv–vkorg, “Local Structure ls_kna1  TYPE kna1, ls_knvv  TYPE knvv, ls_knvp  TYPE knvp, ls_fknvp TYPE fknvp, “Local Internal Table lt_knvp  TYPE TABLE OF knvp, lt_fknvp TYPE TABLE OF fknvp. “Extension to Sales Org on which Customer is opened SELECT SINGLE kunnr INTO ls_knvv–kunnr FROM vlcvehicle WHERE vhvin = cs_order_creation–vhvin. CHECK sy–subrc = 0. ” Customer Details SELECT SINGLE * FROM kna1 INTO ls_kna1 WHERE kunnr = ls_knvv–kunnr. “check Customer Extended to Sales Org or Not SELECT SINGLE vkorg INTO lv_vkorg FROM knvv WHERE kunnr = ls_knvv–kunnr AND vkorg = cs_order_creation–vkorg. IF sy–subrc NE 0. *        ls_knvv-kunnr = . ls_knvv–vkorg = cs_order_creation–vkorg. […]

Continue reading »
1 11 12 13 14 15