Skip to Content
-1

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

Apr 04, 2017 at 05:14 AM

30

avatar image
Former Member

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers