‎2010 Feb 01 8:47 AM
Hello ,
My requirement is, In my transaction VA01 , I have added one custom field for each line item. i.e best before date of each material.
now , whenever the Inbound IDOC triggers, i have to check whether the data for custom field is there or not? if it exists then i need to update the custom field of VBAP table.
For this , i am using the FM IDOC_INPUT_ORDERS, but i am confused which exit i need to use. Can any body tell me the logic also for that....how to update the custom database field.
Thanks
‎2010 Feb 01 8:51 AM
Hi,
The custom field is added in the child segment ... So please check the parent segment and then check for userexit after the parent segment .. Please try the same.
Regards,
Nagaraj
‎2010 Feb 01 9:39 AM
Hi nagaraj...
my main question is that which exit i need to use? actually i m not sure of using which exits.
if u tell me which exit is suitable for the custom field updation, then it 'll be helpful for me.
thanks
‎2010 Feb 01 10:02 AM
Hi,
thats what i told in my earlier post,,,Your custom field might be added in a separate segment under a parent segment first get that parent segment and then look for exits after the parent segment...
Regards,
Nagaraj
‎2010 Feb 01 10:23 AM
HI nagaraj,
Yes you are right, i have added my custom field under one custom segment and that custom segment is added under the parent
segment E1EDP01 ,
now as you told me to get the parent segment and then look for the exits after the parent segment, how can it be possible ?
Can you plz ellaborate it .
As i know i have to do the coding inside the exit and in coding i have to read the parent segment .
Can you plz help me in this issue.
Thanks if you help me in this issue .
‎2010 Feb 01 10:55 AM
‎2010 Feb 01 10:26 AM
You can check this Exit: EXIT_SAPLVEDA_011
Since it has IDOC_DATA table, you can loop over it and get the segment you need and modify the data accordingly.
Edited by: Saritha Palli on Feb 1, 2010 11:34 AM