Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BDC Error while execution

Former Member
0 Likes
1,290

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

12 REPLIES 12
Read only

Former Member
0 Likes
1,256

Hi Kishore,

try to find out the BAPI or FM for the Same which ur going to upload.

Regards,

Kranthi

Read only

BH2408
Active Contributor
0 Likes
1,256

Hi,

To which Tcode your doing BDC? And find the OK code for the ENTER and populate into BDCDATA table.

Regards,

Bharani

Read only

Former Member
0 Likes
1,256

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

Read only

0 Likes
1,256

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

Read only

Former Member
0 Likes
1,256

Hi Bharani,

I am using a Call transaction and i have also checked the internal table holding the values for Enter.

Regards,

Kishore

Read only

Former Member
0 Likes
1,256

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.

Read only

0 Likes
1,256

Hi Kishore,

It is the popup like stating that YES or NO or any other than that..

Regards,

Bharani

Read only

Former Member
0 Likes
1,256

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

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,256

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 .

Read only

Former Member
0 Likes
1,256

Thanks guys for all your kind replies...got it done

Read only

0 Likes
1,256

Please specify the solution.

Read only

Former Member
0 Likes
1,256

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