adspace


I am trying to automate a manual processing of iDOCs in
BD87. I used the following code to pass idoc-id to global
variable 'DCN' and then skip the first screen of BD87 to go
to processing directly. After running this code
SET PARAMETER ID 'DCN' FIELD itabhdr-idoc_id.
CALL TRANSACTION 'BD87' AND SKIP FIRST SCREEN.
it takes me to the first screen because it cannot recognize
my idoc-id. How I can pass idoc-id to global?
I have used the above code to goto VA02 with VBELN and it
worked perfectly.

Answer Posted / Vijay Sagar

To properly pass the iDOC ID to the global variable 'DCN' and skip the first screen of BD87, you should use the following ABAP code:
1. Declare the global table IT_IDOC_HEADER with structure ITABHDR
2. Read the iDOC header data into this global table before calling transaction BD87
3. Set the ID parameter 'DCN' to the appropriate field in the global table (e.g., itabhdr-idoc_id)
4. Call transaction BD87 and skip the first screen using the CALL TRANSACTION command

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is your current client number?

1139


Hi every one ! You people are doing a great job here , Im going to attend Tata Technologies interivew on this sunday,Can anyone who has already attended this company interivew or other companies interivews in abap pls share ur experience with me and help me to get into job my id ushareddyabap@gmail.com. Thankyou verymcuh

2008


please give the remaining answers.

2307


What is the project you are currently working and work that you are doing

1606


How do you get the number of lines in an internal table? How to use a specific number occurs statement?

1026


what comes in Timkein written test I hope some body can tell me at this id plz tell it before 9 pm 19 march

2233


Did you create secondary index?

1239


How can we handle table control in bdc? : abap bdc

1189


1/ How do u apprach if error occur in sending idocs ? 2/ where u assigned process code ?

2070


What work you have done in HR module

1456