cancel
Showing results for 
Search instead for 
Did you mean: 

Update Termination in MV50AFZZ for Batch Determination

Former Member
0 Kudos

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


Accepted Solutions (0)

Answers (3)

Answers (3)

nabheetscn
Active Contributor
0 Kudos

What do you see in ST22? Please paste here

Lakshmipathi
Active Contributor
0 Kudos

Moved from SAP ERP SD Sales to ABAP Development

G. Lakshmipathi

Former Member
0 Kudos

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