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 comment
10|10000 characters needed characters exceeded

1 Answer

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

    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

    Add 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.

      Regards.