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 »

Upload any Database Table

This is a global program to upload any database table in SAP environment. Simply select the Path of the file and Table name. Helpful Source Code:- REPORT zupload_table1. TYPE-POOLS: slis. FIELD-SYMBOLS: <dyn_table> TYPE STANDARD TABLE, <dyn_wa>, <dyn_field>. DATA: it_fldcat    TYPE lvc_t_fcat, wa_it_fldcat TYPE lvc_s_fcat. TYPE-POOLS : abap. DATA: new_table TYPE REF TO data, new_line  TYPE REF TO data. DATA: xcel TYPE TABLE OF alsmex_tabline WITH HEADER LINE. SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text . PARAMETERS: p_file  TYPE  rlgrap–filename DEFAULT ‘c:Test.csv’, *parameters: p_flds type i. […]

Continue reading »

SAP DBM Cashdesk

In SAP DBM Cashdesk when user enters /DBM/CASHDESK, user gets a Pop-Up of Cash desk names. The user see’s all the list of created cashdesks in the system. But as a user the list should be visible as per the […]

Continue reading »

Call Interlinking Actions in SAP DBM

In SAP DBM you can create a interlinking actions, Example  QRPU action is configured to create a PO for the used vehicle. When this action is called, then 3 other actions are called in background QTIP, QIOG and QORD. Now these actions are […]

Continue reading »

SAP VMS action program

VMS actions can be processed using BAPI. BAPI : VELO09_SET_ACTION Helpful Source Code : *”———————————————————————- *”*”Local Interface: *” IMPORTING *” VALUE(IV_ACTION) TYPE CHAR04 *” VALUE(IV_VHVIN) TYPE VLCVEHICLE-VHVIN *”———————————————————————- DATA: vlcactdata_cs TYPE vlcactdata, ls_vehicle TYPE vlcvehicle, lt_vehicle TYPE TABLE OF vlcdiavehi, lv_vhvin […]

Continue reading »

DBM Order Create BAPI

SAP DBM Order creation BAPI : /DBM/ORD_RFC_CREATE. This BAPI  helps in creation of DBM Order, the order can viewed using the transaction /DBM/ORDER02 & /DBM/ORDER03. Helpful Source Code:- ls_vbak_rfc-audat = sy-datum. ls_vbak_rfc-vkorg = lv_lifnr ls_vbak_rfc-vtweg = ’04’. ls_vbak_rfc-spart = ’30’. ls_vbak_rfc-werks = lv_lifnr. ls_vbak_rfc-bukrs_vf = lv_lifnr+02(04). ls_vbak_rfc-mfrnr  = ‘ZTEST’. ls_vbak_rfc-engine = ‘MM’. ls_vbak_rfc-hstat  = ‘H000′. […]

Continue reading »
1 13 14 15 16