Display different forms in script

hi experts,
suppose i have two purchase orders.one is german specific, & another is india specific.i want to get p.o at a time in two different formats, how it is possible.
regards.
subhasis.

form will be genarate per each purchase order,so at a time means ,we can not show them ..
because form will be triggerd at Purchase order transaction level.
it is not possible in transaction level.
Thanks
Seshu

Similar Messages

  • How to display different Time Statement forms in ITS service PZ04

    Hi all,
    I am working on a underlyinge R/3 4.7 system and are working with standalone ITS and ESS 50.4. I am posting this question to find out if any of you has experience with my problem.
    The business wishes to use the ITS transation PZ04 standard and wish to be able to display different Time Statement forms in the transaction through customized variants for the report(RPTEDT00) that the PZ04 transaction executes. In the IMG it is posted that one variant has to be created called HRESS_TEDT00 and this works, but restricts the PZ04 transaction to always be called with this variant and therebye the same Time Statement form every time.
    I then by debugging found that the underlying ABAP code processed from SAP standard has a variable VARIANT that is hardcode to = HRESS_TEDT00.
    The question is: Is there anyway to setup the PZ04 transaction so that it can be dynamic decided which variant should be used, f.ex. from persons subarea from infotype 0001?
    Looking forward to here if anybody can help.
    Regards,
    Allan Brauer

    hi allan,
    cud u plz help me how to sort out this problem actually in mu company the same scenario is here need to be display pe51 form instead of standard hrforms.....
    plz help me how will i replace this "hrforms with pe51"..

  • How to make a form dynamic so that it displays different logos at runtime

    I am working on some assignment wherein I would like to make a form dynamic so that in it's designated image holder it displays different logos/pictures at run time? First of all is there such a possibility?? I am still very new to this forum and also trying to understand the logic/bindings/heirarchy etc. in LCD. Any input would be highly appreciated.
    Thanks in advance

    LC 7 or 8 does not help load logs at runtime. However you can associate all your logs at design time and control their visibility property based on the events. This may help fulfill the requirements you have to an extent however adding number of images at design time will increase the size of the template.

  • How to display different headings in list form using "hide content" in SPD 2010

    I built a custom list form in SPD, and applied conditional formatting in some rows
    Now I like to display different headings (above the 1st row of the form), based on the same condition:
    e.g. when Status=available, display the heading "SIGN OUT"  (as the item is available for sign-out)
    when Status=on-loan, display the heading "SIGN IN" (as the item can be signed in)
    right now I put the two different heading in two lines in the heading space: 
    SIGN OUT
    SIGN IN
    I tried following and it works for this part:
    select the text SIGN IN
    select "create' in "Conditional formatting" pane
    select Hide Content
    Set: Status=available
    click OK
    Then the "SIGN IN" text disappeard.
    But how can I set another conditional formatting to show only "SIGN IN" when Status=on loan?

    Hi,
    If you like to show "sign out" when status=available and show "sign in" when status=on-loan.
    Please try modify the Conditional Formating rule as below:
    Select the text SIGN IN, show content, status not equals available
    Select the text SIGN OUT, show content, status not equals on-loan
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • To display hardcoded value in script form

    Hi ,
    Could anyone tell me how many ways are there to display hardcoded value in Script Form? I want to display a alphanumeric number like 'AP121345/B103/21C' in form output.
    I will reward for every usefull responses.
    Thx in Adv.
    Bobby

    yes as sandipan told exactly do like this.
    if u want to display in bold.
    then create one bold charformat suppose 'CF'.
    <CF>ur value what u want to display<\>
    thanks

  • Purchase order smart forms and scripts

    i need to create a smart form and script in simple purchase order there is no requirements has given to me, can any one tell me in detail how i need to do and what are the procedures i need to follow, example code will be usefull and steps to build it.

    Hi,
    Go through the links mentioned below.
    http://www.****************/Tutorials/Smartforms/SFMain.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3c5d9ae3-0501-0010-0090-bdfb2d458985
    http://www.sapmaterial.com/smartform_example.html
    Re: Hands on SAP Smart Forms
    smartforms
    A Simple Smartform Tutorial
    SAP Smartforms can be used for creating and maintaining forms for mass printing in SAP Systems. The output medium for Smartforms support printer, fax, e-mail, or the Internet (by using the generated XML output).
    According to SAP, you need neither have any programming knowledge nor use a Script language to adapt standard forms. However, basic ABAP programming skills are required only in special cases (for example, to call a function module you created or for complex and extensive conditions).
    1. Create a new smartforms
    Transaction code SMARTFORMS
    Create new smartforms call ZSMART
    2. Define looping process for internal table
    Pages and windows
    First Page -> Header Window (Cursor at First Page then click Edit -> Node -> Create)
    Here, you can specify your title and page numbering
    &SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)& (Total Page)
    Main windows -> TABLE -> DATA
    In the Loop section, tick Internal table and fill in
    ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
    3. Define table in smartforms
    Global settings :
    Form interface
    Variable name Type assignment Reference type
    ITAB1 TYPE Table Structure
    Global definitions
    Variable name Type assignment Reference type
    ITAB2 TYPE Table Structure
    4. To display the data in the form
    Make used of the Table Painter and declare the Line Type in Tabstrips Table
    e.g. HD_GEN for printing header details,
    IT_GEN for printing data details.
    You have to specify the Line Type in your Text elements in the Tabstrips Output options.
    Tick the New Line and specify the Line Type for outputting the data.
    Declare your output fields in Text elements
    Tabstrips - Output Options
    For different fonts use this Style : IDWTCERTSTYLE
    For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
    5. Calling SMARTFORMS from your ABAP program
    REPORT ZSMARTFORM.
    Calling SMARTFORMS from your ABAP program.
    Collecting all the table data in your program, and pass once to SMARTFORMS
    SMARTFORMS
    Declare your table type in :-
    Global Settings -> Form Interface
    Global Definintions -> Global Data
    Main Window -> Table -> DATA
    Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming
    http://sapr3.tripod.com
    TABLES: MKPF.
    DATA: FM_NAME TYPE RS38L_FNAM.
    DATA: BEGIN OF INT_MKPF OCCURS 0.
    INCLUDE STRUCTURE MKPF.
    DATA: END OF INT_MKPF.
    SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
    SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
    MOVE-CORRESPONDING MKPF TO INT_MKPF.
    APPEND INT_MKPF.
    ENDSELECT.
    At the end of your program.
    Passing data to SMARTFORMS
    call function 'SSF_FUNCTION_MODULE_NAME'
    exporting
    formname = 'ZSMARTFORM'
    VARIANT = ' '
    DIRECT_CALL = ' '
    IMPORTING
    FM_NAME = FM_NAME
    EXCEPTIONS
    NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3.
    if sy-subrc <> 0.
    WRITE: / 'ERROR 1'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    call function FM_NAME
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    CONTROL_PARAMETERS =
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    OUTPUT_OPTIONS =
    USER_SETTINGS = 'X'
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    TABLES
    GS_MKPF = INT_MKPF
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5.
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    Additional Fonts for your SMARTFORMS
    You can create additional fonts and style with transaction SMARTSTYLES
    This can then be define in the paragraph and character formats, which you can then be assign to texts and fields in the Smart Form.
    The character formats includes effects such as superscript, subscript, barcode and font attributes.
    Also, you can refer to the below link for the explanation:
    http://help.sap.com/saphelp_46c/helpdata/en/4b/83fb42df8f11d3969700a0c930660b/frameset.htm
    Reward if helpful.
    Regards,
    Harini.S

  • What is the diff b\w open form and start form in scripts.

    Hi,
         can any one tell me what is the diff andb\w open form and start form in scripts.when we should use open form and when start form.

    Hi Friend.
    I have understood some usefull information and would like to share with you.
    Within one transaction, you can open and close several layout sets using OPEN_FORM and
    CLOSE_FORM, however not simultaneously. You can use parameters in the OPEN_FORM to control
    whether the output is stored in the same print request. But also the SAP spool decides,
    depending on several plausibility checks, whether new output is appended to an existing
    print request or whether to create a new print request anyway.
    CALL FUNCTION 'OPEN_FORM'
    CALL FUNCTION 'CLOSE_FORM'
    CALL FUNCTION 'OPEN_FORM'
    CALL FUNCTION 'CLOSE_FORM'
    You cannot combine ABAP/4 list output and SAPscript output in one print request.
    START A LAYOUT SET AGAIN
    Usually a print program does not print only one urging letter or one account statement, but
    several layout sets for different customers. To have the output for each customer begin with
    the start page of the layout set, you must start the current layout set again and again.
    To start a layout set again, you must first end the current layout set and then open the
    layout set again. Within one print request, first call the function module END_FORM. It
    executes the final processing for the current layout set. Then start the layout set again
    using START_FORM. Output then begins again on the start page of the desired layout set.
    CALL FUNCTION 'OPEN_FORM'
    CALL FUNCTION 'START_FORM'
    CALL FUNCTION 'END_FORM'
    CALL FUNCTION 'START_FORM'
    CALL FUNCTION 'END_FORM'
    CALL FUNCTION CLOSE_FORM
    Hope your obstacle is cleared.
    If not do ask me again?

  • Calculation of values in a dunning form (SAP Script)

    Hi Experts!
    I want to add values to a sum (dunning-amount + dunning-fee + interest) in a dunning form (SAP Script; Z150_DUNN_02).Therefore I'm using a subroutine (Z_FI_KX_DUNN_02_INTEREST) to summarize. Problem is the format of the output-field &Z_FAEBT&. It's not similar to field &MHNK-FAEBT& which was formerly printed (without calculation of interest and dunning-fees.
    /:   DEFINE &Z_FAEHW& := &MHNK-FAEHW&                 
    /:   DEFINE &Z_ZINHW& := &MHNK-ZINHW&                 
    /:   DEFINE &Z_MHNGH& := &MHNK-MHNGH&                 
    /:   DEFINE &Z_FAEBT& := &MHNK-FAEBT&                 
    /:   PERFORM ZFAEBT IN PROGRAM Z_FI_KX_DUNN_02_INTEREST
    /:   USING &Z_FAEHW&                                  
    /:   USING &Z_ZINHW&                                  
    /:   USING &Z_MHNGH&                                  
    /:   CHANGING &Z_FAEBT&                               
    /:   ENDPERFORM                                       
    /:   ENDIF                                            
    A3   &MHNK-WAERS& &Z_FAEBT(C)&       
    It would be fine to get a hint how to format the field &Z_FAEBT& correctly. Must be done in the subroutine Z_FI_KX_DUNN_02_INTEREST by a special WRITE-command? Is it possible to add these values only in the form?
    Thanks for support!
    Regards, Bernd

    hi!
    I defined the field like you said! After moving this field to a numeric field to add the different amounts the
    following error occurred:
    Runtime errors         CONVT_NO_NUMBER           
    Exception              CX_SY_CONVERSION_NO_NUMBER
    Occurred on     16.06.2009 at   15:15:25  
    Unable to interpret " 1.316,59" as a number.     
    Definition:
    FORM zfaebt TABLES in_par STRUCTURE itcsy
                       out_par STRUCTURE itcsy.
      TABLES: mhnk.
      DATA: z_faehw_num LIKE mhnk-faehw,
            z_zinhw_num LIKE mhnk-zinhw,
            z_mhngh_num LIKE mhnk-mhngh,
            z_faebt_num LIKE mhnk-faebt.
      DATA: z_faehw TYPE string,
            z_zinhw TYPE string,
            z_mhngh TYPE string,
            z_faebt TYPE string.
    statement:
      READ TABLE in_par WITH KEY 'Z_FAEHW'.
      CHECK sy-subrc = 0.
      z_faehw = in_par-value.
      z_faehw_num = z_faehw.
    I suppose a type-conflict.
    Regard, Bernd

  • Print 2 different forms to 2 different printers 1 ABAP program

    Is it possible to print 2 different forms to 2 different printers from one program?
    Example: a Shipping invoice and a Shipping Label (mailing sticky label)
    Could they be a combination for form types? SAP Script and SMARTFORMS, SAP Script and PDF, SMARTFORMS and PDF
    I have a need to print a Shipping Invoice and Label from a single program. I need to beable to print multiple copies of the label at the same time for multiple shipping packages. i.e. 1 of 4, 2 of 4 etc.
    The users want to select print a single invoice and the neccessary labels from a single transaction request.
    Ken

    Hi,
    Could you please see the program RLVSDR40.
    Thanks,
    Abhijit

  • EBS Forms functional script runs fine in OpenScript but not from OTM

    Hi,
    I have an EBS forms functional test script which runs fine in OpenScript, but when scheduled from OTM, the web part runs fine but when it comes to forms, the script fails with the following error:
    Forms Object Not Found! XPath: //forms:window[(@name='NAVIGATOR')], Type: oracle.oats.scripting.modules.formsFT.helper.test.FormWindow, Cause: No Matches <Less>
    I have performed all the steps below already:
    1) Stopping the OATS Agent service and changing it to manual.
    2) Starting the command prompt and running the AgentManagerService command as mentioned in your forum.
    3) The console displays
    C:\>C:\OracleATS\agentmanager\bin\AgentManagerService.exe -c AgentManagerService
    .conf
    wrapper  | --> Wrapper Started as Console
    wrapper  | Launching a JVM...
    jvm 1    | Wrapper (Version 3.0.3)
    jvm 1    |
    4) I have added the test in the OTM with the following command line settings:
    -browser.type InternetExplorer -formsft.startup_timeout 30 -formsft.action_timeout 20 -formsft.response_timeout 10 -delayPercentage -1 -delayMin 0 -delayMax 5 -FormsAutomationEnabler.bat -enableForms true
    But each time the script fails, please note that my script has assets and they are placed within the script folder.
    Please help me on this at earliest.
    Thanks,
    Aarti

    Hello Aarti!
    I had the same problem and this steps help to solve the problem:
    You need to enable Forms Automation under agent. Please follow by below steps.
    1.open command prompt
    2.cd C:\OracleATS\agent
    3.FormsAutomationEnabler.bat -enableForms true
    4. Run script from OTM
    Attila

  • Displaying a form in an iView & displaying data in .pdf format in an iView

    Hi,
    1)We want to show some details in an iView pertaining to the person who has logged into the portal. We are calling a function module (when a user clicks on a workset in the portal) and passing some parameters to it. The function module pulls the data from the tables and generates a sap script which displays the data in a SAP Script Form.
    Now our problem is how do we display the form in the iView?
    2) We want to show some details in an iView pertaining to the person who has logged into the portal. We are calling a function module (when a user clicks on a workset in the portal) and passing some parameters to it. The function module pulls the data from the tables and converts the data into a pdf file.
    How do we display the data in the .pdf format in the iView.

    Hi,
    displaying a PDF in an iView I receive the following errormessage:
    Access denied:.....
    security zone:.....
    The portalapp.xml is like
    <property name="SecurityZone" value="epp/NO_SAFETY"/>
                    <property name="ResourceBundleName" value="epp_lang"/>
                    <property name="AuthRequirement" value="none"/>
    Any ideas?
    Thanks
    Walter

  • Dynamic link to different form and parameters

    Have a few problems i would like some help on.
    First i will describe what I’m planning to do.
    And I'm sorry if it's a little of the normal way of doing it, but I'm new to the Portal
    Have a list over different trip people shall have possibility to join,
    Some of those trips can are for the person only and others for the whole family.
    So my plan is to show a list of all the trips and then a status saying if
    they already has join it or not.
    Then the person can press the trip (link) and depending on some data,
    they would be transferred to 2 different forms. One for 1 person trip and another for a x person trip.
    Like:
    Trip     | Status | Personal/family
    Golf     | New     | Personal - if pressed open form1
    Boat     | New     | Personal - if pressed open form1
    Dinner     | New      | Family - if pressed open form2
    Soccer     | Accepted |Personal - if pressed open form1
    Tennis | Declined | Personal - if pressed open form1
    I made a report, showing all trip, but i can only make it use 1 link to form1, how do i make the link dynamic
    The next problem is when i open form1, i would like to do some stuff in PL/SQL (Before Page).
    But I have tried to get the parameters from the URL and I cannot get it to work.
    I use something like, but the l_names.count is 0
    ....portal/PORTAL.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=1380125721&p_arg_names=_sessionid&p_arg_values=&p_arg_names=ENROLL_ID&p_arg_values=5677&p_arg_names=_enroll_id_cond&p_arg_values=%3D
    DECLARE
    l_names owa.vc_arr;
    l_values owa.vc_arr;
    l_lang varchar2(100) := PORTAL.wwctx_api.get_nls_language;
    l_enroll_id NUMBER;
    BEGIN
    PORTAL.wwpro_api_parameters.retrieve(l_names, l_values);
    FOR i in 1..l_names.count
    LOOP
    IF l_names(i) = 'enroll_id' THEN
         l_enroll_id:= l_values(i);
    END IF;
    END LOOP;
    END;
    What i also want to do is in some cases. Is create a row in a table and populate the form1 with it in the "before page", instead of using query from parameters.
    Like:
    Trip     | Status | Personal/family
    Golf     | New     | Personal - if pressed open form1 and insert data and populate the form with the inserted data
    Soccer     | Accepted |Personal - if pressed open form1 and do the standard query
    How do I do that?

    One way to do this would be to hold the urls for the pages you need to display in a table. You could then build the links as one of the columns of a report using some fancy SQL.<br>
    <br>
    Or you could make a simple function to return the correct link based on the relevant parameters:<br>
    <br>
    create or replace function get_url (p_criteria in varchar2) return varchar2<br>
    is<br>
    lv_url varchar2(500);<br>
    begin<br>
    if p_criteria = 'Personal' then<br>
    lv_url := 'http://host:port/pls/portal/etc...';<br>
    end if;<br>
    etc...<br>
    return '&LT;a href="' || lv_url || '"&GT;' || p_criteria || '&LT;/a&GT;';<br>
    end;<br>
    <br>
    Your report could then include the function as one of the columns in your report.<br>
    Not very elegant but it should do the job.
    Patrick.

  • PO BOX not displayed in form

    hi all,
    i'm using sapscript to displayed this form... but when i debug the value for PO BOX is there but when print is not displayed... why this happened?
    below is my coding...
    TI           &GV_FULLNAME& <A>&GV_REGNO&</>
    /:           IF &GW_ADD_COM-STR_SUPPL1& NE &SPACE&.
    H5           &GW_ADD_COM-STR_SUPPL1&
    /:           ENDIF.
    /:           IF &GW_ADD_COM-STR_SUPPL2& NE &SPACE&.
    H5           &GW_ADD_COM-STR_SUPPL2&
    /:           ENDIF.
    /:           IF &GW_ADD_COM-STREET& NE &SPACE&.
    /:           IF &GW_ADD_COM-HOUSE_NUM1& NE &SPACE&.
    H5           &GW_ADD_COM-HOUSE_NUM1& &GW_ADD_COM-STREET&
    /:           ELSE.
    H5           &GW_ADD_COM-STREET&
    /:           ENDIF.
    /:           ENDIF.
    /:           IF &GW_ADD_COM-STR_SUPPL3& NE &SPACE&
    H5           &GW_ADD_COM-STR_SUPPL3&
    /:           ENDIF.
    /:           ADDRESS PARAGRAPH H5
    /:             LOCATION &GW_ADD_COM-LOCATION&
    /:                       POBOX    &GW_ADD_COM-PO_BOX& CODE &GW_ADD_COM-POST_CODE2& CITY &GW_ADD-COM-PO_BOX_LOC&
    /:             POSTCODE &GW_ADD_COM-POST_CODE1&
    /:             CITY     &GW_ADD_COM-CITY1&, &GW_ADD_COM-CITY2&
    /:             REGION   &GW_ADD_COM-REGION&
    /:             COUNTRY  &GW_ADD_COM-COUNTRY&
    /:             FROMCOUNTRY &T001-LAND1&
    /:           ENDADDRESS

    hi Anaur,
             please check the following,
    1.  PO code entry in not empty in database table.
    2.  the variable u r using in script is correct.
    3. you wrote the varable correct and ther line is of command line / feed line.

  • Regarding Smart form and Script

    Hi.
    Can anybody send Full screen short of Smart Form And Script.
    Thanks And Regards
    Gulo.

    Hi Golu singh,
    Pleasae check this link
    Tutorials on SAP Script/Smart Forms
    http://www.****************/Tutorials/Smartforms/SFMain.htm
    SAP SmartForms explained step by step including Table display .
    http://sap.niraj.tripod.com/id67.html
    SMARTFORMS
    [Step br Step Tutorial to create Smartform|http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html]
    Best regards,
    raam

  • Displaying dynamic form for multiple players

    I am trying to dynamically display a form based on the number
    the user chooses. For instance, the user is register his/her child
    for soccer. I have a form that asks all the parent/guardian
    information and the player info. If the parent/guardian chooses to
    register 2 or more, I need to duplicate the player form. I can use
    a span tag and innerhtml, but that seems very tedious in
    javascript. Is there a better way to dynamically create the form
    for player 2, player 3, ...? I would like to do it all on the same
    page without the user gong to the next page. Your help is
    appreciated.
    Thanks,
    Scott

    In regards to tedious client side JavaScript, there are
    bunches of canned scripts available that you can modify.
    Here's one example;
    http://javascript.internet.com/forms/dynamic-input.html
    One of my favorites is deepgrid
    http://www.geocities.com/deepgrid/.
    I wrote a custom tag wrapper for the deepgrid code awhile
    back
    http://www.intersuite.com/client/index.cfm/2005/8/30/ColdFusion-custom-tags-for-Javascript -based-DeepGrid-UI
    http://www.intersuite.com/client/index.cfm/2005/9/28/cfdeepGrid-Custom-tag-for-deepGridjs
    Another solution would be to go the AJAX route where the user
    stays on the same page, they click submit, AJAX goes out and
    submits the info and refreshes the registered list below the form.
    One of the easiest API's is JSMX (
    http://www.lalabird.com/ )

Maybe you are looking for