on 07-19-2011 4:48 AM
At first, believe I investigated in a lot of places, and I have not find nothing that can help me.
Im creating a web page that wants to call the production orders with different search criteria.
Im using BAPI_PRODORD_GET_LIST, to get the orders list. Transaction works fine.
My problem is that not all the times I need to send the same parameters, and sometimes some of them need to be blank or null, depending the criteria.
For instance. Criteria that i want is by plant, workcenter, order type. When I send all the parameters is not problem. But next time i dont want to send the parameter OrderType, because I want all the orders of any type. How can i do that?
Do I have to create several calls in the same transaction? create several transactions ? or make a filter?
Thank you for your help in advance
Hi,
As per my knowledge and understanding I can suggest following things.
Check your BAPI in se37 with different criteria whatever you want to filter order list if it works fine than
you can pass same criteria in your BLS Transaction it should work.
hope it helps!!
Regards,
Manoj Bilthare
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What you want to do is overwrite the parameters each time you execute the BAPI. Frequently we will create a Local property called Local.Blank of type string that is either empty or contains "" (two double quotes) or " " (double quotes around a space). You can test it with your version of MII and see which works properly on the BAPI. If you do not want a specific order type then overwrite the present contents with Local.Blank.
Regards,
Mike
Edited by: Michael Appleby on Jul 19, 2011 1:04 PM
hello, you can use in the link this function:
stringif( condition, tringfortrue, stringforFalse ).
to link to BAPI´s Parameter.
ej: stringif( Transaction.Plant != "", Transaction.Plant, "" )
then, if the parameter isnt empty, parameter's value will be assigned to BAPI, else parameter's value will be "". You must use this condition for the 4 parameters.
Regards.
User | Count |
---|---|
13 | |
6 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.