2006 Jan 05 11:45 PM
Hello,
Iam in a situation to populate a dummy segment in the idoc as i need to indicate the end of the idoc for some calculations in subsystem side.Iam using SHPORD/DELVRY03 but Iam not able to populate the segment (either E1EDL37 or E1EDL54) through the user exit as its not checking for the particular segment while executing the function module.Is there any other way to achieve this....?
Thanks,
Larry
Hello,
Iam in a situation to populate a dummy segment in the idoc as i need to indicate the end of the idoc for some calculations in subsystem side.Iam using SHPORD/DELVRY03 but Iam not able to populate the segment (either E1EDL37 or E1EDL54) through the user exit as its not checking for the particular segment while executing the function module.Is there any other way to achieve this....?
Thanks,
Larry
2006 Jan 06 5:31 AM
Hi Larry,
Can u mention the transaction that your using to trigger your idoc, is it a transaction or are you using message control.Also let me know the exit that your referring to.
Thanks & Regards,
Vanita
2006 Jan 06 1:26 PM
Hello,
Iam trigerring the Idoc when the goods issue been posted to the outbound delivery(VL02N) created against a STO.Iam using the message control.The userexit is V56K0001 -EXIT_SAPLV56K_002.
Thanks,
Larry
2006 Jan 06 1:38 PM
The function module provides field SEGNAM. You can add condition for it.
e.g. Loop at IDOC_DATA into wa_idata.
Case wa_idata-segnam = ....
....
Endcase.
Endloop.
Or You may use read statement also.
If you want to Insert your Segment then decide after which segment your segment should be added. Then in case during teh same segment add a entry.
It will be processed then.
Please let us know if you need further inputs.
Thanks.
MAhendra
2006 Jan 06 4:30 PM
Hello,
Thanks for the reply,Yeah I tried that one adding the segment after my last segment E1EDL24.
This was my piece of code
case idoc_data-segnam.
When 'E1EDL24'.
wa_idoc_data-segnam = 'E1EDL54'.
append wa_idoc_data to Idoc_data.
endcase.
I checked , it seems while getting in to user exit idoc_data has only the current segment details been read.(Correct me if Iam wrong).
So when i add this piece of code the idoc structure varies and it errors out.(There are some child segments to E1EDL24 do i need to consider them as last segment or the parent one...Iam confused).
Thanks
Larry
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |