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

retrieving field value from structure to get its dynamic value

Former Member
0 Likes
495

hi all,

I have matnr, werks , objectid to fetch last changed and current value of safety stock and reorder point from cdpos(for max changenr) and marc table respectively. Now i also need the dynamic values of those fields from structure MAPRO. But i could not find the table where this stucture is included and also the logic to how can i fetch the desired values from a structure.Acually there is a requirement to modifying the system program RMPROG01(FSM review report) to get the above fields values as excel sheet according to the selection criteria. I got last changed value and current value of ROP and SS.But i have to get dynamic values of those fields as output alongwith current value.

please reply if anybody has the logic.

thanks

PRR

hi all,

I have matnr, werks , objectid to fetch last changed and current value of safety stock and reorder point from cdpos(for max changenr) and marc table respectively. Now i also need the dynamic values of those fields from structure MAPRO. But i could not find the table where this stucture is included and also the logic to how can i fetch the desired values from a structure.Acually there is a requirement to modifying the system program RMPROG01(FSM review report) to get the above fields values as excel sheet according to the selection criteria. I got last changed value and current value of ROP and SS.But i have to get dynamic values of those fields as output alongwith current value.

please reply if anybody has the logic.

thanks

PRR

2 REPLIES 2
Read only

uwe_schieferstein
Active Contributor
0 Likes
457

Hello PRR

I am not sure if this will help you but in report RMPROG01 the following external routine is called:

* Batchprognose durchführen
  PERFORM BATCHPROGNOSE_DURCHFUEHREN
    IN PROGRAM SAPMM61W USING RM61W_NEW.

In routine

MATSTAMM_LESEN

(main program

SAPMM61W

, include MM61WFAR) function module

MATERIAL_LESEN

is called and here structure MAPRO is filled.

Regards

Uwe

Read only

Former Member
0 Likes
457

Hi,

Most of sap standard reports use structure, try to get the values directly from table search for the field u require and use them in the report.

also while you r rewriting the code please use your own logic instead sap standard. this may improve the performance

Thanks

Shiva