‎2006 Jul 05 10:05 AM
Hello friends,
i am trying SE37 command and trying to execute BAPI_MATERIAL_GETLIST , it asks for maxrows which i give as say 5-6 , and hit execute button,
I expect it to reuturn a list of all materials with their material number , however it returns nothing in MATNRLIST ,
it only returns one entry in each of following
MATNRSELECTION :
Sign : E
Option : CP
MATNR_LOW : *
MATNR_HIGH :
MATERIALSHORTDESCSEL
Sign : E
Option : CP
MATNR_LOW : *
MATNR_HIGH :
what i want is , it should give me a list of all material numbers , as i have to iterate over these material numbers and call BAPI_MATERIAL_GET_DETAIL to get details of all the materials
thanks
‎2006 Jul 05 10:11 AM
Hello Rohit,
Try get the where used list and check how the BAPI is used in other reports. LIkewise u pass values to the FM.
Reward points if it is helpful.
Regards,
Vasanth
‎2006 Jul 05 10:12 AM
If you see the code for the FM, it expects a value in the range MATNRSELECTION too.
You will need to populate this range. I tried with the following:
Sign - I
Option - BT
Low - 1000
High - 1000000
On execution, the BAPI returned all matnr values within the above range.
Hope this helps.
Sudha
Message was edited by: Sudha Mohan
‎2006 Jul 05 10:17 AM
MATNRSELECTION acts like a select option for MATNR in this function. You need to provide input values in this table similar to providing material values to a select option for Material.
-Kiran
‎2006 Jul 05 10:19 AM
cooool, thanks guys it helped ,thanks once again to all of you
‎2006 Jul 05 10:27 AM
Hi friend
I think you must always at least a MATNRSELECTION or a MATERIALSHORTDESCSEL.
If you just want all material you must fill the MATNRSELECTION with these values:
Sign : I
Option : CP
MATNR_LOW : *
MATNR_HIGH :
Best regards
Thomas Madsen Nielsen