Calling Batch input from Web Dynpro - any alternatives for table updates?

Hi!
I am asked to create a screen in Web Dynpro for the GJ30 transaction (JV Cutback mapping of WBS' elements). I created a remote enabled function module which call batch input for GJ30 . Testing the Function modules direclty goes fine, but not calling the function module from WD. then I get the same error message as when I once tried to call SAP GUI from Web Dynpro ( Call transaction /submit program).
My next step is to try to create a batch input session (instead of call transaction) and run it using rsbdcsub, and then check the result of the run. But maybe this will fail of the same reason as well, and I suppose this will make the user waiting longer for the response .
I read somewhere that Web Dynpro does not support batch Input. But what can you do when there are no standard BAPI's for the update you want to do in SAP ?  We are not supposed to do direct table updates.  
Anyone who have struggled with the same issues and found a solution??
regards, Tine

Hi,
as BDC is calling screens and in Webdynpro ABAP you cannot use SAP GUI sceeen, you are getting short dump.
Refer CNTL_SYSTEM_ERROR in webservices from r/3 system
Thanks,
Chandra

Similar Messages

  • Calling adobe form from Web Dynpro ABAP

    Hi Friends,
                        This is the following error, which i got when i tested my application. Calling adobe form from Web Dynpro ABAP.
      WebDynpro Exception: ADS: Request start time: Tue Nov 16 14:00:22 YEKT
      2010(200,101).
                        Can some one tell me how to solve this....
    Regards
    Sankar

    Hi,
    Please refer to this same link in forum
    WebDynpro Exception: ADS: Request start time, start Interactive Form
    WebDynpro Exception: ADS: Request start time
    Thanks
    Pradeep

  • CE 7.1 - How to call CAF services from Web Dynpro

    Hi,
    whats the suggested way to call caf services from web dynpro?
    Of course I can use the Web Service model. But can I call caf directly?
    I read something about caf web dynpro model, but I cannot find it in nwds 7.1. On some older tutorial it was in context menu of caf project, but it seems to be removed.
    best regards
    tom

    Hi ,
    The standard way is to use the web service model.
    You have to expose the the services as web service and then you can use the wsdl url in the Adaptive web service model option.
    The above option will be available when you click the Model in the webdynpro application and the click create new model.
    Hope it helps you.
    Regards,
    Srinivasan Subbiah

  • How to call t-code from web dynpro ABAP application

    Dear Gurus,
    I am new to ABAP web dynpros. I have to add a button and have to call a SAP standard t-code if user clicks on this button? How to accomplish this task? Any help or example would be appreciated.
    Thanks,
    GSM

    Hi GSM,
    You have to create a SAP transaction iView in your Portal, then obtain its URL in your webdynpro and call WDPortalNavigation.absolute() method.
    Below are the same steps in more detail:
    1) Create a SAP Transaction iView or an Internet Application Component iView (whichever you find convenient). While creating you can select whether you want to use SAP GUI for windows or SAP GUI for HTML. For the latter(GUI for HTML) ensure that your ITS is working fine and configured while creating the system in EP.
    2) Open the properties of the SAP transaction iView created. In the OK code field you can give the ok code value just as you give in SAP R/3 in case you want to navigate to the second screen of SAP R/3 when you pass values from WebDynpro.
    Example for the above would be say Transaction "VA03" for displaying Sales order. Suppose from Webdynpro i want to pass a parameter called "Order number" and when i click a button it should pass the order number to R/3 and skip the first screen required for inputting the sales order numbe.
    It should directly go to the main display of sales order for that ordernumber.
    3) Create your WebDynpro component and deploy it on the server. In your WebDynpro use the WDPortalNavigation.absolute() method and give the url of the SAP Transaction iView created as a parameter and also the required parameters that you would like to pass from WebDynpro.
    4) Create a SAP WebDynpro iView in the Portal.
    5) Now run the Component. It should open up your SAP Transaction iview.
    Regards,
    Uday

  • Error on calling a BDC from web dynpro while it runs fine through FM.

    I have created a function module for calling transaction ima2n using a BDC. This function module runs as intended, if function module is executed using SE37. if I call the same function module from ABAP dynpro view, on some event. I get the below error. I have debugged the function module but it runs fine. If i debug function module and run the BDC in mode "A" then i can see that BDC is performing the intended actions. This is a strange behaviour.. Please help.
    ABAP Dynpro Error
    Error when processing your request
    What has happened?
    The URL http://dev.corp.bharatpetroleum.com:8000/sap/bc/webdynpro/sap/zcapex_appln/ was not called due to an error.
    Note
    The following error text was processed in the system D01 : Exception condition "CREATE_ERROR" raised.
    The error occurred on the application server dev_D01_00 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Function: TREEV_CREATE_COLUMN_TREE of program SAPLCNT4
    Form: TVAR_INIT of program SAPLAIA1
    Module: INIT_VARIANTEN_TREE of program SAPLAIA1
    What can I do?
    If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system D01 in transaction ST22.
    If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server dev_D01_00 in transaction SM21.
    If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 0 in transaction ST11 on the application server dev_D01_00 . In some situations, you may also need to analyze the trace files of other work processes.
    If you do not yet have a user ID, contact your system administrator.
    Error code: ICF-IE-http -c: 100 -u: TESTAUTH32 -l: E -s: D01 -i: dev_D01_00 -w: 0 -d: 20111109 -t: 123625 -v: RABAX_STATE -e: RAISE_EXCEPTION
    HTTP 500 - Internal Server Error
    Your SAP Internet Communication Framework Team
    ST22 Dump screen
    User and Transaction
        Client.............. 100
        User................ "TESTAUTH32"
        Language Key........ "E"
        Transaction......... "IMA2N "
        Transactions ID..... "4EB9F7AE3E2403D7E10000000A481584"
        Program............. "SAPLCNT4"
        Screen.............. "SAPLAIA1 0306"
        Screen Line......... 5
        Information on Caller ofr "HTTP" Connection:
        Plug-in Type.......... "HTTP"
        Caller IP............. "10.72.46.106"
        Caller Port........... 8000
        Universal Resource Id. "/sap/bc/webdynpro/sap/zcapex_appln/"
    Information on where terminated
        Termination occurred in the ABAP program "SAPLC
         "TREEV_CREATE_COLUMN_TREE".
        The main program was "SAPLAIA1 ".
        In the source code you have the termination poi
        of the (Include) program "LCNT4U74".
    Error occurred during batch input processing
    Source Code :
                    CONTAINER
                 CHANGING
                    HANDLE
                    TREE_CONTROL_NOT_EXISTING
                    FAILED
                    CREATE_ERROR
                    CNTL_SYSTEM_ERROR.
    IF NOT TREE_CONTROL_NOT_EXISTING IS INITIAL
       RAISE TREE_CONTROL_NOT_EXISTING.
    ELSEIF NOT FAILED IS INITIAL.
       RAISE FAILED.
    ELSEIF NOT CREATE_ERROR IS INITIAL.
       -->>>>>>>>>RAISE CREATE_ERROR. " failed on this line
    ELSEIF NOT CNTL_SYSTEM_ERROR IS INITIAL.
       RAISE CNTL_SYSTEM_ERROR.
    ENDIF.
    regards,
    Parag Agrawal

    Hi,
    as BDC is calling screens and in Webdynpro ABAP you cannot use SAP GUI sceeen, you are getting short dump.
    Refer CNTL_SYSTEM_ERROR in webservices from r/3 system
    Thanks,
    Chandra

  • Call same RFC from Web dynpro twice (table parameter passing)

    We have one table on our Iview bind to RFC A output table. We execute the RFC A with input parameters (p1=val1, p2=val2) and the data (task name and chkbox field) gets displayed on Iview table.
    The user will click a select deselect all checkbox to select all rows of the table.
    We want to execute SAME RFC A with input parameters (p1=val3, p2=val4) by passing the Iview table for processing. Please suggest the way to do this.

    Hi Sanjay,
    I am not sure about your requirement. I assume you need to call the same RFC twice, the first time with some simple parameters & the second time with a table parameter. Is this the case? If so:
    You needn't switch data between the contexts. You simply need to check if the RFC is being called when the WD table has some data. If so, add the table parameter to the RFC Input object. Let your WD table be bound to a node 'TableNode' having two attributes - 'task' and 'chk' (chk of type 'boolean'). I assume you need to add the row only if the checkbox has been selected.
    Assuming that your BAPI/RFC uses a table ‘MyTable’ of some type 'ZTAB' and that your RFC call is being done from your view:
    ZTAB table;
    IPrivate<your view>.ITableNodeElement elmt;
    <i>// create an instance of the Input class;</i>
    <BAPI_name>_Input input = new <BAPI_name>_Input ()
    <i>// Populating the RFC Object for the first time call
    i.e when the table node is empty</i>
    if(wdContext.nodeTableNode.size()==0)
    input.setParam1(<some default value>);
    input.setParamN(<some default value>);
    else
    for(int i=0;i<wdContext.nodeTableNode.size();i++)
    elmt = wdContext.nodeTableNode().getTableNodeElementAt(i);
    if(elmt.getChk())
    table = new ZTAB();
    <i>//if you do not know table type of 'MyTable’ , check the function input.add<MyTable> (<table type>)</i>
    table.set<property1>(elmt.getTask());
    <i>// If you need to add more parameters :</i>
    table.set<propertyN>(<your-value>);
    input.add<MyTable>(table);
    wdcontext.node<BAPI_name>_Input().bind(input);
    <i>Now execute the BAPI using the following line</i>
    wdContext.current<BAPI_Name>_InputElement().modelObject().execute();
    wdContext.nodeOutput.invalidate()
    <i>// Refreshes the value in the output node</i>
    Hope this helps,
    Best Regards,
    Nibu.

  • Call a report from web dynpro abap

    hi i need to call a abap program inside my webdynpro project anyone know how i can do it? i´m using the submit command to do it but a exception error is displayed

    Hi John
    you can't direct call report program from ABAP. Instead you can write the functionality in Function module and get the result in some internal table and  that table you can show in webdynpro for ABAP  using some UI element.
    Regards
    Naresh

  • How to call BI report  from web dynpro

    Hi ,
    How to call  BI report from webdynpro application  and what are the prerequisites for that .
    Please provide an example to work with BI application frame UI element
    Thanks

    Hi Rajpal,
    Please go through this..
    calling BI report
    Cheers,
    Kris.

  • Trigger File Generation to a Server from Web Dynpro Application

    Hi Everybody! Hope you had a good new years eve
    Is it possible to generate a File on a Server outgoing from Web Dynpro?
    I tried to use GUI_DOWNLOAD. But as I couldn't use the GUI_DOWNLOAD from the Web Dynpro, I wrote a Report "ZCMI_EXPORT_FILE" that generates a Text-File. When I start the Report by myself, the file gets generated. All fine.
    To be able to generate the File from Web Dynpro, I created a Batch Input Function Module, that I call in the Web Dynpro. The File is not created and it does not show any errors.
    Do you have any idea how i can get this working? I'd also be happy with a different approach.
    Best Regards and Thanks,
    Steffen
    REPORT that is called with Batch Input from Web Dynpro:
    call function 'ZFM_GENERATE_EXPORT'
      exporting
        it_detail_record     = lt_records
        is_export            = gs_export
      importing
        ev_string            = gs_export-document
        et_dataset           = data_tab
      exceptions
        parameter_is_initial = 1
        others               = 2.
    if sy-subrc <> 0.
    endif.
    concatenate '\\SERVER\EXPORT\' gs_export-filename into lv_filename.
    call function 'GUI_DOWNLOAD'
      exporting
        filename                = lv_filename
      tables
        data_tab                = data_tab
      exceptions
        file_write_error        = 1
        no_batch                = 2
        gui_refuse_filetransfer = 3
        invalid_type            = 4
        others                  = 5.
    if sy-subrc <> 0.
      exit.
    endif.

    HI,
    GUI_DOWNLOAD does not get's executed in the Backgroud.
    there is no way to do it as a background job.. create the folder.. transfer the file to the application server in the backgorund using OPEN DATASET... use the tcode CG3Y to download the file from the app server to your folder..

  • Calling transactional BAPI from Web Dyn Pro

    Hi,
    I am trying to call an RFC from web dynpro, unfortunately I'm a java person rather than ABAP so am struggling a little.  The Bapi is BAPI_BPCONTACT_CREATEFROMDATA, which a colleague has wrapped up so that it saves data from memory and then commits.  I can successfully create sales activities using this RFC from the GUI.  I have connected it to a web dynpro screen and am sending the same information I send from the GUI but get the following error message
    Msg Type I.  Start Processing of refernce object - Handle generated: $000000001 Message variable $000000001 Msg.no 000000 Msg.no 082 MessageID V3 Lines in parameter 0
    Msg Type I.  Integrity rule F0026 broken (field check) - Object $000000001! Msg Variable F0026 Msg Variable $000000001 Msg.no 000000 Msg.no 084 MessageID V3 Lines in Parameter 0
    Msg Type E.  Partner function CR is not defined from fiedl VBKAKOM-PARVW_BPARNR Msg Variable CR Msg Variable VBAKOM-PARVW_BPARNR Msg.no 000000 Msg.no 688 MessageID V1 Lines in Parameter 0
    Msg Type I.  Integrity Rule D0008 broken(dependency) - Object CR VBKAKOM-PARVW_BPARNR! Msg Variable D0008 Msg Variable VBAKOM-PARVW_BPARNR Msg Variable CR Msg.no 000000 Msg.no 085 MessageID V3 Lines in Parameter 0
    Msg Type I.  Business partner 100000000 with function CR from VBKAKOM not in VBPAKOM Msg Variable D0008 Msg Variable 100000000 Msg Variable CR Msg.no 000000 Msg.no 075 MessageID V3 Lines in Parameter 0
    The implementation within web dynpro is forcing to add a Bapi_Sender which I don't have to specify when using the GUI.  I am sending a bapi_sender object in the call with no information which is what I do when using the GUI.  As I mentioned before the parameters I am sending work perfectly when sent from the GUI.
    Any help would be greatly appreciated and I will award generous points. FYI I am also going to post this in the ABAP forum.
    Thanks in advance John Abbott

    Hello John,
    seems to be a customizing problem in SAP. Error says, that the Partner function CR is not properly configured in the tables VBKAKOM and VBPAKOM.
    Did you try to execute the bapi from se37 with function module -> test -> single test ? That is a comparable situation
    The sender has to be a logical system, that in this case, i suppose, has to be declared in SAP (and referenced in the Partner function) to create Data. It depends on the 'type' of function you are executing, reading or creating data in SAP.
    Regards Andreas
    Message was edited by: Andreas Milbredt

  • Passing parameters to Transactions from Web dynpro Application through ITS

    Hi,
    i need to call a transaction from Web dynpro through ITS. On action from web dynpro application, i am concatenating the respective parameters mentioned below along with URL. The problem is one parameter(VARIANT) is being passed to the t-code CAT3 correctly. The next mandatory parameter(PERNR) is not passed to the respective field.Here is the URL Code:
    CONCATENATE 'http'
    '://' host ':' port
    '/sap/bc/gui/sap/its/webgui/?sap-client=&~transaction=' 'CAT3'
    '%20TCATST-VARIANT=' lv_name2 '&CATSFIELDS-PERNR=' lv_name1 INTO url.
    Called T-Code CAT3
    Passing Parameters are:
    Data Profile TCATST-VARIANT
    Pernr: CATSFIELDS-PERNR

    Pradeep,
    iam trying to pass values from webdynpro application to SAP GUI Transaction
    here is the sample code which iam using
    CONCATENATE  'http://s0164dep01.adta.uae:50000/irj/portal/interop?NavigationTarget=pcd:portal_content/Testing/trn_iw33?'
    '%20CAUFVD-AUFNR='
                 'ApplicationParameter=CAUFVD-AUFNR='
                  lv_workorder';'
              'DYNP_OKCODE=SHOW'
             INTO lv_url.
    i could'nt able to succed as its displaying page not found exception.
    Help me on this to proceed further
    Regards
    Jaipal.E

  • Authorization error calling a XI web service from Web Dynpro

    Hi all,
    I'm trying to communicate to XI from a Web Dynpro application but I get an Unauthorization error (401).
    I've generated a WSDL in XI and import it to web dynpro as a new Model. But when a I call the web service, the exception "Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized." appears.
    I don't know how to pass the right user and password from Web Dynpro, I've tried the web service from SOAP client tools and it works fine.
    I'll apreciate any help.
    Regards,
    Diego.

    Hola mi  nombre es Luis,
    Creyendo que eres español te escribo en tal idioma.
    He visto que a ti también te devolvía un error de autentificación 401, y que lo subsanaste, pero a mi con la solución que te dieron no me vale, ya que implemento el código que te ofrecieron para arreglarlo y ahora me da un fallo de "Server Error" poniendo en usuario y password, los correspondientes a XI.
    +Request_MI_outTurnoverDetailsDisplay_MI_outTurnoverDetailsDisplay req=new Request_MI_outTurnoverDetailsDisplay_MI_outTurnoverDetailsDisplay();
    wdContext.nodeRequest_MI_outTurnoverDetailsDisplay_MI_outTurnoverDetailsDisplay().bind(req);
    req._setUser("username");
    req._setPassword("password");+
    No sé si es que ese usuario y contraseña son otros distintos.
    Si pudieras ayudarme, te lo agradecería.
    Un saludo, Luis

  • Calling a Report Program from Web Dynpro

    Hi all,
              I have a requirement, where i have to call a report program from web dynpro?. Wether its possible to call a report program in web dynpro?. Is we can call it, how this functionality has to be achived?

    Hello,
    Yes it is possible to call report using SUBMIT statement from one of the method defined in COMPONENTCONTROLLER's method tab.
    Once you define the method with SUBMIT statement then call that method with proper event.
    Rest configuration will remain same for ABAP webdynpro.
    Hope this helps.
    Thanks,
    Augustin.

  • Calling Remote-Enabled JAVA Module from Web Dynpro Java

    Anyone have a clue how I can call a Remote-Enabled JAVA Module in ECC from a Web Dynpro Java app?  I'm on Portal 7.0.  When I try and create an Adaptive RFC model in NWDS and put in the Function Module name (CFG_API_FIND_KNOWLEDGEBASES) or its Function group, that RFC is not returned for me to import.  Can I not use this method to get at this function?
    (I CAN call this function module and run it from the old SAP Business Connector software.  That, however, does not help me get it into my Web Dynpro app.)

    If anyone stumbles upon this thread, the long and short answer is you can't call a Remote-Enabled JAVA module in SAP from Web Dynpro Java.....using Adaptive RFC.
    You can, however, if you create your own session and function call directly in Java code and give up on being able to use Adaptive RFC.

  • RFC Indentification in R/3 from web dynpro

    hi experts,
    Could u tell me Wether there is any system variable SY-* or any function in sapr/3.so that we can easily know that which model from web dynpro means wether it is rfc or web service model?
    thanx in advance.
    regards,
    pp

    Hi,
        Since all the inbound calls are via RFC function modules ,I don't think any system variable will be able to differentiate the call.You can think of having a inport parameter to identify the call .

Maybe you are looking for

  • "2 routers, one subnet" or "how do I access LAN of Router#1 from R#2"

    Hi folks, First post is a question but I hope I can contribute in the future. I realize what i really want is a Wireless Access Point but I was in a rush and none are available locally.  My need is to  provide wireless internet on my upper floor wher

  • Issues with MacBook Pro and Asus VW266H

    I own a 2.4 GHz 15 inch MacBook Pro,and an Asus VW266H (external monitor) that I wanted to connect to my Mac via VGA,since the DVI is connected to my desktop computer.So I went ahead and purchased Apple's MiniDisplay Port to VGA adapter,and connected

  • SSAS project processing erors

    I get the following errors but no explanation, when I process this dimension by itself it is ok, but when I process the project it complains : Errors in the OLAP storage engine: An error occurred while the dimension, with the ID of 'Dim Enrolment Dat

  • Workflow Mailer setup

    Hi Guys, Im busy setting up a workflow mailer thru a metalink note guide but I'm a bit confused.. I've run the following scripts SQL> select target_node from fnd_concurrent_queues where concurrent_queue_name like 'WFMLRSVC%'; 2 TARGET_NODE CIBPRD01 S

  • Java Portlet (JSR 168) development with Portal

    Hello, We have been trying to dive back into Portal development lately. The release of 9.0.4 with support for standards-based portlets has convinced us to begin looking at 9iAS Portal as a practical portal product. We have a development environment s