Application Development and Automation 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: 
Read only

How to reload the function group in single program

Former Member
0 Likes
880

Hi,

I am using L_TO_CREATE_POSTING_CHANGE to create TO for one batch.

I want to create one more TO in same program execution for another batch.

So When I try with executing program, first TO has been creating successfully and while in 2nd TO creation the internal table ILQUAU(common data part) is taking data from first batch. so I want to reload the function group during 2nd TO creation

How can I make it?

Thanks,

Basha

2 REPLIES 2
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
627

the fm internally does the init statements


  CALL FUNCTION 'L_SAPLL03A_INIT_INT'.
  PERFORM SAPML03T_INIT(SAPML03T).
  CALL FUNCTION 'HU_PACKING_REFRESH'.

Sp i think you have not cleared the internal table T_LUBQU for the second run.

Like,

loop

clear i_lubqu[].

call L_TO_CREATE_POSTING_CHANGE

endloop.

Read only

0 Likes
627

Thanks for reply.

As you said, internal table is refreshing but main program table is not populating with new data.

Ie: the main program(SAPML03B) table ILQUAU is inital( not populating with new data) where as subprogram (ML03TF80) internal table ILQUAU is populating with new data.

So I want to populate main programs table also. How can I do?

Thanks,

basha