Skip to Content
author's profile photo Former Member
Former Member

Send Blank/null parameters to a MII transaction that makes a call to BAPI

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 19, 2011 at 06:09 AM


    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!!


    Manoj Bilthare

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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.


Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.