cancel
Showing results for 
Search instead for 
Did you mean: 

Syntax for Precondition

Former Member
0 Kudos

Dear All,

I have a scenario, wherein I need to hide a particular value of the characteristic 'Quantity' if the delivery turnaround selected is Next Day. Can somebody please help me in the syntax for a precondition.

My scenario is;

Fixed quantities a user can select for a particular product:

100

250

500

1,000

2,000

2,500

3,000

4,000

5,000

10,000

However, if the user selects the characteristic value Next Day in Turnaround Characteristic, values above 1000 quantity should disappear for selection, meaning, user should be able to see only 100, 250, 500. Kindly request your help in the syntax.

Thanks and Regards

Adithya.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Create a Precondition PR_NEXTDAY, and PR_NOT_NEXT_DAY.

If the Precondition returns True, the characteristic value it is assigned to will display

If the Precondition returns False, the characteristic value it is assigned to will NOT display

Write the syntax for each Precondition and assign them to the values as you need.

Bill

Former Member
0 Kudos

Thanks Bill

I will test and let you know the result.

Regards

Adithya

Former Member
0 Kudos

Thanks Bill

I will test and let you know the result.

Regards

Adithya

Ritz
Active Contributor
0 Kudos

Adithya Shekhar,

here instead of using precondition , you can think of using "user define function"

Check below link for same

http://help.sap.com/saphelp_erp60_sp/helpdata/en/92/58d455417011d189ec0000e81ddfac/frameset.htm

otherwise using referance characterstic for reading present date then passing it to anotehr characterstic for comparision between the 2 dates and then triggering dependencies to hide values sounds little complex.

Also what if the sales order is being created a week ago but if some one is using a VA02 today can face  problem with values displayed as there is variation in dates. On same line there can be N different scenarios which needs to be tested.

Hope it will help you.

Thanks

Ritesh

Former Member
0 Kudos

Hello Adithya,

Please review the following link for the syntax.

http://help.sap.com/saphelp_47x200/helpdata/EN/92/58c25c417011d189ec0000e81ddfac/frameset.htm

You can also use the variant tables with preconditions.

http://help.sap.com/saphelp_47x200/helpdata/EN/92/58c5e7417011d189ec0000e81ddfac/frameset.htm

Just for your information, help.sap.com has all the dependencies explained with the examples therefore please look into the website  in detail. You can find all the stuff in it. Also the documents attached by Philipp Kuster has examples with syntax Please go through these training documents to learn how the dependencies work.

Regards

Amber