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: 

Getting items in method PROCESS_HEADER in BADI ME_PROCESS_REQ_CUST,

Former Member
0 Kudos

Hi I am trying to get items in PROCESS_HEADER method of BADI ME_PROCESS_REQ_CUST, while creating PR using ME51N, when I change the default document type to another . process header triggers in that I am getting items so that I can set a default value to a account assignment category based on document type.

The issue is LT_ITEMS is empty, I know it wont be empty in change mode ( ME52N ). bottom line, I am trying to default account assignment category value in creation mode. PROCESS_ITEM doesn't trigger while changing document type in ME51N. so I need to write code in PROCESS_HEADER or OPEN. I am not able to get the Item interface instance in LT_ITEMS, which I get in ME52N. Please let me know your inputs.

Thanks

CALL METHOD IM_HEADER->GET_ITEMS

RECEIVING

RE_ITEMS = LT_ITEMS.

LOOP AT LT_ITEMS ASSIGNING <FS_ITEM>.

LS_ITEM = <FS_ITEM>-ITEM->GET_DATA( ).

ENDLOOP.

1 REPLY 1

Former Member
0 Kudos

Guys

Any inputs on this how to solve?