Adobe Form Data Integration into SAP using RFC

Hi All,
I have created a Adobe Form, there is a button Called Submit ,On clicking that button  the Adobe form must call a RFC function Module and pass the data from the form to Function Module.
I have written the below code for the submit button but it is not working.Please Lemme know if u have any solutions..
Below is my code
//Submit this form to SAP using web services
  var webService = xfa.resolveNode("xfa.record.WEBSERVICE");
  xfa.host.messageBox ("test 3");
  var response = Net.SOAP.request(
  cURL: webService.value,
  oRequest: {
  "urn:sap-com:document:sap:rfc:functions:ZUPDATETIMESHEET":{
  TIMESHEET: t_time_record,
  HEADTIME:  wa_head
  cContentType: "text/xml"
  xfa.host.messageBox ("test 4");
  var success = response["urn:sap-com:document:sap:rfc:functions:ZUPDATETIMESHEET.Response"]["SUCCESS"];
  var response = response["urn:sap-com:document:sap:rfc:functions:ZUPDATETIMESHEET.Response"]["RESPONSE"];
  if (success == "X") {
  xfa.host.messageBox(response, "Response from SAP", 3);
  CONFIRMED.rawValue = "Yes";
  ConfirmedLogo.presence = "visible";
  for (var nPageCount = 0; nPageCount < xfa.host.numPages; nPageCount++) {
  var oFields = xfa.layout.pageContent(nPageCount, "field");
  var nNodesLength = oFields.length;
  for (var nNodeCount = 0; nNodeCount < nNodesLength; nNodeCount++) {
  oFields.item(nNodeCount).access = "readOnly";
  if (oFields.item(nNodeCount).border.fill.color.value == "255,0,0")
  oFields.item(nNodeCount).border.fill.color.value = "255,255,255";
  if (oFields.item(nNodeCount).ui.oneOfChild.className == "button") //Hide all buttons
  oFields.item(nNodeCount).presence = "hidden";
ZUPDATETIMESHEET is my Function Module.
t_time_record  and wa_head are the parameters being passed to the function Module.
Please lemme know if i have to do any settings and configurations also...
I have attached the entire code in the below file...
Thanks in Advance 

Maruti,
1. Just use the RFC's that does the update.
2. There are update flags for each field that you would like to update. These flags should be marked be marked for update. They come along with the classes that are generated when you import the RFC's.
3 Call BAPI_TRANSACTION_COMMIT afterwards.
All the above steps have to be done in the program.
Sumit.

Similar Messages

  • How to insert Adobe Form Data in the SAP backend?

    Hi there,
    I am very new to Adobe Forms. I am supposed to come up with a working scenario of inserting few form fields into the SAP backend. Is this done through a BAPI call? Or is there any other way for this to achieve?
    I have downloaded trial version of Adobe LifeCycle Designer. But I don't know how to integrate this with the SAP system. Is there anything else that I need to install in my system?
    Is there a document on how to configure all the installations for both local machine and the server (if any)?
    Please help.....
    [I went through the forum for this, but I did not get anything]
    Warm regards,
    Deepak

    hi,
    in the livecycle designer under libary tab u have webdynpro tab--->choose submit to sap button and place it in the adobe form ur designing. u can use this button to trigger the code that u have written in webdynpro java.
    for eg if u have
    a value node details
    and under that two value attr fname,lname
    import the model (Insertdata---it has two import param fname and lname)u need for updating the data to r3 system.
    in the ctrller have a method submit.Here write the code to insert fname and lname into the db.
    IPrivateMyForm.IDetailsElement elem = wdContext.nodeDetails().currentDetailsElement();
    Insertdata_Input input = new Insertdata_Input();
    wdContext.nodeInsertdata_Input().bind(input);
    input.setFname(elem.getFname());
    input.setLname(elem.getLname());
    try
    wdContext.currentInsertdata_InputElement().modelObject().execute();
    wdContext.nodeOutput().invalidate();
    catch (Exception ex)
    { ex.printStackTrace();}
    ul bind details to the datasource.
    when u edit ur interactive ui element these attr(fname and lname) vl be visible under dataview tab u can drag and drop them to the form
    now add submit to sap button in ur form.
    this button correspond to the onactionSubmit dat u have written in the ctrller.
    so wen u click this the data vl be inserted
    Regards
    Jay

  • Access the adobe form data in the workflow container for further processin

    HI,
    I am using HCM processes and Forms. I need to access the form data in the workflow container once the workflow kicks off.
    I need to access these data as would need it for further processing in the workflow.
    I know that TS17900110 allows to import form conatiner to
    -> WF Container in the field name and value pair. But I need to access a lot more fields than what is in the task. Is there a standard task which allow to retrieve all the fields in the form in one task or do I need to develope a custom class to do that. If so could you please provide some clue as in how to code this specific requirement as i am somewhat new to OO ABAP.
    Thanks...

    hi,
    in the livecycle designer under libary tab u have webdynpro tab--->choose submit to sap button and place it in the adobe form ur designing. u can use this button to trigger the code that u have written in webdynpro java.
    for eg if u have
    a value node details
    and under that two value attr fname,lname
    import the model (Insertdata---it has two import param fname and lname)u need for updating the data to r3 system.
    in the ctrller have a method submit.Here write the code to insert fname and lname into the db.
    IPrivateMyForm.IDetailsElement elem = wdContext.nodeDetails().currentDetailsElement();
    Insertdata_Input input = new Insertdata_Input();
    wdContext.nodeInsertdata_Input().bind(input);
    input.setFname(elem.getFname());
    input.setLname(elem.getLname());
    try
    wdContext.currentInsertdata_InputElement().modelObject().execute();
    wdContext.nodeOutput().invalidate();
    catch (Exception ex)
    { ex.printStackTrace();}
    ul bind details to the datasource.
    when u edit ur interactive ui element these attr(fname and lname) vl be visible under dataview tab u can drag and drop them to the form
    now add submit to sap button in ur form.
    this button correspond to the onactionSubmit dat u have written in the ctrller.
    so wen u click this the data vl be inserted
    Regards
    Jay

  • How to upload offline adobe form(PDF) to the SAP?

    Hi,
    I am working on adobe forms for the first time.
    So I dont have much knowledge on it.
    I have created the layout for the SO form in transaction SFP.
    Kindly help me how to proceed further to upload the form data to the sap.
    Thanks in advance,
    Neha

    Hi Neha,
    The program will have the following steps:
    1.Data retrieval and processing : A select statement for the pre-populated information
    2.Obtain the name of the Generated Function Module of the form u2022 Start the form processing
    3.Call the Generated Function Module
    4.End form processing
    5. Send the form to the vendor using Business communication services (BCS)
    Follw this step
    select single field1 field2... from table into wa where field = P_field.
    call function 'FP_FUNCTION_MODULE_NAME'
    call function 'FP_JOB_OPEN'
    Then call the generated function module
    call function fm_name
    call function 'FP_JOB_CLOSE'
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
    Extract the Data:
    DATA: xml_data TYPE xstring,
          lt_xml_data TYPE STANDARD TABLE OF xstring.
          APPEND xml_data TO lt_xml_data.
    lo_pdfobj->get_data( IMPORTING formdata = xml_data ).
    Convert XML data from XSTRING format to STRING format DATA: lv_xml_data_string TYPE string.
    CALL FUNCTION 'ECATT_CONV_XSTRING_TO_STRING'
    EXPORTING im_xstring = xml_data
    IMPORTING ex_string = lv_xml_data_string.
    Thanks

  • Data load into SAP ECC from Non SAP system

    Hi Experts,
    I am very new to BODS and I have want to load historical data from non SAP source system  into SAP R/3 tables like VBAK,VBAP using BODS, Can you please provide steps/documents or guidelines on how to achieve this.
    Regards,
    Monil

    Hi
    In order to load into SAP you have the following options
    1. Use IDocs. There are several standard IDocs in ECC for specific objects (MATMAS for materials, DEBMAS for customers, etc., ) You can generate and send IDocs as messages to the SAP Target using BODS.
    2. Use LSMW programs to load into SAP Target. These programs will require input files generated in specific layouts generated using BODS.
    3. Direct Input - The direct input method is to write ABAP programs targetting on specific tables. This approach is very complex and hence a lot of thought process needs to be applied.
    The OSS Notes supplied in previous messages are all excellent guidance to steer you in the right direction on the choice of load, etc.,
    However, the data load into SAP needs to be object specific. So targetting merely the sales tables will not help as the sales document data held in VBAK and VBAP tables you mentioned are related to Articles. These tables will hold sales document data for already created articles. So if you want to specifically target these tables, then you may need to prepare an LSMW program for the purpose.
    To answer your question on whether it is possible to load objects like Materials, customers, vendors etc using BODS, it is yes you can.
    Below is a standard list of IDocs that you can use for this purpose to load into SAP ECC system from a non SAP system.
    Customer Master - DEBMAS
    Article Master - ARTMAS
    Material Master - MATMAS
    Vendor Master - CREMAS
    Purchase Info Records (PIR) - INFREC
    The list is endless.........
    In order to achieve this, you will need to get the functional design consultants to provide ETL mapping for the legacy data to IDoc target schema and fields (better to ahve sa tech table names and fields too). You should then prepare the data after putting it through the standard check table validations for each object along with any business specific conversion rules and validations applied. Having prepared this data, you can either generate flat file output for load into SAP using LSMW programs or generate IDoc messages to the target SAPsystem.
    If you are going to post IDocs directly into SAP target using BODS, you will need to create a partner profile for BODS to send IDocs and define the IDocs you need as inbound IDocs. There are few more setings like RFC connectivity, authorizations etc, in order for BODS to successfully send IDocs into the SAP Target.
    Do let me know if you need more info on any specific queries or issues you may encounter.
    kind regards
    Raghu

  • Error in importing image into SAP using SE78

    Hi to all,
    I was trying to upload a '.bmp" image into SAP using SE78 but I failed.
    Se78 -> BMAP Bitmap Image -> Graphic -> Import -> Specified the complete path ->given name desc and type .
    Ended up with the following message.
    Graphic TRF_LOGO_REV could not be saved
    (2TRF_LOGO_REV)
    Pls. help as I am not sure whether I missed any step.
    Thankx in advance.

    Hi,
    Go to SE78 Transaction ie Aministration of form graphics,
           there select GRAPHICS General Graphics,under this BMAP Bitmap Images will come.
           select that,then a sub window will appear.
    There give the name of your logo and select the import button which is at the extreme left.
           Then again a sub window appears,there give the path name and name of the logo,and some description then press enter.
    Now the logo is uploaded,for preview you can select last button which is print preview.
    Now goto the form,select the window where you want to print the logo.
           Then in that window place the cursor at tag coloumn and select command line.
           Now go to INSERT and select GRAPHICS.A subwindow appers click on 'stored on Document Server',
           give the name of the logo and press enter.
           Then the image information will be displayed on the form.Save the form and activate it.
    Go to se38 transaction write the print program and execute.
    Regards,
    jaya

  • Mass data load into SAP R/3 - with XI?

    Hi guys!
    I have an issue - mass data migration into SAP R/3. Is XI a good solution? It will be about 60GB of data. Or is there a better way of this data load?
    Thanx a lot!
    Olian

    hi,
    SAP doesn't recomment using XI for mass data migration
    and 60 Gb is certainly too much
    use LSMW for that purpose
    Regards,
    michal

  • Import data Automatically into SAP

    Hi all,
    Is is possible to import data Automatically in SAP?
    For Ex: if the client having online filling form (through website) is is possible to upload data directly into SAP?
    one getting the alert or approval they will add the document.
    Regards
    Anish

    Hi Anish,
    This can be done through scheduled DTW job.
    Thanks,
    Gordon

  • Adobe Form Data Storage

    When a user fills up a PCR Adobe Form from the portal where does the data or information is stored?
    There should be a fundamental way that SAP stores Adobe form data. I want to understand how and where this data is placed in SAP prior to it updating the employee’s infotypes so I can retrieve it and report on SAP and non-SAP fields.
    Same concept as in interface: data is sent from a file to SAP to update the back end. The file is stored separately from the back end up date data so it can be referenced later for support or other requirements. Same for the Adobe form data – it needs to be maintained the same way for future reference and current reporting.

    Well take the case of adobe forms based on web dynpro technology. Here the data is stored in context which are bean like structures and can store and transfer data to any system.
    Thanks,
    Harish

  • Convert xml into SAP using dataset

    Hi All,
    How to convert XML into itab using dataset, in this conversion have any function module available? please give me a sample program (having any). and material also.
    Thanks,
    Suresh maniarasu

    Hi,
    First you need to get the XML file Data into SAP using the  Function Module and can populate the data into an inernal table.
    TEXT_CONVERT_XML_TO_SAP
    DMC_CONVERT_XML_TO_TABLE
    or you can use the following classes
    CL_RSRD_CONVERTER_XML
    CL_WDR_XML_CONVERT_UTIL
    CL_EXM_IM_ISHCM_CONV_XML_SAP
    Thank U,
    Jay....

  • Oracle - XI - SAP ( Using RFC )

    Hi,
    My scenario is Oracle -> XI -> SAP ( Using RFC ), the message in SXMB_MONI is showing success. But iam getting an error on the RFC Side which is as follows.
    2006-04-19 00:21:39 Error Exception caught by adapter framework: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: functiontemplate from repository was <null>
    2006-04-19 00:21:39 Error Delivery of the message to the application using connection AFW failed, due to: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: functiontemplate from repository was <null>.
    If anybody has the right idea plz let me know.
    Thanks,
    Kittu.

    hi,
    My payload looks like this .Is that OK or do u find any thing missing in that?
    <?xml version="1.0" encoding="utf-8" ?>
    - <ns:MTI_BOM xmlns:ns="urn:cts:xi:manufacturing:lean:bom">
    - <row>
      <MATERIAL_NUM>100-02</MATERIAL_NUM>
      <BOM_COMPONENT>115100-01</BOM_COMPONENT>
      <CONFIGURED_BOM />
      <COMPONENT_QUANTITY>1</COMPONENT_QUANTITY>
      <CHANGE_NUMBER>500111</CHANGE_NUMBER>
      <VALID_FROM_DATE />
      <BOM_ITEM_NUMBER>10</BOM_ITEM_NUMBER>
      <COMPONET_UOM>EA</COMPONET_UOM>
      <IND_SUB_ITEM_EXIST />
      <IND_RELEVENCY_TO_COSTING />
      <INSTALATION_POINT_SUBITEM />
      <SUB_ITEM_QUANTITY />
      <STATUS>UPD</STATUS>
      </row>
    Regards,
    Kittu.

  • Importing pictures into SAP using DTW

    Hello all
    I am trying to import pictures of Items into SAP using DTW.
    I am using the Items template and putting the file path (e.g. C:\Projects\P29280\Admin\Item pics\Picture29.jpg) of the picture in the Picture field. At the moment the pictures are on the C drive of the server but even when I put them in the shared SAP folder they still dont import. The DTW import runs the import and there are no errors (i.e. it says that the update is successful) but when I go into SAP - the pics are not there....
    Hmmmn... one wonders...as one does.
    Can anyone who has done this before help me out?
    Thanks!
    Greeshma
    p.s.   I have also tried putting the file path in the ValidRemarks field but that doesnt work either .

    Hi Greeshma,
    the import of picture it self into the database is not possible. SAP only stores the path and the file name. You need to set up the standard path under general settings (Make sure it is not a local path!). Then you could import the pictures by using the file name (no path is needed) and afaik it is case sensitive. Put the pictures into the set path.
    Regards

  • Adobe form data --- Backend SAP table

    Am working in Webdynpro using Java. Once the user fills in the adobe form and clicks submit, I want to post/write that information to backend SAP table. Any inputs or leads?

    HI,
    Can you please check the following document?
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/how-to%20guides%20-%20rig%20official/nw2004/webas/how%20to%20create%20online%20and%20offline%20forms%20in%20web%20dynpro.pdf
    I couldn't find such example. But we need to create a RFC function module to update table. This function module we need to call it when click on SUBMIT  button on the INteractive Form.
    Hope this helps.
    Update: Please also check the below link.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/d1088b7e-0c01-0010-c78e-984c0537e3ec [original link is broken]
    Thanks
    Ramakrishna
    Message was edited by:
            Ramakrishna Prasad Ramisetti

  • Using Interactive Adobe Forms in LEAD processing(SAP CRM 7.0)

    Hi,
    I am new to Adobe forms. I want to create it for lead. After creation of lead adobe form should get mailed to required partner automaticaly. This partner will fill the data and send back to update the system.
    Please suugest me any documentation to achieve this.
    Regards,
    Nikhil

    Dear Nitin,
    The first I am not sure, so hopefully someone else can help you with that.
    For the second, If you want a Z-field to be used in the action conditions, you should add an attribute to your BOR-object in SWO1.
    How to do this can be found here.
    [http://sapcrmweblog.blogspot.com/2011/01/adding-attributes-to-bor-object.html|http://sapcrmweblog.blogspot.com/2011/01/adding-attributes-to-bor-object.html]
    Hope it helps...
    Regards,
    Pieter Rijlaarsdam

  • Conversion of data from legacy into SAP using LSMW(Direct input)

    Hi guys,
         I  need a help from u for the following scenario. The scenario is about  <b>FI & MM Vendor Master Conversion</b>.The brief description of this scenario is as follows:
         <i>Conversion of Accounts Payable Vendor Master Record from Legacy systems into SAP.  The purpose of this document is to define the master data fields that will need to be populated as well as the order in which the different parts of Vendor master should be loaded.</i>
    Transaction Code(s) to be used:     XK01 – Create Vendor Master Centrally   RFBIKR00                                                                                LSMW – Program <b>RFBIBL00</b>.
    Please help me to do this scenario.
    Regards
    Ram.V

    Hi Naveen,
                 Send me the suitable screen shot to my id. Also if u can, send me the same for batch input too.
                 My mail id is "[email protected]".

Maybe you are looking for

  • 4:3 ratio

    I was glad to find this forum because it's the only place you can get any good information on iphoto books...you certainly won't get it from Apple. My book has been cancelled 5 times. I have no yellow warning triangles. When I sent them an e mail ask

  • HT201269 I've just got a new phone and all my music from my old phone isn't working.

    The list of available music is shorter, for a start, so I don't know where it's all gone. But even the songs that are there won't play. When I push play, it just skips past as if there's no file to read. And then the same for the next song and the ne

  • Customisation to Account Maintenance transaction FP06

    Hi, I have a business requirement such that when I do a clearing through Account Maintenance(FP06), the tax items that are calculated on the items that are being cleared should not be wriiten to a specific tax G/L account. Normally clearing through a

  • Number Format Mask in Forms

    Hi All, If I enter 99999 in the form it has to display 99,999.00. What is the format Mask that I have to use to make it dispaly in this way. Actually I tried 999,999,999.99 but this is leaving empty spaces...and If the number is bigger then It wont d

  • Photoshop CS5 Palettes refusing to dock

    If I try and re-arrange my palettes in Photoshop, I cannot get any of them to redock. As soon as I start to drag a palette or palette group, it becomes a stand alone window (with a close icon), and refuses to redock into a new position. The only way