cancel
Showing results for 
Search instead for 
Did you mean: 

PT_COR_REQ Entry not updated in infotype 2011 and table TEVEN after Modifying fields in BADI

indrajit12345
Explorer
0 Kudos
67

Hi Expert

I am in a situation where I need to modify the value of ORIGF or update the Value of TERID through BADI PT_COR_REQ while running T-code PTCOR. I have implemented the BADI and using method IF_EX_PT_COR_REQ~POST_VIA_BLOP.

Below is the code I have written to update the value of TERID the table is getting updated here but its not reflecting in Infotype 2011 or in Table TEVEN.

METHOD if_ex_pt_cor_req~post_via_blop.


    DATAlt_event TYPE TABLE OF ptcor_tevdata_struc,
          ls_event LIKE LINE OF lt_event.

*    ex_tevent_tab = im_tevent_tab.
          lt_event im_tevent_tab.

    LOOP AT lt_event INTO ls_event.
      ls_event-terid 'BAC'.
*      MODIFY ex_tevent_tab FROM ls_event INDEX sy-tabix.
      MODIFY lt_event FROM ls_event INDEX sy-tabix.
    ENDLOOP.

    ex_tevent_tab[] lt_event[].
  ENDMETHOD.

Post MethodPost Method

Kindly Share your opinion that whether this BADI is suitable for this requirement or I'm doing anything wrong anything else here.  Aside this BADI any other option where I can update or modified the Fields Value that entry should be visible in Infotype 2011 and in Table TEVEN.

Thanks in Advance.

 

Accepted Solutions (0)

Answers (0)