cancel
Showing results for 
Search instead for 
Did you mean: 

BLS Expression Function if

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

jcgood25
Active Contributor
0 Kudos

Brad,

Have you tried stringif ?

Best Regards,

Jeremy

SAP Rapid Innovation Group - RIG

Former Member
0 Kudos

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

Answers (0)