Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

i have a requirement in badi for rerrap transaction to change text

0 Kudos

Hi all

I have an requirement to change text for RERRAP transaction after post .I made the code below but the change is not reflected. BADI_RERA_DOC is the badi name, please help in this regard.

method IF_EX_RERA_DOC~BEFORE_POST_EXTERNAL.

TYPE-POOLS: rexc0.



DATA : IT_YMSL_CONTRACT TYPE TABLE OF TY_YMSL_CONTRACT,
WA_YMSL_CONTRACT TYPE TY_YMSL_CONTRACT.

READ TABLE CT_ITEM_EX_DOC INTO ls_item INDEX 1.


SELECT BUKRS RECNNR OBJNR FROM VICNCN INTO TABLE IT_VICNCN WHERE BUKRS = ls_item-BUKRS and objnr = ls_item-objnr .

READ TABLE IT_VICNCN INTO WA_VICNCN WITH KEY BUKRS = ls_item-BUKRS objnr = ls_item-objnr .

SELECT BUKRS RECNNR REFER FROM YMSL_CONTRACT INTO TABLE IT_YMSL_CONTRACT FOR ALL ENTRIES IN IT_VICNCN WHERE BUKRS = IT_VICNCN-BUKRS AND RECNNR = IT_VICNCN-RECNNR." AND RECNNR .

READ TABLE IT_YMSL_CONTRACT INTO WA_YMSL_CONTRACT WITH KEY BUKRS = WA_VICNCN-BUKRS RECNNR = WA_VICNCN-RECNNR.

MOVE WA_YMSL_CONTRACT-REFER+0(10) to lt_doc_item-EXTREF1. "MT_LIST_EX-EXTREF1." LS_ITEM-EXTREF1.
MOVE WA_YMSL_CONTRACT-REFER+11(20) to lt_doc_item-EXTREF2." MT_LIST_EX-EXTREF2."LS_ITEM-EXTREF2.


endmethod.

0 REPLIES 0