3 weeks ago
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.
DATA: lt_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 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.
Request clarification before answering.
User | Count |
---|---|
6 | |
5 | |
2 | |
2 | |
2 | |
2 | |
2 | |
2 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.