Calling two different layouts in  a script

Hi all,
        I have one requirement. I have created a form for Medruck and assigned it in nace tcode for purchase order.  My requirement is if version number is ' 0 ' one page should be called and if version number is not zero another page layout should be called. I have created 2 different page layouts in my SAP Script i.e. one page named first layout and second named other layout. if version number is 0 first layout should be called and version number ne 0 other layout page should be called. Is it possible to do it?  if so, how shall i do this... 
Kindly help me...
Thanks and regards,
subbu.

Hi,
Can you tell us for what is version concept for.For which program we have to check the version .
For example see the below scenario.
-> we have to call the different pages for different company codes . Do as follows.
sort itab by bukrs.
call function 'OPEN_FORM'.
loop at itab.
at new bukrs .
  if itab-bukrs = '01'.
     call function 'START_FORM'.
      expoting
            page = 'FIRST'.
  else.
     call function 'START_FORM'.
      expoting
            page = 'SECOND'.
  endif.
endat.
      call function 'WRITE_FORM'.
AT END of bukrs.
      call function 'END_FORM'.
endat.
Endloop.
   call function 'CLOSE_FORM'.
Thanks,
NN.

Similar Messages

  • How to call two different servlet-url in the same application

    Hi,
    I want to call, consecutively these methods in my application.
    response.sendRedirect(servlet-url1)
    reponse.sendRedirect(servlet-url2)
    but the second method dont answer,
    I think, the first method redirect s with response ,
    but how to call two different servlet ?
    thanks

    if you call the first redirect, the servlet is getting aborted, so you can redirect to the first servlet, working the stuff in it, and then in the second servlet you can redirect to the third servlet

  • Calling 2 different layout by clicking radiobutton

    Hi ,
    In my program there are 3 radiobutton . 1- Open item 2- Closed Item 3- Both
    In all the 3 layout file format is same .
    I am getting my first layout (Open). Is there is any sample program or Logic where i can get the 2nd & 3rd output by clicking the 2nd & 3rd radio button.
    Pls anyone give me the sample prog or logic how to do this.
    Thanks
    Kiro

    Hi this is vague question.
    Are you using sap script or smartForm?
    Is this Finance module or SD or what?

  • Getting error in calling two different Bapi

    Hi ALL ,
    I want to create web-dynpro application
    Requirement : Main View contain one tabstrip 'T' which will display data from all the values.
    I am using one search Button 'B'and passing one number 777
    For example :for search number 777 record should come like this
    Search -- 777 -ITC NUMBER --Input filed
    For Payment & Transfer view I am calling BAPI 'A'.
    Loan Transfer I am calling Bapi 'B'.
    Desired Output :
    A            A                     B
    payment    transfer          laontransfer
    cash        JRM account        open
    cheque     CTC Employee        closed
    For this I am using following Views
    1)Main View  2) Payment 3) Transfer 4)Loan Transfer
    Error : I am not getting any records in field 'Loan Transfer ' which I am calling from Bapi 'B'.
    Can anyone please help me out ??
    Like this :
    A            A                      B
    payment    transfer          laontransfer
    cash        JRM account       
    cheque     CTC Employee

    Hi ,
    Can anyone please let me know the approach of calling different BAPI s
    in web dynpro application.
    Requirement : I want to connect Input from both the Bapi to single element.
    Regards
    Rahul

  • Calling two different clients in SOLAR02-configuration

    Hi Experts,
    I have got two clients one for Configuration and another for development - All the necessary settings have been done and they are assigned to the project system landscape.
    since both of them belongs to the same logical component(SAP ECC) during configuration in SOLAR02 I'm unable to select the required client as the system provides selection only for logical component.
    How can i handle this ? Any inputs ?
    Thanks in advance.
    Regards,
    Vasanth

    Dear Friend.
    all the three client like dev qa and prd are always in a single logical component for any satellite or connected system say R/3.
    Now if you want to run a transaction say on development then in the solar02 transaction goto SAP menu
    Configuration->System Role
    A pop up will appear choose the role here if it is dev then choose dev if it is quality then choose quality based upon ur assignment to the logical component
    then execute the transaction it will be execute in the selected role.
    Hope it clarifies ur doubt
    Regards
    Prakhar

  • View Calling Two different Components

    Hello Guys,
    I'm developing a Web Dynpro project with a lot of views under this project, and in a specific view I'll need call the another view (by LINK) and this view it was constructed under the another component:
    MyWDProject
    (+)<b>Applications</b>
    .....FinanceApp
    .....ManagerApp
    .....UserApp
    (+)<b>Components</b>
    .....<u>FinanceComponent</u>
    .......MyView1
    .......MyView2
    .....<u>ManagerComponent</u>
    .......MyView1
    .......MyView2
    .....<u>UserComponent</u>
    .......MyView1
    .......MyView2
    For instance: <b>ManagerComponent.MyView1</b> there's a <b>HyperLink</b> and this link I should call a <b>UserComponent.MyView2</b>.
    It's possible ?
    Regards,
    Evandro.

    Hello Evandro,
    Create a window in the component <b>UserComponent</b>, say UserCompWindow. As a result, an interface view will get created for this window, say with the name UserCompWindowInterfaceView and create an Inbound plug for this interfaceView, say fromMangeCompIn.
    Embed the view <b>UserComponent.MyView2</b> in this window.
    Go to the Used Components section of <b>ManagerComponent</b> and add the Component <b>UserComponent</b> as used component.
    Then Embed the interface view <b>UserCompWindowInterfaceView</b> to the required cell area/ view Container in the Navigation modeller of <b>ManagerComponent</b>.
    Create an Outbound plug from the view <b>MyView1</b> of the <b>ManagerComponent</b> say fromManageCompIn and establish a link to the <b>UserCompWindowInterfaceView</b>.(i.e establish a link between toManageCompIn & fromMangeCompIn.
    In  the action handler of the link fire this outbound plug.
    Good Luck.
    Bala

  • Calling two different data sources within same transaction

    Hi,
    I have a method (in an Entity Bean), which I need to use two data sources.
    But the system give this error when I try to do it.
    An illegal attempt to use multiple resources that have only one-phase capability has occurred within a global transaction.
    Please help me to solve this problem.
    Best Regards,
    Chamal.

    I hope you need to use XA Drivers (while create the connection pool it self you need to choose the XA Drivers) for this. else you need to use the userTranscations instead of containers.
    Because other database drivers won't support this feature.
    Please try any of this. Using XA drivers is costly interms of performace.

  • Use different Layouts for Summary and Details in Drill down report

    Hi All,
    I have a 2 level drill down report in ALV.
    The summary report has certain fields and the Detail report has different fields. Now my problem is that when i use a default layout (with all fields of summary report) for the summary report, and drill down to the detail report i'm missing the fields on detail that are not in Summary. And if i save the default layout as default (with all fields of Detail) and go back to sumary, I'm missing the some other fields on summary (which are not on detail report).
    Is there a way to make different default layouts for each of those summary and detail reports:
    Also as the layouts are choosen by the user, i cannot hardcode any particular layout;
    So if the user chooses a layout for detail; it has to stay the same layout for the detail report if he goes to summary and then back to detail; unless the user changes the layout again.
    I'm using two different Layout types for each report. but i still cannot get the desired effect.
    Data:
          gt_layout_s             type slis_layout_alv,
          gt_layout_d             type slis_layout_alv,
      call function 'REUSE_ALV_GRID_DISPLAY'
        exporting
          i_callback_program       = g_repid
          is_layout                = <b>gt_layout_s</b>
          i_callback_top_of_page   = g_top_of_page
          i_callback_user_command  = g_user_command
          i_callback_pf_status_set = g_status
          i_save                   = g_save
          is_variant               = gs_variant
          it_fieldcat              = gt_fieldcat[]
          it_events                = gt_events[]
        importing
          es_exit_caused_by_user   = gs_exit_caused_by_user
        tables
          t_outtab                 = it_summary.
      call function 'REUSE_ALV_GRID_DISPLAY'
        exporting
          i_callback_program       = g_repid
          is_layout                = <b>gt_layout_d</b>
          i_callback_top_of_page   = g_top_of_page
          i_callback_user_command  = g_user_command
          i_callback_pf_status_set = g_status
          i_save                   = g_save
          is_variant               = gs_variant
          it_fieldcat              = gt_fieldcat[]
          it_events                = gt_events[]
        importing
          es_exit_caused_by_user   = gs_exit_caused_by_user
        tables
          t_outtab                 = it_detail_disp.

    Here is how you differentiate between the layout of two different grids. There is the parameter, IS_VARIANT in the function. You usually leave it empty or pass only the report name and username. <b>What you need to do is to pass unique string for each grids to the HANDLE field of the parameter IS_VARIANT.</b> You can probably hard code it as HEADER and DETAILS in your case. Once that is done, system identified that these two different layout for different grids.
    Regards,
    Ravi
    Note : Please mark all the helpful answers<u></u>

  • Same Bank Cheque Different Layouts

    Hi,
    MY client wants to print continuous Axis Bank cheque printing for that i have modified the zscript and have done.
    Now he wants to print axis cheque single leaf. Even though both cheques belongs to same bank the layouts are different.
    Now they want to use single leaf for time being( they had just 200 copies of single leaf after that they are going to use continuous stationary).
    My Doubt is where/how do differentiate these two different layouts for single bank.
    I have one solution that attatch the layout for single leaf in fbzp for related company codes.
    when ever they are going to use continuous stationary then i will attach the respective script in fbzp.
    Is there any other solution....??     plze help me.

    Hello Henri,
    I hope I'm not going in against the rules by reviving this thread. But I have a similar problem as described by you above.
    We have the situation that for CoCd 1 we have the EBS up and running, using FF_5 to upload the EBS works just fine. Now I had to configure the EBS CoCd 2, it's the same bank and so also the same bank key as CoCd 1 uses. So I have made all the settings similar to CoCd 1. The bank account is present in OT55, the house bank exists. As far as I can tell, all the settings are similar.
    But I receive the same error as you describe above:
    Bank details  60xxxxxxxx0 not in table T028B
    Message no. FB759
    Diagnosis
    The bank detail with bank key  and bank account 60XXXXXXXX0 was not allocated to a transaction type.
    Procedure
    Proceed
    So the error message only gives me the bank account number and not the bank key. We use the following format: SWIFT MT940 - veld 86: structure recognized automatically.
    When I check the bank file I was given as example, the set-up looks the exact same for both CoCd's, so I cannot figure out why 1 works and the other one doesn't.
    I hope that you can help me.
    Best regards,
    Thijs

  • How do I call two csv files into ews?

    I have to call two csv files into a script with ews:
    Param([string]$calInputFile = "C:\Algemene agenda\Data docenten.txt" )
    Param([string]$calMailboxFile ="C:\Algemene agenda\Alle docenten.txt"
    # Load all Entries
    $calagenda = Import-Csv $calInputFile
    $calMailbox = Import-Csv $callMailboxfile
    This do not work.
    How can I do this???

    OH!!  Why didn't I see this before?  s-:  You are having problems with the Param definition, but it appears you are having troubles pulling the data into the script.  You can only have a single Param definition for a script.  Try
    the following instead:
    Param(
        [string]$calInputFile
    = "C:\Algemene agenda\Data docenten.txt",
        [string]$calMailboxFile
    ="C:\Algemene agenda\Alle docenten.txt"
    ## Load all Entries
    $calagenda = Import-Csv $calInputFile
    $calMailbox = Import-Csv $callMailboxfile
    To define multiple parameters, you have your Param definition (with its parentheses) and all parameters are defined inside it, separated by commas.

  • Different layouts in one single report

    Hi,
    My report consists of 6 different spreasheets, 2 has Landscape layout and 4 has Portrait layout.. so i m trying to create 2 portrait in Header section, 2 Landscapes in Main section, and 2 portrait again in the trailer section.. i have six diff queries for six sheets.. i created one Lanscape in main section with the matrix query.. i m trying to create 1 portrait in trailer section (tabular ) ..... but when i finish this tabular and try to run it, it changes the layout for matrix report in the MAIN section ???? does it overwrite the original layout, which was set for diff query ?
    How to solve this ???? I tried with report block as well...
    Pleaseeeeeeee help..

    Hi,
    bring your two different layouts in seperate frames and write format triggers on this frames to show or suppress them (depending on your input). Connect the two frames with an collabsing anchor.
    Regards
    Rainer

  • Can we call two layouts for a single script?

    Can we call two layouts for a single script?
    Where dow e assign print program to a script?
    in NACE transaction is it possible.......
    Thanks in advance.
    Regards.
    Abhilash.

    Hi Abhilash.
    Greetings for the day.
    U can use one script in diffrent programs.
    Yea u can do it in NACE transaction.
    procedure would b as foloows:-
    1.NACE
    2.Select the apllication
    3.Output types (press tab).
    4.again selet the output type which u require
    5.then press "procedure routines"
    here u can give the program name and fom name.
    plz reward if found helpful.
    regards
    prashant tiwari

  • Read Only/ Plan Mode Changes for a layout with two different queries

    Hi,
    I have a situvation where a layout opens in a read only mode and when
    the users click on button plan, it changes to plan mode. The catch here however is the queries
    for read mode and plan mode are slightly different, in the read only mode the query has subtotals
    and other calculations that are not a part of the plan mode ( where they input forecasts).
    I know if the read and plan query are the same, we can achieve this through the command
    SET_DATA_ENTRY_MODE. In case they are different, as above, how can i achieve this.
    Thanks
    Rashmi.

    Say you are using two different queries as DP1 & DP2 for Display and Plan mode respectively. You also have one Analysis grid item in Web template which initially points to DP1.
    On PLAN button call command SET_ITEM_PARAMETER to set the data provider of analysis item to DP2.
    OR
    You have only one dataprovider in your web template as DP1 initially pointing to Query 1 which you want to show in Display mode. Then on PLAN button call a command SET_DATA_PROVIDER_PARAMETERS to point the DP1 to 2nd query instead of 1st query.  You can find this command under Commands for data Provider --> Basic data provider commands.
    Edited by: Deepti Maru on Nov 27, 2009 9:52 PM

  • DMEE layout for two different format

    Hi,
    I want to create DMME for Argentina.
    this contains two format.One is with tax and other is without tax for the same company code.
    wheter it is possbile to define two layout in a single DMEE tree.
    If so how to seggregate these two in a single layout.
    Regards,
    Bala

    Say you are using two different queries as DP1 & DP2 for Display and Plan mode respectively. You also have one Analysis grid item in Web template which initially points to DP1.
    On PLAN button call command SET_ITEM_PARAMETER to set the data provider of analysis item to DP2.
    OR
    You have only one dataprovider in your web template as DP1 initially pointing to Query 1 which you want to show in Display mode. Then on PLAN button call a command SET_DATA_PROVIDER_PARAMETERS to point the DP1 to 2nd query instead of 1st query.  You can find this command under Commands for data Provider --> Basic data provider commands.
    Edited by: Deepti Maru on Nov 27, 2009 9:52 PM

  • Call two smartforms from two different print programs

    Hi Sapiens,
      I have a requirement that there are two different smartforms and they have there independent print programs.
      Just wanted to know weather is it possible in SAP to merge those to smartforms and there print programs so that first smartform is displayed first and second smartform is printed at its back(duplex printing).
    Regards
    Milind

    Hi,
    You can use submit program in the first program to call the second program and
    fetch the required interface data related to the second smartform and once u have the interface data
    for both the programs then u can merge the both smartforms data and display them as one layout instead of displaying the two layouts in different formats.
    For merging of data of both the smartforms u can do :Convert the output of first smartform into OTF format data then convert the data of second smartform into OTF table and append it to the first table .
    Now u have the data of both the smartforms in one table then convert this OTF data into PDF format and create a spool request with the combined forms data.
    Thanks,
    M.Naveen Kumar.

Maybe you are looking for

  • Computer will not boot up after recent software install

    I recently tried to install a series of software updates. Not all were successful. Soon therafter the computer froze up while in safari. I turned it off and the computer would not boot up on restart, and instead sent me to the darwin login screen. I

  • Import video from DVD (VOB files)?

    What is the recommended way to import DVD (non-commercial/non-encrypted) footage into Final Cut Pro X? I have some clips on a DVD that I need to include in my project. I don't want to transcode and I've read using streamclip is the way to go but requ

  • I bought an iPad 2 to replace my iPad. How do I get my apps to transfer to the new ipad2?

    I bought an iPad 2 to replace my iPad. How do I get my apps to transfer to the new ipad2?

  • Changes to Jpeg not Showing in other programs

    I made changes to a JPEG using bridge and the raw filter and notice it does not show those changes in other programs. I usually use DNG's and notice that other programs show the image correctly modified, I think there is a new thumbanil embedded. Do

  • Flash mx 2004 vs ADOBE FLASH CS4 PROFESSIONAL

    I'm am about to try ADOBE FLASH CS4 PROFESSIONAL (trial) It's for my daughter, she began a project at school with madromedia flash mx 2004. but my trial version at home is no longer available and she needs a little more time at home for her project.