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: 

BAPI_MATERIAL_GETLIST

Former Member
0 Kudos

Hi Experts

While executing the std BAPI_MATERIAL_GETLIST, What could be the reason?

I am not getting any records as output. It accepts only the number of records to be pulled as input. Is there any possibility/options for me to specify my own selection parameters to this BAPI?

Plz suggest.

Rgds

BD

1 ACCEPTED SOLUTION

Former Member

Hi,

U need to give the maertial number range(s) int the table 'MATNRSELECTION'

and other selection criterion in the tables . Only then it will fetch results.

Hope it helps,

Rajat

16 REPLIES 16

Former Member
0 Kudos

To pass your own option you will have to copy this bapi and create a z bapi .

In that you will have to do modifications to input your parameters and modify the output accordingly.

Regards,

Lalit Mohan GUpta.

Former Member

Hi,

U need to give the maertial number range(s) int the table 'MATNRSELECTION'

and other selection criterion in the tables . Only then it will fetch results.

Hope it helps,

Rajat

0 Kudos

Hi Rajath/Venkat

How can I give the range values (Sign, Option, MATNR_LOW and MATNR_HIGH) in the MATNRSELECTION table?

Please tell me the steps to follow.

Rgds

BD

<text removed>

Edited by: Matt on Apr 13, 2009 1:00 PM - do not hurry people up

0 Kudos

Its same as the select options.

eg Table MATNRSELECTION, I can give test entries as

Sign = 'I'.

OP = 'EQ', 'BT', 'NE' etc....

and then you define range in fields MATNR_LOW and MATNR_HIGH.

The entries lying within the range will be displayed.

Hope it helps,

RJ

0 Kudos

Hi Rajat

I want to know HOW TO set up these parameter values (range)?

Which TCode and/or steps to follow for this? Or we need to pass these values in BAPI source code?

Plz reply.......

0 Kudos

Not sure if I'm getting ur question correctly....

But you can use a BAPI just like a FM in your code.

You can test the output in transaction SE37.

Is this wht u r looking for???

-RJ

0 Kudos

Hi Rajat

Nope. My question is:

I want to set the range MATNRSELECTION as follows:

Sign - I

Option - BT

Low - 1000

High - 1000000

How and where to go to set it like this?

Please reply.

0 Kudos

Hi,

You can do so in SE37.

Give the BAPI Name and execute. A test frame is displayed.

Now click on the square icon just before the table name.

it will display another screen. Here you can set these values.

Hope this helps,

RJ

0 Kudos

Hi Rajath

I could follow the steps told by you. Thx a lot. But, in this method, I need to set this each time I execute the BAPI.

Is there a way that I can set the values on a permanent basis?

Also

What are the Sign and Option stand for? What are the possible values for these two parameters?

Please suggest.

matt
Active Contributor
0 Kudos

Please read the Rules of Engagement

Saying that your question is u.rgent, or asking for response ASAP is usually considered to be quite rude on internet forums.

Thank-you for your understanding and cooperation in this.

As for your question. In order to create the selections permanently, you write a program that calls the BAPI, with the relevant selections. SE37 test framework is only for testing - not for productive use!

matt

Edited by: Matt on Apr 13, 2009 1:03 PM

0 Kudos

Hi Rajath

I could follow the steps told by you. Thx a lot. But, in this method, I need to set this each time I execute the BAPI.

Is there a way that I can set the values on a permanent basis - other than through separate program (as said by Matt)?

Also

What are the Sign and Option stand for? What are the possible values for these two parameters?

Please suggest.

matt
Active Contributor
0 Kudos

Not, it is not possibe without writing some code. I suggest you do some reading about the bapi concept, as there seems to be a foundational misunderstanding about what it is.

matt

0 Kudos

Hi

Thx for all suggestions. Ellarkum nanni.

BD

0 Kudos

hi,

Sign...

you can have only two values in it...

'I' stands for 'Include'

'E' stands for 'Exclude'.

Option...

'EQ' = Equals,

'NE' = not equals,

'GT' = Greater than,

'GE' = Greater than or equals to

'LE' = less than or equal to

'LT' = less than

'BT' = Between

Former Member
0 Kudos

hi ,

U must be getting an error in the return parameter.But it might be residing in the work area of the return parameter. Either append the work area in an internal table or directly access the work area.....

regards,

Ajit

former_member203501
Active Contributor
0 Kudos

please find the below link...may be this is useful..