cancel
Showing results for 
Search instead for 
Did you mean: 

How to set delete flag (LVORM) in CRHD table?

former_member210804
Active Participant
0 Kudos

Hi experts,

Can you provide me any FM to set delete flag (LVORM) in CRHD table? so that, that record can not be useful further.

Thanks

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member210804
Active Participant
0 Kudos

closing this thread and open in ABAP development forum    

rupesh_brahmankar3
Active Contributor
0 Kudos

Hello,

Check the function module CR_WORKCENTER_UPDATE.  FM used by the internal programs to change the work center.

Best Regards,

R.Brahmankar

former_member210804
Active Participant
0 Kudos

Hi R,

I used the Fm CR_WORKCENTER_UPDATE and tried to modify the table CRHD with LVORM= 'X'. Please see the below code.

LVORM field is not updating in CRHD table. Please suggest

PARAMETERS: arbpl TYPE arbpl,

                            werks TYPE werks.

DATA: crhd   TYPE TABLE OF crhd,

            s_crhd TYPE crhd.

SELECT SINGLE * FROM crhd INTO s_crhd WHERE arbpl = arbpl

                                       AND werks = werks.

s_crhd-lvorm = 'X'.

APPEND s_crhd to crhd.



DATA: t_crca TYPE TABLE OF rcrca,

       t_crco TYPE TABLE OF rcrco,

       t_crtx TYPE TABLE OF rcrtx.

CALL FUNCTION 'CR_WORKCENTER_UPDATE_DIALOG'

   EXPORTING

     i_crhd        = s_crhd

     ukz           = 'U'

   TABLES

     t_crca        = t_crca

     t_crco        = t_crco

     t_crtx        = t_crtx

           .

COMMIT WORK.

rupesh_brahmankar3
Active Contributor
0 Kudos

Hello,

I am not a technical person to guide you it. You should post this in ABAP forum,

Set a break point  FM and check how it is used during a work center change, so that you will get the parameters must use in your  program.

Best Regards,

R.Brahmankar

jogeswararao_kavala
Active Contributor
0 Kudos

Narasimha Rao

Run tcode IR02 (or CR02) and do as pe the picture below (Extras > Status > Deletion flag ) and Save.

..and the LVORM field is filled in CRHD table.

Regards

KJogeswaraRao