If condition in PLD
I am trying to get special text to appear on the pick list when the oitm.qrygroup2 field is Yes. I have 2 operator fields:
f_398 is the text field with the special text, link to f_400
f_399 is a database field, table is oitm, field is property 2, related to field_233 (system variable field for item #)
calculation field:
f_400 is a formula field, f_399=="yes"
as i understand it, when f_398 is true (the link to f_400 triggers a true value) the special text will appear.
The problem i'm facing is regardless the setting in oitm.qrygroup2 the result is always No even when the property value is actually Yes.
I'm guessing my related to joining is not working properly.
any ideas?
Try f_399=='Y' for the formula.
Thanks,
Gordon
Similar Messages
-
How to Use conditions in PLD Formula Field
Dear, Experts
for eg I have two fields in pld Field_A and Field_B
Field A Contains values and fieldB also have values and 0.00 values as well.
I need to fetch the value to Field C from Field A where Field B >0
Field_a and field_B In third field (Field_C) i need the values of Field_A where Field B>0.
1000 567
2000 0
500 89
888 79
777 0
700 0
9000 78
So here what conditions i should give in the formula filed (Field_C)
Please help me to solve this issue.
thanksHi Sudatta,
Your solution seems to be correct, but I am not getting the point of keeping some of the fields visible.. You can make field Z in your example invisible.
To make the right formula in PLD you need an extra field, the formula fields in SAP allways give back an 0 or an 1.
So if you have Field_A and Field_B and Field_C, you also have to create another field (eg Field_D)
Field D should be typed as a formula field and contain Field_B > 0 or Field_B != 0 or Field_B > 0.00 (just the exact value when you don't want field_C to be filled.
Field_C should be marked as a formula aswell and contain Round(Field_A,2) in this 2 is the ammount of decimals.
Then you have to make a connection between field C and D on the general tab (as mentioned before). So Field_C should be connected to field D.
You can make field_D invisible so it won't be displayed on your lay-out.
After that it should work.
Good luck,
Kind regards,
Hendri Wessels -
Hi,
I have a PLD of Sales Invoice. In that I want to show the sales order no. and date. But when I call the base ref the no is coming ,but the items r getting repeated. Again if I call Sales Order No. of ORDR it is showing wrong results. How to go for it.
thanx in advance
regards priyaDear Priya,
There are two ways, firs is suggest by gordon is true, Create UDF, set FMS and easyly take the no and date of order.
Second is, you have to use condition on PLD, for no u dont need all ref no of all items, take ref no of first item by using condition.
Regards,
Chintesh Soni -
Hi experts.
I have a PLD based on sales quotation in SAP B1 2007A PL38. On this pld I currently have 2 amount fields. One is for sub totals and the other one for regular line totals. The reason for two fields is based on the fact that sub totals should appear with a bold font.
OK, now to the issue in question; I need to put yet another field with amount on to the document rows of the PLD. This field is a UDF that contains a third amount. In addition I have some rules that sets the conditions for when the different fields should appear and not.
If there is no data in UDF field - then regular amount should appear
If there is data in UDF field - then UDF amount should appear
If the line is a subtotal - then font should be bold and subtotal amount should appear
Can someone please guide me on how to set conditions in PLD to make this logic?
Thanks and regards,
RunarFor this
If there is no data in UDF field - then regular amount should appear
If there is data in UDF field - then UDF amount should appear
You could add a Formula field which checks the value of the UDF. Also the UDF field should be added twice, one to be checked in the formula and another that prints. If the UDF field on the PLD is F_230 then the formula can be
F_230 > 0 or something like that
Link this formula field to the second UDF. Add another Formula F_230 == 0
Link this formula to the Regular Amount field on the row. -
Hi Experts,
Normally the formula i did before this is : - It only 1 condition.
Field_1 (PLD)
A Company
Field_2="A Company" (FORMULA)
Field_3
GOOD (Link Field_2) (FORMULA)
How to do with 2 condition? e.g like this:-
Field_1
A Company Field_1 (PLD)
Field_2
100001 (PLD)
Field_3="A Company" (FORMULA)
Field_4="100001" (FORMULA)
Field_5
GOOD (Link Field_3) (Link Field_4) (FORMULA) HOW TO PUT 2 CONDITION IN ???
Thanks.
Regards,
DannyHi there,
The previous solution given is not perfect as it will give you a value in 2 cases: when both statements are true and when both statements are not true. We need to retrieve a value only if both are true.
For this add a new formula field, let's say Field_6: Field_3+Field_4==2
If it's true, both of the statements are true. Link the original field to this one.
Regards,
Nat -
CAN WE HAVE IF CONDITION IN QUERY GENERATOR
Hi friends,
am, trying to make use of if condition to obtain a set of values in query generator. Its possible to retrieve the required result set using query analyser but not in query generator. am trying to execute the following query
if exists (select owor.u_reactor from owor,oitt where oitt.code=owor.itemcode and owor.u_reactor = 1 and owor.itemcode = '100-100')
begin
select itt1.u_reactor1 from oitt,itt1 where itt1.father = oitt.code and itt1.father = '100-100'
end
else
if exists (select owor.u_reactor from owor,oitt where oitt.code=owor.itemcode and owor.u_reactor = 2 and owor.itemcode = '100-100')
begin
select itt1.u_reac_23 from oitt,itt1 where itt1.father = oitt.code and itt1.father = '100-100'
end
else
if exists (select owor.u_reactor from owor,oitt where oitt.code=owor.itemcode and owor.u_reactor = 3 and owor.itemcode = '100-100')
begin
select itt1.u_reactor4 from oitt,itt1 where itt1.father = oitt.code and itt1.father = '100-100'
end
if it is not possible to write such query in query generator can someone help me with a workaround solution.
Thank u
VaitheeswaranHi,
I dont think Nested IF Statements are allowed in PLD. The reason that u get the result in Query analyser and not in Query Generator is that SAP supports Transact SQL and many SQL Server 2000 functions are not supported.
However there is a work around in Print Layout Designer for using IF condition by having Linked Objects. Kindly see some tutorials regarding Linked fields available on SDN site and think of some other way of implementing this nested IF query.
Regards
Rizwan Hafeez
Team Lead
SAP Addon Development Section
Abacus Consulting - Pakistan -
How to do IF... ELSE Scenarios through PLDs
Hi All,
Do Help me on how i can use If... Else conditions in Formula Editor of PLD. I have an urgent report req that has to be sorted immediately based upon this.
Thanks & Regards,
Siju Dasanhi Siju Dasan,
Now, depending upon the result, i want another formula like if ' a != b ' then
do something
else
do something
you can achieve this by using the "Link to Field" Function on the PLD
Now, depending upon the result, i want another formula like if ' a != b ' then
do something using the Link TO Field
else
do something Using the Link TO Field
Hope it helps...
FIDEL -
A/P Invoice no. with different serie on Check PLD
Hi Experts,
Please suggest how to pick A/P Invoice no on Check pld.
I have tried with VPM2 table which picks docentry of A/P Invoice but this condition does not work with Mutiple A/P Invoice series.
I am handling this issue on 2005B/PL34
Thanks
Regards,
KanishkaHai!
Try this FMS,
SELECT T1.[InvoiceId] FROM OVPM T0 INNER JOIN VPM2 T1 ON T0.DocEntry = T1.DocNum WHERE T0.[DocNum] =$[OVPM.DocNum]
Don't assing Auto refresh, because u r having multiple Invoice concept. Ask user to press Shift+F2 and select the invoice num.
Regards,
Thanga Raj.K -
How to increase the page in PLD if you have more than 1 page for any doc
Hi Experts,
I would like to know is there any way out to increase the page layout size of any marketing documents For Eg: i have a purchase order on 1st page i have all the information on next page i have the terms and conditions or you can say annexure so i need atleast 2 or 3 pages for that particular PLD. So please can anyone help me out of ths situation bcoz all marketing documents such as purchase order,sales order have terms and condtions. Waiting for the earliest reply.
Note: I have tried that by going into Document properties and increasing the size in number of layout pages in paper format tab by giving that it is increasing the size of the PLD but it is not allowing to me to draw any text box or database or any field. Please help me out.Hi Shanker,
We also faced similar issues, as PLD has it own limitations, like we can't configure the PLD to print "Terms & Conditions" in the next page.
I would suggest you to request your client to get the terms & conditions printed on the back of the Purchase Order as it is more flexible. something like a pre printed format.
or if you want to print everything using SAP itself then better do it using Crystal Reports.
regards,
Shreyas -
Can we Display VAT,CST,ECC NO,Quotation DocNum and DocDate in PLD
Dear All,
I'm Designing " Proforma- Invoice " from SALES ORDER DOCUMENT in Print Layout Design according to Clients Format.
My Issue is now,
Can we bring the field values such as VAT,CST,ECC NO(i.e.TaxIdNo's) for the Customer and Company's as well.
Quotation DocNum and DocDate(SALES ORDER WILL BE BASED ON this Quotation No and Date ) into the PLD.
I know that from OADM Table we can bring those values but I could bring only the VAT(i.e. FreeZoneNo,OADM) value from the table that too for Company only but not for Customer.
and In Print Layout Design,SAP B1 is showing only OADM Table but not the ADM1 Table.Because rest of the field values are in ADM1 Table
So,How can I bring those values into PLD?
I kindly request you all to give some suggestion regarding as early as possible.
So that I can move further to complete this Task .
Regards,
MuraliHow can I explain this?
Shall I send you the format.
Ok,
C, I've a format that is provided by the client, which I'm trying to designing now.
I'll try to show you the way of the format.
Proforma-Invoice | VAT:
| CST:
| Ecc No:
under this | Proforma Invoice No:
| Date:
Billing Address| Shipping Address | Qutation No:
| DAte :
VAT:
CST:
Ecc No
Payment Terms :
No | Item Code | Item Descp | and so on..............................,,
Here I want Lot of space according to client format.
(For Records To Display)
Total :
End of Report Discount :
Frieght :
Again some details here to display and so on :
Amt in Words Total Amt :
" HERE I'M GETTING MORE SPACE "
Page Footer
Sales Employee:__________ For Company Ltd.
Subject to Jurisdiction
Terms & Condition:----
Authorized Sign. -
HI all,
Can we use Group by clause in PLD.
IF yes how to use group by..
Thanks,
NeetuHi,
Please follow :
1. Right click on the Repetitive Area Header1 and below to other Header since when you right click from Repetitive Area Footer and above its Header it will the grouping of the table, description, condition and value.
2. Click the Sort., Sort is where we find the grouping, the Grouping is equivalent to Summary option.
3. Choose which Field Name you want to group, then Sort Type if what datatype do want to sort the value of the field.Check the Summary to activate the grouping, without checking the Summary it just a simple sorting.
4. After it is done, remember that the Summary or Grouping features can be activated if a Text Field or Formula properties must have an value. example.
Add a formula.. General Properties.. Group.. put a value of one 1. Content .. Concat(Field_xxx) where the value of Field_xxx is the Field Name in no. 3
5. If you want to have another Grouping or Summary just repeat step 1 to 3. Remember if you want another grouping put the General Properties.. Group.. put a value of one 2 for the next grouping and so on and so on...
The result if you have multiple Summary or Grouping the style is hierarchical.
Field_xxx - for group value is equal to 1
Field_xx2 for group value is equal to 2
and so on...
Hope it helps.
Regards,
Clint -
Hi all,
can anyone pls tell me if it is possible to fetch the draft key number of marketing document in pld for that documenthi mukesh,
Develop a query using sql code
Select * from ODRF Where T0.[ObjType] ='[%0]'
and save it query manager and develop a report using
query print layout designer.
Fill * with required fields at row level and
header level details in condition variables.
Jeyakanthan -
List of formulas that are allowed in PLD
Hi,
i am an ABAPer & new to this SAP B1 env.
is there any document/link that gives the list of formulas (along with syntax) that are allowed in PLD ?
actually i have to print "No. of days delayed" (Run Date - Due Date) in Customer Statement letter.
i tried entering the formula as Field_167 - Field_036 but i get only 0 (zero) even though there is diff in dates.
i tried with datediff(DAY, Field_036, Field_167) and got the error : Errors were found in the formula"
what is the exact syntax to calculate elapsed number of days?
to check for a condition also, it seems, we need to have additional UDFs & establish the dependencies to get what we want, instead of having a straight forward "if" OR "case" statement.
working with SAP B1's tools (e.g. PLD) is like doing a surgery with kitchen knife! (sorry, if i have hurted anyone's feelings
if anyone can give a list of formulas (along with exact syntax) that are allowed in PLD it will be of great help to people like me.
Thanks & Regards,
Raghu Iyerwell, i solved my 'Days Overdue' OR 'elapsed days' in a crude way (see my method given below), if anyone has got a better & accurate method, please do share it with the beginners like me.
available values :
Field_167 is the 'Ageing Date' (a text field in Page Header Area)
Field_036 is the 'Due Date' (a text field in Repetitive Area)
requirement :
to print 'Days Overdue' (Field_167 - Field_036 + 1) along with 'Due Date' in repetitive area.
even after browsing through this forum & other some materials provided in SAP Service Market place, i could not find a function/method to get the elapsed number of days between two dates. so, i went about in around about way to arrive at the 'Days Overdue'. given below is my method that gives the elapsed days, though a close one but not accurate, since i took a month as 30 days. otherwise, this seems to work fine, i need to check it out thoroughly.
in the repetitive area:
defined a new hidden field Field_187 as Formula : (Month(Field_167)*30)+Day(Field_167)
defined a new hidden field Field_188 as Formula : (Month(Field_036)*30)+Day(Field_036)
defined a new field Field_189 for 'Days Overdue' as Formula : ((Year(Field_167)-Year(Field_036))*365)(Field_187-Field_188)1
Regards,
Raghu Iyer -
I am updating pld of purchase order.I want attach a document specifying certain conditions.This document should be issued time a po is created.How to attach this document ?
Regards,
Dilip KumbharHi,
As per my understanding you cannot attach any documents in PLD. if you are attaching any Terms and conditions along with the PO, then you can handle this situation in two ways.
1. You can design the template in such a way thay you can enter the terms & conditions in the PLD itself.
2. If want the Terms & conditions to be present in back side of the Purchase order then you should take the Terms and conditions seperately and you PLD seperately.
Raja.S -
Populating a field conditionally
hi
i have a couple of print layout questions that i was wondering if anyone can help with.
1. i am trying to add a serial number column to a quotation. i created a field and used teh function linenum(). but i got an error. is there anything else i need to do.
2. i am trying to create a conditional field. for example, i use my sales order as a picklist. when i see the warehouse being wh5, i want to print the words "DS" in the field where i show the items to be shipped. how can i do this?
thanks!
premHi Prem,
For 2) you can try to use the link to feature -
1. Create a formula field specifying Field_XX = WH5 (Where Field_XX is the warehouse field.
2. Create another formula field specifying Field_XX <> WH5 (Where Field_XX is the warehouse field.
3. Link the existing display field to (2)
4. Create a new text box with contents as "DS" and link it to (1)
This way the PLD will display "DS whenever the whse is WH5.
Hope this helps.
Regards,
Hamsa
Maybe you are looking for
-
Big Bang Trinergy - Freezes on boot & randomly
Hi, Got a Big Bang Trinergy (BIOS 1.40) and been having problems since the first day I installed it. It freezes several times in the boot-sequence. Manual restart is needed and several attempts are made before it successfully launches and loads Windo
-
RC-50004: Fatal: Error occurred in ApplyDatabase:Control file creation fail
Hi, During the clone of R12.1 instance, while running the post clone on the DB tier, i am getting the following error RC-50004: Fatal: Error occurred in ApplyDatabase:Control file creation failed. when i looked into the log file, i can find this Crea
-
Process: Safari [226] Path: /Applications/Safari.app/Contents/MacOS/Safari Identifier: com.apple.Safari Version: 6.0.5 (8536.30.1) Build Info: WebBrowser-7536030001000000~6 Code Type: X86-64 (Native) Parent
-
Please help!
-
Quicktime 7 not playing trailers
I guess the only thing I really use my quicktime pro 7 for is trailers and now it simply doesn't work for most of them. All I get is a white screen with the quicktime logo on it. I have been through these forums and read about flash and directx and e