PLD : 2 conditions
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,
Danny
Hi 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
Similar Messages
-
How to upload images on WebDynpro(ABAP) screens
Hello All,
Could any one please help on how to create/change the image (jpeg/any file) dynamically on WebDynpro screen. I have seen couple of examples for uploading the text files in WDR_TEST_EVENTS, WDR_TEST_WEB_ICONS, but not found any standard program that explains about uploading images.
Requirement: User has to select any image/thumbnail from local PC and it should be displayed on main screen, it's not only from MIME directory.
We have the same logic in BSP Application (CFX_RFC_UI) to upload the thumbnail but am not sure whether we can use the same logic in WDC or not?
I have seen the same logic for WebDynpro (JAVA) here:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71
I would really appreciate if you could provide me the code/process ASAP.
Thanks & Regards,
Hari.Hi,
I have written the code as per given logic with no errors, after selecting jpeg file from local PC when I click on 'upload' button it is giving a following short dump.
Could you please let me know how to rectify it.
Error when processing your request
What has happened?
The URL http://rocpld02.wwwint.corp:8000/sap/bc/webdynpro/sap/zms_image_01/ was not called due to an error.
Note
The following error text was processed in the system PLD : Exception condition "CNTL_ERROR" raised.
The error occurred on the application server rocpld02_PLD_00 and in the work process 1 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: CONSTRUCTOR of program CL_GUI_CUSTOM_CONTAINER=======CP
Method: ONACTIONONBUTTONCLICK of program /1BCWDY/1I6RRYQYFWRI2HBZ5MAK==CP
Method: IF_WDR_VIEW_DELEGATE~WD_INVOKE_EVENT_HANDLER of program /1BCWDY/1I6RRYQYFWRI2HBZ5MAK==CP
Method: INVOKE_EVENTHANDLER of program CL_WDR_DELEGATING_VIEW========CP
Method: IF_WDR_ACTION~FIRE of program CL_WDR_ACTION=================CP
Method: DO_HANDLE_ACTION_EVENT of program CL_WDR_WINDOW_PHASE_MODEL=====CP
Method: PROCESS_REQUEST of program CL_WDR_WINDOW_PHASE_MODEL=====CP
Method: PROCESS_REQUEST of program CL_WDR_WINDOW=================CP
Method: EXECUTE of program CL_WDR_MAIN_TASK==============CP
Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
Regards,
Hari. -
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 -
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 -
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 -
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 -
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
-
Help! Trying to Connect Turntable To Powerbook. No output!
Hi everyone, I just want to play my turntable through my powerbook, then to external speakers, as a stereo. I do not want to record! I have a magnetic cartridge turntable. I connect this to a preamp. The preamp's 2 RCA jacks are converted to a single
-
Ipod Touch Stuck on Itunes and USB screen(more details inside)
Right. Couldn't quite explain the whole thing just from the topic description, but I'm pretty sure you're all familiar with this issue. I tried to restore my Ipod using Itunes and once it was done, the Ipod Touch(2nd Generation), simply stayed on a s
-
I'm trying to import com.mysql.jdbc.Driver and am trying to make reference to the JAR file (located in the 'jars' subdirectory from the JAR app) in my manifest file in the following way: Main-Class: UI Class-Path: jars/connector-java-sql.jarExcept wh
-
Export and Import of Layout Set / Readonly Error
Hi, I tried to export a layout set. I choosed "Export" from the action context menu. I've choosen "include related content.." Download the file to .configarchive In the target system, I've choosen "Import" from the action context menu. But then, I'll
-
I've added my old sim card addresses with no problem. After 2 days, whenever I press my trackball, my pearl locks up, and I can not move the trackball. The only think that works is to shut off the phone by pressing the red "end" key. Have looked all