Application Development 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: 

BDC Transcation Call

former_member186413
Participant
0 Kudos

Hi Expert,

This is my code

      lt_bdc-program = 'ZDT_SD_SALE_ORDER'.

      lt_bdc-dynpro  = '2000'.

      lt_bdc-dynbegin = 'X'.

      lt_bdc-fnam = 'BDC_OKCODE'.

      lt_bdc-fval = 'SWITCH'.

      APPEND lt_bdc.

      CLEAR lt_bdc.

      lt_bdc-program = 'ZDT_SD_SALE_ORDER'.

      lt_bdc-dynpro  = '2000'.

      lt_bdc-dynbegin = 'X'.

      lt_bdc-fnam = 'BDC_OKCODE'.

      lt_bdc-fval = 'SEARCH'.

      APPEND lt_bdc.

      CLEAR lt_bdc.

      lt_bdc-program ='ZDT_SD_SALE_ORDER'.

      lt_bdc-dynpro = '0005'.

      lt_bdc-dynbegin = 'X'.

      lt_bdc-fnam = 'G_SO'.

      lt_bdc-fval = itab-kdauf.

      APPEND lt_bdc.

      CLEAR lt_bdc.

      lt_bdc-fnam = 'BDC_OKCODE'.

      lt_bdc-fval = 'ENTER'.

      APPEND lt_bdc.

      CLEAR lt_bdc.

      CALL TRANSACTION 'ZSD001'  USING lt_bdc MODE 'A' UPDATE 'S'.

But when It display the zsd001, It display another dialog box which is like this

and I have press enter to go through each step.

How can I avoid this?

Thanks.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Use SHDB recording and check OK_CODE in that. After that copy paste that OK_CODE in your Code.

I think / is missing in the OK_CODE.

Regards,

11 REPLIES 11

former_member194152
Contributor
0 Kudos

Try to put "/" in front of on code like /SWITCH, /SEARCH etc, if it is a custom program then need to check GUI status properly

0 Kudos

Hi Gagan,

Thnks for your suggestion, but it still doesn't work. In the field, it will display as /SWITH....and Both of them are  custom programs.

arsul_parshuram
Participant
0 Kudos

Hi Wag,

have you hard coded the SY-UCOMM values if you wnat save these then use this  '=BU'.

Please provide whole code.

Thanks,

Parshuram

0 Kudos

Hi Parchuram,

It still doesn't solve the problem, but thanks anyway. Do you have any other suggestions?

former_member188827
Active Contributor
0 Kudos

Use display mode 'E' instead of 'A'.

CALL TRANSACTION 'ZSD001'  USING lt_bdc MODE 'E' UPDATE 'S'.

Regards

0 Kudos

Hi Guys,

I want it to display whole along the process, so.

Former Member
0 Kudos

Hi Wang,

You are calling your BDC program in 'A' mode, that is all screen mode and hence it asks for user input for each screen/action.

You can avoid this by using either 'E' as suggested by 'Neweaver' above to get popup only when an error is encountered or 'N' where no screen popup would occur.

Please let me know if any doubt.

Regards,

DN.

0 Kudos

Hi Deepak,

I know this is great idea, except that the user have get into the zsd001 to do some work. So what else do you have for your suggestion?

Former Member
0 Kudos

use mode 'N' instead of 'A', and make put Update is asynchronous.

Regards,

Mahe.

Former Member
0 Kudos

Hi,

Use SHDB recording and check OK_CODE in that. After that copy paste that OK_CODE in your Code.

I think / is missing in the OK_CODE.

Regards,

0 Kudos

Hi Everyone,

I think using SHDB recording the Transaction first, and then copy and paste to the calling program. it will work by 100% ganrantee . 

Thanks everyone.