2005 Sep 21 6:33 PM
I am attempting to write my first user exit for an Inbound IDoc. Outbound seems easy by comparison. I am going to add a date to VBAK-MAHDT from and extended ORDERS03 segment. My extended segment is pretty much like E1EDK03.
I'm working with enhancement VEDA0001. For include ZXVEDU03 of component EXIT_SAPLVEDA_001 I have this so far:
DATA:
w_z1edk03 LIKE z1edk03,
w_vbak LIKE vbak.
CASE segment-segnam.
WHEN 'Z1EDK03'.
IF segment-sdata(3) = 'Z01'.
w_z1edk03 = segment-sdata.
MOVE dxvbak TO w_vbak.
w_vbak-mahdt = w_z1edk03-datum.
MOVE w_vbak TO dxvbak.
ENDIF.
WHEN OTHERS.
ENDCASE.
Am I on the right track? Isn't there something else that I need for include ZXVEDU04 of EXIT_SAPLVEDA_002?
2005 Sep 21 6:38 PM
2005 Sep 21 6:38 PM
2005 Sep 21 7:47 PM
This user exit is generic. Better if you add a condition for your code. So that it will executed for your Idoc Type, Message Type.
Mahendra
2005 Sep 21 8:15 PM
2005 Sep 22 4:56 PM
I went ahead and added:
IF contrl-mestyp = 'ORDERS' AND
contrl-idoctp = 'Z_EK_ORDERS03'.
for that check Mahendra.
I am trying to figure out how to update dxbdcdata correctly to add my data to the screen in EXIT_SAPLVEDA_002 include ZXVEDU04. With the debugger I see updates in dxbdcdata for screens '4002' and '4003' but not for '4001' where I believe my data should be added. Do I just append the records for '4001' myself and does it matter what order it is in?
2005 Sep 22 8:12 PM
It should be CONTRL-DOCTYP = 'Z_EK_ORDERS03' and
CONTROL-MESTYP = 'ORDERS'.
Then insert records to dxbdcdata.
Before this make sure the program name & Screen Number are correct. Which you can confirm in the transaction.
Please let me know if you have any queries.
Thanks & Regards
Mahendra
2005 Sep 22 8:15 PM
I started a new thread on this since having problems with my code in ZXVEDU04.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |