‎2007 May 21 9:43 PM
I need to update vbap-arktx after the EXIT_SAPLVEDA_001
But I found DXVBAP which is not allowing me to update
I'm getting error DXVBAP has no structure and therefor no component called......
For a particular condition I need to update KTEXT which is vbap-arktx
DXVBAP IS DECLARED AS OPTIONAL
what is optional means do I have to follow any spl syntax for them Plz guide me.
Thanks
‎2007 May 21 10:02 PM
This user exit is called from every segment interpretation. You will have to update E1EDP19-KTEXT when the conditions are met. But if your conditions involve data values from other segments, you will have to make sure that you read those segments. You have to also understand that this is a hierarchical structure, so in that loop of IDOC_DATA, all those segments that come before E1EDP19 should have processed by the time you come to E1EDP19 and you DXVBAP fields must have been filled in. So you read those values from DXVBAP and change E1EDP19.
‎2007 May 21 10:19 PM
I'm trying to read the values but I'm getting error dxvbak has no structure hence has no component matnr....
‎2007 May 21 10:23 PM
I am sorry, I forgot to mention that you will have to loop at DXVBAP and move the record into a local structure say ls_vbap LIKE XVBAP. Then you can refer to ls_vbap-matnr.
‎2007 May 21 10:36 PM
loop at dxvbap.
dxvbap LIKE XVBAP
move dxvbap to xvbap.
endloop.
its not accepting athe code
I'm getting error like is not defined.
DXVBAP is an optional (vbap is not declared in the exit)
‎2007 May 21 11:08 PM
DATA: ls_vbap LIKE xvbap.
LOOP AT dxvbap.
ls_vbap = dxvbap.
IF ls_vbap-matnr = 'XXX'.
...
ENDIF.
ENDLOOP.
‎2007 May 22 8:40 PM