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 Transcation Call

former_member186413
Participant
0 Likes
2,314

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
Read only

Former Member
0 Likes
2,257

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
Read only

former_member194152
Contributor
0 Likes
2,257

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

Read only

0 Likes
2,257

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.

Read only

arsul_parshuram
Participant
0 Likes
2,257

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

Read only

0 Likes
2,257

Hi Parchuram,

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

Read only

former_member188827
Active Contributor
0 Likes
2,257

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

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

Regards

Read only

0 Likes
2,257

Hi Guys,

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

Read only

Former Member
0 Likes
2,257

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.

Read only

0 Likes
2,257

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?

Read only

Former Member
0 Likes
2,257

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

Regards,

Mahe.

Read only

Former Member
0 Likes
2,258

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,

Read only

0 Likes
2,257

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.