07-03-2013 12:21 PM
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.
07-03-2013 12:41 PM
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,
07-03-2013 12:28 PM
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
07-04-2013 1:24 AM
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.
07-03-2013 12:28 PM
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
07-04-2013 1:27 AM
Hi Parchuram,
It still doesn't solve the problem, but thanks anyway. Do you have any other suggestions?
07-03-2013 12:30 PM
Use display mode 'E' instead of 'A'.
CALL TRANSACTION 'ZSD001' USING lt_bdc MODE 'E' UPDATE 'S'.
Regards
07-04-2013 1:28 AM
07-03-2013 12:38 PM
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.
07-04-2013 1:31 AM
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?
07-03-2013 12:39 PM
use mode 'N' instead of 'A', and make put Update is asynchronous.
Regards,
Mahe.
07-03-2013 12:41 PM
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,
07-04-2013 1:59 AM
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.