on 10-19-2013 9:57 AM
Dear All ,
I have written a code for Batch determination in MV50AFZZ . But when i pass XLIPS-UPDKZ as U then on saving the document i getting update termination error . Attaching my code below . Please help me out in this .
STATICS : C_POSNR TYPE LIPS-POSNR VALUE '900000'.
C_POSNR = C_POSNR + 1.
XLIPS-POSNR = C_POSNR.
move lips-posnr to xlips-uecha.
XLIPS-UPDKZ = 'U'.
READ TABLE GIT_MCHB INTO GWA_MCHB WITH KEY MATNR = GWA_MCH1-MATNR
CHARG = GWA_MCH1-CHARG.
IF SY-SUBRC = 0.
IF LIPS-LFIMG GE GWA_MCHB-CLABS.
MOVE GWA_MCHB-CLABS TO XLIPS-LFIMG.
LIPS-LFIMG = LIPS-LFIMG - GWA_MCHB-CLABS."LIPS-LFIMG = LIPS-LFIMG - GWA_MCHB-CLABS.
ELSE.
XLIPS-LFIMG = LIPS-LFIMG.
endif.
endif.
APPEND XLIPS.
This is the code .Please help me out in this . Thanks in advance .
Regards
Shankar
What do you see in ST22? Please paste here
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Moved from SAP ERP SD Sales to ABAP Development
G. Lakshmipathi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Shankar,
Please refer note 208010 which will help you in understanding the usage of UPDKZ.
Although I will give you some explanation about UPDKZ indicator.
Since entries in Y tables (for example YVBAP, YVBEP etc which you can see in SM13 for "update information".) are generated only if something was changed or deleted. Only the update indicators 'U' and 'D' are relevant for the Y table. That is, an entry in an X-table with an update indicator 'U' or and update indicator 'D' must have an corresponding entry in the related Y-table.
The Y-table must not contain an entry that does not have an update indicator 'U' and 'D' in X-table.
However, the Y-tables recognize only the update indicators ' ' (blank) and 'D'. The update indicators of the X and Y tables corresponds as follows :
Update indicator of X table Update indicator of Y table
'U' ' ' <---------(blank)
'D' 'D'
I hope this will help you in checking your issue again.
Regards,
Bhavin Joshi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
7 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.