How do I build a complex print condition?

I am in the process of building templates to replace the layouts from reports 6i and I have hit one on the AR invoice which I an struggling with. How do i replace this format trigger in XML?:
FUNCTION R_LINES1FormatTrigger RETURN BOOLEAN is
BEGIN
if :trx_type_name != 'CREDIT MEMO' then
          if (:CF_get_top_model_line_id is not null and nvl(:item_type,'PRICE') != 'PRICE') then
               return (false);
          end if;
     end if;
--RS 04-Dec-02 Do not display WHERE   line_type = LINE AND      item_type = Freight
IF :line_type = 'LINE' AND :item_type = 'FRT' THEN
     RETURN (false);
END IF;
if :item_type = 'SALES MODEL' then
     return (false);
end if;     
IF :line_type = 'TAX' THEN
     RETURN (false);
END IF;
IF :P_tax_printing_option = 'EUROPEAN TAX FORMAT' THEN
IF :line_type != 'LINE'
THEN RETURN (FALSE);
END IF;
END IF;
IF :line_is_a_child_flag = 'Y' THEN
IF :line_type = 'TAX' THEN
IF :tax_detail = 'Y'
THEN RETURN (true);
ELSE RETURN (false);
END IF;
ELSIF :line_type = 'FREIGHT' THEN
IF :freight_detail = 'Y' THEN
     RETURN (true);
ELSE
     RETURN (false);
END IF;
ELSE
     RETURN (true);
END IF;
ELSE
/* Do not print header freight lines */
IF (:line_type = 'FREIGHT') AND (:line_count != 1) THEN
     RETURN (false);
ELSE
     RETURN (true);
END IF;
END IF;
RETURN (TRUE);
END;
Answers on a postcard please!

Hmm. Still doesn't make sense to me. But, even in a business situation, I don't tend to text people who I don't already know (and who are likely to have me in their contacts). I would use email for people who I don't have a prior relationship with. But, everyone uses tools differently. Thanks for taking the time to respond!
Oh, have you taken a look at the app Drafts? It might help you do some of what you want.
Best of luck.

Similar Messages

  • How do you build a web page to display queued messages ?

    How do you build a web page to display queued messages in all states?
    Thanks,
    Reeta
    Reeta Joseph Benoy
    EDS@XEROX
    Database Administration
    1350 Jefferson Rd
    Rochester, NY 14623

    You can build a form to a procedure in oracle portal that explores the queue with the option browse and prints de type message with htp package. I made it in this way and my applicattion works right. The procedure must loop the select count(msgid) from aq$[queuetable_name] times.

  • How to get the Double-sided print in SMARTFORM?

    Hi Folks,
    Can u  explain me , how to get the Double-sided print ?
    I create two pages : Page 1 and Page 2.
    Page 1 contains Main Window and some text data in it.....
    Page 2 contains  a secondary window with some TERMS & CONDITIONs data.
    Print Mode Settings:
    Page 1     Print Mode : D
    Page 2     Print Mode : Space
    I maintained all the above in my Smartform ,
    but i couldn't get my second page at all  and Double-sided print also....
    Is there any settings missing or any to be maintained ?
    GIve me a Solution....

    HI Surender,
    Check this one
    http://www.sdn.sap.com/irj/sdn/printing?rid=/library/uuid/90edfc78-dfc9-2b10-dcbe-d4612972ceb9&overridelayout=true
    Regards
    Ram

  • Extended Classic Purchase Order created from RFx Response having complex pricing conditions enabled

    Hello Colleagues,
    I am currently analysing the correct usage of the complex pricing conditions in the sourcing process and wanted to understand the usage of the complex pricing condtions ( 01CT , dis % , header disc% , location dependent conditions , etc. with or without scales , ) while creating a extended classic purchase order directly as follow on document from rfx response.
    How relevant is the price conditions 01CT. Consider a case if the price condition from rfx response to po is changed to price manual 01PB but the price is correctly copied when the po is initially created from rfx response.
    Is this is the correct system behaviour ?
    Kindly help to clarify the above points.
    Thanks & Best Regards,
    Rahul

    Hi
    <b> You can either of these BADIs to handlwe the scenario.</b>
    BBP_CREATE_BE_PO_NEW Exit while creating a purchase order in the backend system
    BBP_CREATE_PO_BACK   OLD Exit while creating a PO in the backend system     
    BBP_ECS_PO_OUT_BADI  ECS: PO Transfer to Logistics Backend                  
    BBP_EXTLOCALPO_BADI  Control Extended Classic Scenario  
    Hope this will help.
    Please reward suitable points.
    Regards
    - Atul

  • How to take sub-contracting challana print out

    Hai friends,
    How to take sub-contracting challana print out.
    Where i have to do the message settings for taking return delivery excise document print out ( rejected RM  material return to vendor ).
    Please guide me.

    Hello,
    During creation of 57F4 Challan in J1IF01, in Basic Data Tab Page, scroll down the screen, you will get a check box of "Print immediately" just activate it before saving, it will print the Subcontracting challan once you save it.
    And to re-print the same go to J1IF11 and activate this indicator again and save.
    Configuration Checks: -
    SPRO > Logistics - General > Tax on Goods Movements > India > Business Transactions > Subcontracting > Subcontracting Attributes > Check whether Subcon Output Type - J1IF is maintained here.
    Also check in M706 - For Output Type - J1IF should be in place.
    Note: - There is no need of maintaining condition record for output type J1IF in MN21 and also no need to do any further configuration.
    Maintain printer in the SPRO - IMG - MM - Inventory management - Output determination - printer determination.- printer determination by plant / storage location ( OMJ3). Here for the application area ME, condition type J1IF, assign the printer.
    regards,

  • How to Handle Blank Field Value based Condition in SmartForms

    Dear Sir,
    In SMARTFORM , we need to define a Condition that incase Field Value is not equal to  BLANK value (blank means that field is empty) then a specific text gets printed .
    Our problem is that  We do not know as how to define  Empty Field Value  based condition .
    Had it been Non Empty Field value based condition then solution was simple and could be done in following way :
    Field Value                        R                     Comparision Value
    WA_KZDKZ                      =                      'X'
    In our case , we need to give Blank (Empty Value) instead of 'X' .
    Kindly help us pl .
    Rgds
    B Mittal

    Hi,
    To handle blank field values in SMARTFORMS,
    Go to the conditions tab in your SMARTFORM and give condition there
    Field                Comparision operator          value
    <Field name>      <> Here symbol is diff     space.
    eg:
    wa_mara-matnr    =/                                   space.
    Regards,
    Santosh Kumar M.

  • How do I build a file with tabs

    This may seem silly but I have never done this. I am building a booklet that will be 10 individual sheets 6" x 8" .... they will be laminated pages and included in this mix are 3 tabs that will go outside the 6x8 size... how do I build the file and make crop marks etc for this type of project?
    Thank you,
    Andrea

    When you set up a Line for CutterGuide or whatever you call it, make sure it's a Spot Colour and that the Stroke is set to Overprint.
    Just send the printers the one page that the tab will be like, then they can get a forme made to suit your job, they will not have to make more than one forme for the job.
    However, you should really be asking your printer what way is the best to set your job up. Because they might prefer one way over the other. And they may already have a forme that they used in a previous job that you can use, which will save you the cost of getting a forme made to cut out the tabs.
    The image posted by Paul Cracknell is the correct way to set up your page.
    Make your page 6 inches wide + "x" inches for the tab width.
    Then draw a guide at 6 inches and don't let anything other than the tab information into the "x" inches for the tab.
    You also don't want any text going right up the 6 inches, as this is far too close to the page edge and may be trimmed off.

  • How to package ActiveX controls for printing to push down to clients

    We have installed Crystal Server 2008 in an environment where the client machines are "locked down" ( they do not have local admin rights on their machines ). We want to create a package that will be pushed down to the client machine, containing the components needed to print using the ActiveX control. How can we build this package?

    See my discussion on the following thread:
    How deploy printcontrol.cab to all clients?
    Ludek

  • How implement (Forms Builder ) Calculation Item in JDeveloper ADF?

    How implement (Forms Builder ) Calculation Item in JDeveloper ADF?
    (Forms Builder ) Property
    Calculation -> Calculation Mode=Summary
    Calculation -> Formula -> Summary Function=Sum
    Calculation -> Formula -> Summarized Block=Block Name
    Calculation -> Formula -> Summarized Item=Quantity Item

    You can have transient attributes in your VO that do calculations.
    http://download.oracle.com/docs/html/B25947_01/bcentities010.htm#BABHGCAH
    For summaries here are a few other options:
    http://www.freewebalbum.com/blogs/faces/bjanko/blogs.jsp?blog=bjanko20070725180020
    http://andrejusb.blogspot.com/2008/01/complex-calculated-values-in-oracle-adf.html

  • How do I use a regular printer with my iPhone?

    How do I use a regular printer with my iPhone?

    you can't unless it's an AirPrint enabled printer or you purchase a 3rd party app like printopia.

  • How can i order a new printer head for my photoshop 7250e

    How can i order a new printer head for my photoshop 7250e  Is there a number i can ring to speak to someone or email address i can use or a web page where i can order one
    or a list of agents i can use to get it from
    Finding simple information seems impossible, no where does it mention spares or replacements 
    I have tried a lot of fault finding am convinced this is the problem  

    Hello NigelH1, 
    The Print Head for the Photosmart 7250  is not available outside HP.
    Please call HP Tech Support for further assistance.
    If you are in US , the toll free # is 1-800-474-6836 .
    If you are not in US , then log on to www.hp.com , at bottom-left corner there is a world map icon, click on it and then select the region you belong to, which would then provide support options for you for that region.
    Regards,
    Jabzi
    Give Kudos to say "thanks" by clicking on the "thumps Up icon" .
    Click "Accept as Solution" if it solved your problem, so others can find it.
    Although I am an HP employee, I am speaking for myself and not for HP.

  • HT3669 I have an HP deskjet color printer that only prints in black and white from my mac ... how do I get it to print in color

    I have an HP deskjet color printer that only prints in black and white from my mac ... how do I get it to print in color

    Check the printer itself.  Some printers you need to set the color & B&W settings on the printer itself instead of the Mac.   If that is not the case w/your printer, contact HP tech support and/or post in their forums if they have one. 

  • How do I set up my printer to only print in black?

    how do I set up my printer to only print in black?

    Please read this post then provide some details.  What printer model? What operating system?   Depending on your printer model you might remove the color cartridge, forcing black only printing, or select "Print in Grayscale" and "Black ink only" in the driver. 
    Some printer models (whether from HP or other manufacturers) may not allow printing in black if the color inks are empty.  There are also some other constraints, black only printing is generally not available when printing on photo papers and may not be available when printing with an automatic two-sided duplexer.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • How do I change my default printer to print in grayscale?

    How do I change my default printer to print in grayscale using a MacBook Air?  I have gone to "system preferences" and "printers & scanners."  However, there is absolutely no option to change the print color scale.  I see that option when I go to a document & print, but I don't want to go through the hassle of changing to "gray scale" every time I print.  Thanks so much in advance!! 

    Hi,What operating system you are using? What application you are printing from?

  • How do I connect a wireless printer with my ipad 5.1?

    How do I connect a wireless printer to my iPad?

    If its listed as 'airprint enabled', then you can follow the steps in this article:
    http://support.apple.com/kb/HT4356

Maybe you are looking for

  • Export movie with alpha to png sequence

    I'm trying to export tweened animation to .png image sequence with alpha transparency. The individual png files appear to be clean -- but when I open the file sequence in QuickTime, it looses the 8-bit alpha. Anyone know how to get around this? Thank

  • How to create search engine (with UIX and BC4J) across nested VOs?

    Suppose I have N:N relationship beetween the DB tables so the intermediary table is created (PK is Primary Key, FK is foreign key): table1 (PK_ID1, ATTR11, ATTR12...) table2 (FK_ID1, FK_ID3) //where both FKs are Primary Key this is intermediary table

  • Is there a way to retrieve data from a water damaged ipod?

    my ipod got water on the inside, and it wont charge. when i plug it in, the image shows it as charging but its not. im guessing that there is a short circuit, do to he water. is there a way to retrieve data from my ipod?

  • Transaction Control

    Hi all, in order to use the transaction control in SAP which Active X control needs to be checked in Visual Basic. If any one worked on Transaction control pls let me know any literature which can be useful for me. have a nice weekend. Martin.

  • CS 5.5 constant regeneration of peak files when opening a project.

    Hello I would like to have a definite answer why does PPro CS5.5 just like others before it, keep regenerating peak files every time I open a project. Thank you.