R3 Transaction CV04N; process first screen

Hello all,
I'm using URLGenerator to generate a URL for the transaction CV04N. I supply params and get the URL no problem and display it in the portal.
I can't process the first screen though, it always gets displayed. Here is the important part of the code that I'm using.
// Generate our URL to run transaction ZVAN
IUrlGeneratorService urlGen = (IUrlGeneratorService)PortalRuntime.getRuntimeResources().getService(IUrlGeneratorService.KEY);
ISAPUrlGenerator transGen = null;
ISpecializedUrlGenerator specURL = urlGen.getSpecializedUrlGenerator(ISAPUrlGenerator.KEY);
if(specURL instanceof ISAPUrlGenerator){
     transGen = (ISAPUrlGenerator)specURL;
     try{
         String transURL = transGen.generateTransactionUrl(request,
           sapSystem,
           "CV04N",     // Transaction code
           "STDOKAR-LOW=DMO&STDKTXT-LOW=*TEST*", // Parameter list
           "WinGui",     // GUI type
           true,          // Process first screen
           false);     // Uses transaction SP01
// We use JavaScript to display the transaction in the window
        myForm.addRawText("<script>window.location='"+transURL+"';</script>");
    }catch(Exception e){
        gl.addText(1, 1, "Unable to generate transaction URL");
        gl.addText(2, 1, e.toString());
}else{
    gl.addText(1, 1, "Not instanceof ISAPUrlGenerator");
the transaction is called with and the parameters are there in the appropriate fields, but the initial screen always shows. How can I process the initial screen of this transaction?
Regards,
Patrick.

Hi,
You can pass values to Transaction through the property "Parameters Forwarded To Transaction".
But if you want to set the parameter values dynamically, then you have to do a little customisation. You can develop a webdynpro application where you can write the logic for dynamically setting the parameter and call the transaction iview through WDPortalNavigation.navigateAbsolute and set the dynamic value there.
Thanks

Similar Messages

  • Transaction iView - wrong function is used by processing first screen

    Hi,
    Iu2019m trying to configure a SAP transaction iView with some given parameters.
    The application parameters work fine. By excuting the iView all fields of the transaction are filled with the desired parameters.
    But when I use the property u201EProcess first screenu201C the transaction uses the wrong button. It always executes the function check of the transaction and not the function show, which should be used...
    Does anybody know, how to define which button / function should be used by processing the first screen?
    Thanks in advance,
    Lydia

    Hi Lydia,
    Please check the below thread & wiki link -
    process first screen r/3 trans iview
    http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=22375
    Best Regards,
    Sen

  • Process first screen r/3 trans iview

    Hello,
    We have created a few r/3 transaction iviews and pre-populated the fields using the "application parameter" field in the iviews.  I would like, once the iview is clicked, the iview to go ahead and accept the parameters and return the results without having to click on "Execute".  I have tried activating the "Process First Screen" option in the iview but that doesn't work, the tool tip says it simulates an "Enter" key but Enter won't execute...I need to simulate an "F8" key...any ideas?
    Regards,
    Patrick

    That's it.  Thanks!  In case anyone else is wondering the ok code for F8 is "strt"
    Regards,
    Patrick

  • CALL TRANSACTION AND SKIP FIRST SCREEN to specified tab in TCODE 'IW32'

    Hi,
    I am using CALL TRANSACTION AND SKIP FIRST SCREEN in ALV Grid Report to call IW32 tcode and it goes to tcode skipping the first screen. But it goes to the default header tab in the tab control. Whereas I wish to go to the specified tab 'OPERATIONS'.
    Can any one help me, as to how to resolve this issue ?
    Thanks in advance.

    Sridher,
    I have the similar requirement. but in my case its COSTS tab. Could you please provide the code you have used for this to work?
    I used standard "call transaction with mode 'E' ". This seems to be working but I am not pleased by my effort. Is there any proper way that you might have followed ?
    Greatly appreciated your help.
    Regards,
    Reddy

  • Call transaction and skip first screen

    Hi,
    I have a little but I think difficult problem
    I have a selection screen and after that I call my dnypro. In this dynpro I can open a dynpro which looks like a popup where I have the possibility to call the same transaction with other input paramters.
    the problem is when I make call transaction and want to go back I see the pop up dynpro which calls the transaction. so how can I close this popup dynpro by calling again transaction?

    I think I can't eyplain it.
    Following. I have:
    call transaction trans: selection screen calls dynpro 100, in dynpro 100 button with dynpro 200  with starting parameters.
    dynpro 200 calls again transaction trans with skip first screen.
    now I have displayed again dynpro 100 with new values. When I now want to go back I can see dynpro 200 which called the transaction. So how can I achieve this that dynpro 200 isn't shown when I go back ?

  • Call Transaction and skip first screen on workflow task

    Hello, I'm developing  a workflow with a user decison step, where the user should fill some data in transaction FD02.
    When the user presses the button in the workitem, the wf goes to a step where i should call transaction FD02.
    I'm using SET PARAMETER ID: 'KUN' FIELD customer.  to fill the customer field and CALL TRANSACTION 'FD02' AND SKIP FIRST SCREEN.
    But when I press the button in the workitem nothing happens. I tested the same in a report and it works. Can anybody help me?
    Thanks a lot.

    Hi,
    try below code
    data: fcode type FCODE value 'ANTRAGAEN',
           customer type kunner,
           bukrs type bukrs.
    SET PARAMETER ID  'KUN' FIELD customer. "  to fill the customer field
    SET PARAMETER ID  'BUK' FIELD companycoder. " to fill the company code
    SET PARAMETER ID  'TTC' FIELD fcoder.       " to fill Function code for enter " it may be other than TTC please check.
    CALL TRANSACTION 'FD02' AND SKIP FIRST SCREEN.

  • Call Transaction and skip first screen in SE37

    Hi All,
    I want call transaction SE37 and skip first screen of it. Is it possible through the statemen Call transaction 'SE37' and skip first screen ?.
    Of course I have populated the parameter id 'LIB' before this statement but it is not working. Though I have found several posts with this solution but it's not working for me. Could anyone please let me know if this can be done using this statement or there are any other additions required along with this statement or it is not at all possible to achieve this functionality.
    Thanks in advance !!.

    Solved! without a solution? very funny.
    In somewhere of second screen related bdcdata, intensionlly make a mistake to force the system throws the error and the call the trasnaction with mode 'E'. This will solve the issue.
    perform bdc_field       using 'BDC_CURSO'                   " I removed letter R in 'BDC_CURSO'
                                                 'ISEG-ERFMG(01)'.
    CALL TRANSACTION 'XXXX' USING BDCDATA MODE 'E'.
    Thanks.
    Suresh Yerra.

  • Call transaction - not skipping first screen until browser window maximized

    I've had a search on the forum for this but have not been able to find an answer. I'm calling an SAP transaction from a Web Dynpro application, passing over a document number and asking it to skip the first screen, as follows:
    CONCATENATE 'http'
    '://' host ':' port
    '/sap/bc/gui/sap/its/webgui/?~transaction=MIR4  RBKP-BELNR=5105600751' '&DYNP_OKCODE=SHOW'
    into url.
    This pops up the transaction in the new window with the document number (hard-coded above while I'm testing this out) but doesn't immidiately skip the the first screen. The browser window opens at a reduced size and as soon as as I maximize it (not pressing enter or doing anything else), that's when it jumps through to the detail screen. A little strange.
    Does anyone have any ideas why it's doing this and what I can do to correct it ?
    thanks,
    Malcolm.

    this is now resolved. My call to the transaction was slightly incorrect. This is now the working code:
    CONCATENATE 'http'
    '://' host ':' port
    '/sap/bc/gui/sap/its/webgui/?~transaction=*MIR4 RBKP-BELNR=5105600751' ';DYNP_OKCODE=SHOW'
    into url.

  • Transaction Variant -Skip first screen of sm30

    Hi ,
    I have created a transaction variant for a ztransaction using shd0.This is for transaction sm30.
    I need to skip the first screen and directly switch to table maintenance screen of the table.
    While creating a transaction variant for sm30 I came across the maintain button , but I could not set its value to X.
    Any idea how I can do this ?? or how i can directly switch to the maintainance screen?
    Regards,
    Shital

    Hi,
    You can make use of teh FM involved in SM30.
    See the example code below
    PARAMETERS: y_p_lgnm TYPE lgnum.
    DATA : y_v_string   TYPE string.
    CONSTANTS: y_k_u        TYPE char1   VALUE 'U',
              y_k_x        TYPE char1   VALUE 'X',
              y_k_lgnum    TYPE char7   VALUE 'LGNUM',
              y_k_lgtyp    TYPE char5   VALUE 'LGTYP',
              y_k_eq       TYPE char2   VALUE 'EQ',
              y_k_viewname TYPE tabname VALUE 'YLOMANAGTROL'.
    DATA: y_i_seltab TYPE STANDARD TABLE OF vimsellist.
    DATA: y_wa_seltab TYPE vimsellist.
    START-OF-SELECTION.
    *authority check for warehouse number
    AUTHORITY-CHECK OBJECT 'L_LGNUM'
                 ID y_k_lgnum FIELD y_p_lgnm
                 ID y_k_lgtyp FIELD '*'.
    IF sy-subrc NE 0.
    * user not authorised
       CONCATENATE y_p_lgnm text-003 INTO y_v_string SEPARATED BY space.
       MESSAGE s015(ylo1) WITH text-001
                               sy-uname
                               text-002
                               y_v_string.
    ELSE.
    *Clear Internal Table
       CLEAR y_i_seltab.
       CLEAR y_wa_seltab.
    *passing the selection parameters to the function module
    *view_maintenance_call.
       y_wa_seltab-viewfield = y_k_lgnum.
       y_wa_seltab-value     = y_p_lgnm.
       y_wa_seltab-operator  = y_k_eq.
    APPEND y_wa_seltab TO y_i_seltab.
       CALL FUNCTION 'VIEW_MAINTENANCE_CALL'
         EXPORTING
           action               = y_k_u
           view_name            = y_k_viewname
           show_selection_popup = y_k_x
         TABLES
           dba_sellist          = y_i_seltab.
    ENDIF.
    Here i am having my Y table 'YLOMANAGTROL'
    It has primary key field warehouse number
    I am creating a report with a parameter where user will give the warehouse number which he wants to change data for.
    Then I check the authoity for this warehouse and then directly call the table in change mode using the FM.
    I hope it is useful for you.
    Regards,
    Ankur Parab

  • Call Transaction - both Skip first screen and USING in one

    Hi Experts,
    I have to call a Tcode which is for a report painter report and I have to fill the selection screen parameters for that report. Nothing is mandatory but it will be filled in select option field.
    My issue is I can only call this Tcode with all the parameters when I use USIING with BDC. but I also want to skip the selection screen so that only the final output gets displayed.
    I tried SET PARAMETER ID but I am filling the select-options range from a custom table so don't know how to achieve that.
    Any suggestions !!!

    See here: [sdn wiki - Batch input FAQ - Is it possible to simulate AND SKIP FIRST SCREEN using BDC?|http://wiki.sdn.sap.com/wiki/display/ABAP/BatchInputFAQ#BatchInputFAQ-IsitpossibletosimulateANDSKIPFIRSTSCREENusingBDC%3F]

  • Can we skip the first screen after call transaction has been performed?

    Hello Friends,
    I have written a program for INTERCATIVE REPORT .
    When i click on the link it needs to call transcation MD4C.
    I have written a BDC for calling the transaction and skipped first screen.Its working fine but the problem is that WHEN I TRY TO COME BACK TO MY REPORT OUTPUT USING(BACK OR EXIT OR CANCEL) BUTTONS THE CONTROL IS PASSING THRU THE FIRST SCREEN OF TRANSACTION MD4C and then its coming back to report output.
    Now i dont need the first screen of the MD4C to be dispalyed when i use the BUTTONS.
    That means i want to dirctly come to report output when i click (BACK OR EXIT OR CANCEL) BUTTONS.
    Hope the problem is clear.
    Is there any way?
    Please do suggest me.
    Thankx in advance,
    Sanghamitra.

    Hello everybody,
    Thanks a lot for the quick replies.
    The problem i m facing comes after the call transaction statement gets executed.
    when the statement gets executed i m able to skip first screen and goto the required screen in the transaction but WHEN I PRESS BACK BUTTON THERE it is showing the initial screen which i have skipped.I dont want this scrren to be dispalyed.When i press back it should directly take me to the report output from where i have come to this transaction.
    Hope i m clear now?
    Any suggestions.
    Regards,
    Sanghamitra.

  • Call transaction & leave the current screen

    Hi
    I have created two Table maintanence Generator one for master table & second for transaction table. In my master table i have written code for calling the second TMG
    ie, call transaction 'zhdms'.
    but my problem is from my first TMG when im clicking on one button it calling the second TMG. & im making new entries over der & when i click on BACK button it will call the first TMG  & again if i am clicking on Next button it will move on to second screen. but it is showing one information like DEveloper is locked. we can only display it. how to avoid this.
    Can we avoid this using leave screen . How to write code for that.

    Hi ,
    Try this
    CALL TRANSACTION AND SKIP FIRST SCREEN.
    Effect
    Skips the first screen in the transaction (provided all the required fields have been assigned values by the SPA/GPA mechanism).
    or
    LEAVE TO { {TRANSACTION tcod} | {CURRENT TRANSACTION} } AND SKIP FIRST SCREEN.
    Effect
    Ends current processing and starts the (new) transaction tcod. All previous internal sessions are deleted from the stack and one new internal session is opened for the program of the transaction that was called. When this session has finished, the system returns to the next higher area menu.
    If you specify CURRENT TRANSACTION (as of Release 6.20), the current transaction is called with exactly the same transaction code it was called with using CALL TRANSACTION or LEAVE TO TRANSACTION. With the exception of parameter or variant transactions, this is the transaction code that is also in the system field sy-tcode.. In the case of parameter or variant transactions, it is their transaction code, while sy-tcode contains the name of the implicitly-called dialog transaction.
    Regards,
    Chitra.

  • Call tranasaction with skip first screen in ecc6

    Hi,
    We are doing upgrade from 4.7 to ecc 6. We are getting an error while running a report( The addition "AND SKIP FIRST SCREEN" can't be used with "CALL TRANSACTION .. USING".  ) in ecc6. This is not showing error in 4.7. Call transaction with skip first screen is fine in 4.7. But it is throwing an error in ecc6.
    Could anybody provide me the pointers to rectify this error.
    Regards,
    Ramesh

    Hi
    Did you pass all the mandatory field values to the calling transaction , Because when you use this addition you need to pass all the mandatory field values then only it works fine. Check out whether you are passing all the mandatory field values.
    Regards
    Pavan

  • How to skip first screen that is not selection screen.

    Hi Experts
    I am working on a module pool program where in I am required to call a transaction with skip first screen. the first screen of this transaction is self made screen with screen painter with input boxes and a submit button with an OK_CODE. now I am able to get all the input boxes filled during the call, however as the ok_code is missing it is not skipping first screen, neither does the PAI of first screen of called transaction is getting fired, is there any way to fire it?

    I discovered that once I set the parameter of sy-ucomm and then called the transaction it worked. check the code if you need the help on same
    ACTION = 'VW'.
      value = 'V01'.
      SET PARAMETER ID 'SPM' FIELD SPMON.
      SET PARAMETER ID 'VRS' FIELD VRSIO.
      SET PARAMETER ID 'VKB' FIELD WA_INDEX-L_VKBUR.
      SET PARAMETER ID 'DFM' FIELD ZSDTPLANVRSIO-DAT_FRM.
      SET PARAMETER ID 'DFT' FIELD ZSDTPLANVRSIO-DAT_TO.
      set PARAMETER ID 'ACT' field action.
      set PARAMETER ID 'OKC' field value.
    call TRANSACTION 'ZPLAN_INT' AND SKIP FIRST SCREEN.{/code}
    this OKC parameter id holds the value for sy-ucomm and the screen 100 of the called transaction has been skiped and ALV was displayed direct away.
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS 'ZAO_MAIN'.
      SET TITLEBAR 'ZAO'.
      if pass <> 1.
      get PARAMETER ID 'ACT' FIELD action.
      get PARAMETER ID 'SPM' FIELD SPMON.
      get PARAMETER ID 'VRS' FIELD VRSIO.
      get PARAMETER ID 'VKB' FIELD knvv-VKBUR.
      get PARAMETER ID 'DFM' FIELD ZSDTPLANVRSIO-DAT_FRM.
      get PARAMETER ID 'DFT' FIELD ZSDTPLANVRSIO-DAT_TO.
      get PARAMETER ID 'OKC' field sy-ucomm.
    set PARAMETER ID 'ACT' field action.
      endif. {/code}

  • Can't pass parameter's to a transaction in a new win and skip first screen.

    Dear experts,
    I'm trying to open a  transaction('CV04N') in a new window from a screen that has input box and a pushbutton. I'm trying to pass parameter(DOKNR/'CV1') into the new transaction and skip the first selection-screen. I tried to use Get/Set parameter and that didn't work.
    Also i tried to passing values with batch input and that did pass my values but without skipping the first screen and also it froze the transaction.
    Is there anything I can do to fix this problem?

    Hi Gershon Osmolovski,
    Alvaro is right, CV04N needs to press Execute button. So you need to use Batch Input. If it doesn't work, there must be an error in your code, what messages are returned by SAP? I have tested right now, SAP leaves immediately after the selection screen because there is a code that stops the program if it detects it runs using batch input (SY-BINPT system field). So, you should run CALL TRANSACTION with OPTIONS FROM structured data object (data type CTU_PARAMS, see ABAP documentation for more information), with component NOBINPT='X'. Be careful as an ALV grid is then displayed, you can only simulate the buttons so I advise you to indicate the exaction selection in the selection screen, then press "select all", and execute the function you want.
    If you need more help, paste your code, only useful part.
    BR
    Sandra

Maybe you are looking for