‎2010 Jan 06 5:36 AM
Hi Experts,
I have a issue with my BDC program execution,Actually it stops at a particular screen where i have to press enter and again i have to press enter to another pop up screen to save my data.
But when i checked the BDC code it was fine,the OK-CODE had all the values perfectly.
But still while i execute the program i have to press Enter to two pop screens to Save my data.
Can u suggest a solution.........
regards,
Kishore
‎2010 Jan 06 6:00 AM
Hi Kishore,
try to find out the BAPI or FM for the Same which ur going to upload.
Regards,
Kranthi
‎2010 Jan 06 6:07 AM
Hi,
To which Tcode your doing BDC? And find the OK code for the ENTER and populate into BDCDATA table.
Regards,
Bharani
‎2010 Jan 06 6:11 AM
Hi,
Actually my BDC Prog is for tcode MM01 and the ok-code for Enter is also populated in the BDCDATA table.
Is there any other way to debug in this case other than all screen mode.
Regards,
Kishore
‎2010 Jan 06 6:30 AM
Hi,
1. In the recording we can check by executing that one
2. Check that internal table is holding that Enter and Yes values. Are you creating any session through program or using the call Trans.
Could you please paste the that code.
Regards,
Bharani
‎2010 Jan 06 6:34 AM
Hi Bharani,
I am using a Call transaction and i have also checked the internal table holding the values for Enter.
Regards,
Kishore
‎2010 Jan 06 6:36 AM
PERFORM input USING: 'SAPLMGMM' '0060' 'X',
'RMMG1-MATNR' z_matnr ' ',
'RMMG1-MBRSH' 'S' ' ',
'RMMG1-MTART' z_mtart ' ',
'BDC_OKCODE' '/00' ' '.
if z_mstae = 'Y7'.
PERFORM input USING: 'SAPLMGMM' '0070' 'X',
'MSICHTAUSW-KZSEL(09)' 'X' ' ',
'BDC_OKCODE' '=ENTR' ' '.
else.
PERFORM input USING: 'SAPLMGMM' '0070' 'X',
'MSICHTAUSW-KZSEL(13)' 'X' ' ',
'MSICHTAUSW-KZSEL(14)' 'X' ' ',
'BDC_OKCODE' '=ENTR' ' '.
endif.
PERFORM input USING: 'SAPLMGMM' '0080' 'X',
'RMMG1-WERKS' '1100' ' ',
'RMMG1-LGORT' 'JMA1' ' ',
'BDC_OKCODE' '=ENTR' ' '. "Kishore
PERFORM input USING: 'SAPLMGMM' '4000' 'X',
'BDC_OKCODE' '/00' ' '.
PERFORM input USING: 'SAPLMGMM' '4000' 'X',
'BDC_OKCODE' '=BU' ' '.
CALL TRANSACTION 'MM01' USING bdcdat MODE v_mode.
REFRESH bdcdat.
WAIT UP TO 1 SECONDS.
‎2010 Jan 06 6:43 AM
Hi Kishore,
It is the popup like stating that YES or NO or any other than that..
Regards,
Bharani
‎2010 Jan 06 6:53 AM
Hi Bharani,
Its a Pop-Up screen with a Plant and Storage location data,Just asking for a Enter command.When i hit Enter it goes on to the next pop-up screen for save, then i hit enter it saves the data.
Regards,
Kishore
‎2010 Jan 06 9:12 AM
Can you try this.
in ctuparams pass the paramerter NOBINPT = 'X'.
data:w_ctu_params type CTU_PARAMS
w_ctu_params-UPDMODE = 'L'.
w_ctu_params-DEFSIZE = 'X'.
w_ctu_params-DISMODE = 'A'.
w_ctu_params-NOBINPT = 'X'.
CALL TRANSACTION 'ME21N' OPTIONS FROM w_ctu_params.
May i know which transaction you are using .
‎2010 Jan 06 9:59 AM
‎2010 Jan 06 10:33 AM
‎2010 Jan 12 8:19 AM
Hi,
first of all check your are bdc recording,i think u r running the calltransaction method in 'A' (all screen mode), check with 'N' mode no screen mode.
Regards,
Madhu