Whether you have one or more transactions in one batch input session, depends of the sequence of the BDC routines. One transaction LOOP AT gi_custnr INTO g_custnr. PERFORM bdc_newdynpro USING 'SAPMF02D' '0108'. PERFORM bdc_field USING: 'RF02D-KUNNR' g_custnr-kunnr, 'RF02D-VKORG' 'NVE', 'RF02D-VTWEG' '01', 'RF02D-SPART' '01', 'RF02D-D0320' 'X', 'BDC_OKCODE' '/00'. PERFORM bdc_newdynpro USING 'SAPMF02D' '0320'. PERFORM bdc_field USING: 'KNVV-KTGRD' 'Z1', 'BDC_OKCODE' '=UPDA'. PERFORM open_group. PERFORM bdc_insert USING 'VD02'. PERFORM close_group. REFRESH bdc_tab. ENDLOOP. More transactions PERFORM open_group. LOOP AT gi_custnr INTO g_custnr. PERFORM bdc_newdynpro USING 'SAPMF02D' '0108'. PERFORM bdc_field USING: 'RF02D-KUNNR' g_custnr-kunnr, 'RF02D-VKORG' 'NVE', 'RF02D-VTWEG' '01', 'RF02D-SPART' '01', 'RF02D-D0320' 'X', 'BDC_OKCODE' '/00'. PERFORM bdc_newdynpro USING 'SAPMF02D' '0320'. PERFORM bdc_field USING: 'KNVV-KTGRD' 'Z1', 'BDC_OKCODE' '=UPDA'. PERFORM bdc_insert USING 'VD02'. REFRESH bdc_tab. ENDLOOP. PERFORM close_group.
Sunday, July 27, 2014
5
ABAP Tips: One or more transactions in every batch input session
Whether you have one or more transactions in one batch input session, depends of the sequence of the BDC routines. One transaction LOOP ...
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment