Skip to Content
avatar image
Former Member

BLS Expression Function if

I have an action block to execute a BAPI.  One of my input variable coming into the BLS is BatchNumber.  This variable will be empty unless the user wants to override.

In the Request section of the BAPI there is a field for BATCH.  I pass it the inbound variable BatchNumber thinking that if it is empty it will pass nothing.  I am seeing that it is passing the word null.  I put an if function to check if my inbound BatchNumber value is "" but it wants something for the onFalse condition.

What I want it to do is assign BATCH in the request when it has a value and when it has no value, do not assign anything to the BATCH request field.

Have tried passing it an empty local variable and it puts a zero in it.

Thanks

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Oct 25, 2013 at 06:13 PM

    Brad,

    Have you tried stringif ?

    Best Regards,

    Jeremy

    SAP Rapid Innovation Group - RIG

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hey Jeremy.

      Yes, tried that also.  I am just going to parse out the ITEM part of the BAPI into a local variable then put in into the jco call as needed.

      Thanks