RFC scenario for inserting data in SAP, help me experts

hi...
i have to insert data in SAP database using BAPI_PR_CREATE.
which adapter i hv to use for RFC(sender/receiver)(syn/Asyn).
this sceanrio is File1-RFC-File2.
file1 sends the data to RFC to insert data and file2 should hv to send the autogeneration keyID for PR
Its very urgent...
please help me..
thx in advance
john

hi ...
i did that..
but..iam gting only 1 msg in monitering...
evrythn is fine,,,,my scenario shows in MONI black flag...but gting only one msg and the data which i sent to SAP is not storing in SAP..and when i search in SM58 in XI server...i cnt see any messages...
can u explain me Y..?
thx for response..
john

Similar Messages

  • How to create a RFC destination for extracting data to HANA

    Hello All,
    Could someone help me in providing a document or note on how to create a RFC destination for extracting data from SAP data source to HANA using SAP LT replication server ?
    I am able to create a data base connection while transforming data from non SAP data source,but wasnt able to transform data which is from SAP abap tables .

    Hi Venkatesh,
    In SM59 t.code we create RFC destinations.
    Go thru the video link for creating RFC destinations step by step
    How to setup a trusted RFC connection between SAP systems: a step-by-step guide - YouTube

  • Want to create RFC FM for Getting data in CRM from R/3

    Hi,
    I have made the RFC connection in CRM system , now I want to make RFC FM for getting data from R/3 'MARD' table into CRM, If any one help me how to do this.
    From CRM system I will pass Plant & material no to FM and I need Storage location & Storage Bin from R/3 MARD table in CRM.
    Thanks
    Bobby

    Dear Bobby,
    You would create a FM in SE37 select 'Remote Enabled Module' radio-button in attributes tab of Function Builder.
    Select matnr werks LGORT LGPBE
               from MARD
               into ET_MARD
               where matnr = i_matnr
               and  werks = i_werks.
    Note:
    matnr is material number
    werks is plant
    LGORT is storage location
    LGPBE is storage bin
    Hope this will help.
    Regards,
    Naveen.

  • Inserting data into sap

    hi guys,
      i want to insert data into sap r/3 table....
       they have given some values related to import parameters,
       in that 2 tables are there modified_values,proposed_keys
       i want to insert the data into that tables...how?
      plz send me code....
    thanks

    Hi, Tony!
    Are you using NWDS and SAP Web AS or another IDE / Application Server. If you're working with NWDS, simply create a new Enterprise Connector Project, select the R/3-System you like to access, choose an appropriate bapi/function module (best via application hierarchy) and let the IDE generate appropriate Java classes. Next reference the EC project in your Java Project and use the proxy classes according to <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/79/c6213e225f9a0be10000000a114084/frameset.htm">help.sap.com</a>.
    If you' re using alternative IDEs, refer to their documentation.
    Regards,
    Thomas

  • Calling webservice in udf for inserting data into webservice

    Dear Experts,
          Please give me the drawbacks of using lookup function for inserting data. we are calling a webservice from the udf for inserting the data using a webservice.
    It is a file to jdbc usnig a soap lookup . we use this approach because we need to pass the response from webservice along with the error data to the jdbc.   is there any other way to do it without using bpm ?
        In the udf we are creating the xml structure for webservice and passing the parameters through arguments.
    is there a better approach for this ?
    Thanks,
    Aju

    Hi Aju,
    You can do it without BPM.
    Write UDF for Soap Lookup. Parse the response message from Webservice.  and map the required values to respective fields.
    See the weblog
    Webservice Calls From a User Defined Function.
    Negative point of this solution is that it will take some time to call Webservice and get response back from it.
    Kulwinder

  • Query for inserting data into table and incrementing the PK.. pls help

    I have one table dd_prohibited_country. prohibit_country_key is the primary key column.
    I have to insert data into dd_prohibited_country based on records already present.
    The scenario I should follow is:
    For Level_id 'EA' and prohibited_level_id 'EA' I should retreive the
    max(prohibit_country_key) and starting from the maximum number again I have to insert them
    into dd_prohibited_country. While inserting I have to increment the prohibit_country_key and
    shall replace the values of level_id and prohibited_level_id.
    (If 'EA' occurs, I have to replace with 'EUR')
    For Instance,
    If there are 15 records in dd_prohibited_country with Level_id 'EA' and prohibited_level_id 'EA', then
    I have to insert these 15 records starting with prohibit_country_key 16 (Afetr 15 I should start inserting with number 16)
    I have written the following query for this:
    insert into dd_prohibited_country
    select     
         a.pkey,
         b.levelid,
         b.ieflag,
         b.plevelid
    from
         (select
              max(prohibit_country_key) pkey
         from
              dd_prohibited_country) a,
         (select
    prohibit_country_key pkey,
              replace(level_id,'EA','EUR') levelid,
              level_id_flg as ieflag,
              replace(prohibited_level_id,'EA','EUR') plevelid
         from
              dd_prohibited_country
         where
              level_id = 'EA' or prohibited_level_id = 'EA') b
    My problem here is, I am always getting a.pkey as 15, because I am not incrementing it.
    I tried incrementing it also, but I am unable to acheive it.
    Can anyone please hepl me in writing this query.
    Thanks in advance
    Regards
    Raghu

    Because you are not incrementing your pkey. Try like this.
    insert
       into dd_prohibited_country
    select a.pkey+b.pkey,
         b.levelid,
         b.ieflag,
         b.plevelid
       from (select     max(prohibit_country_key) pkey
            from dd_prohibited_country) a,
         (select     row_number() over (order by prohibit_country_key)  pkey,
              replace(level_id,'EA','EUR') levelid,
              level_id_flg as ieflag,
              replace(prohibited_level_id,'EA','EUR') plevelid
            from     dd_prohibited_country
           where level_id = 'EA' or prohibited_level_id = 'EA') bNote: If you are in multiple user environment you can get into trouble for incrementing your PKey like this.

  • BW extraction settings for Billing  Data from SAP ISU SYSTEM

    Hi dudes,
    iam currently  extracting data from  sap isu  to  bw systesm,but even after  generation of many  billingmaster dats i  dnt  find nay record to  be extracted in bw system since some settings are missing in  isu suystem for extarction process of Biliiing  data,
    Kindy help me in this regarding the settings to  be made for succesful  extraction from isu  to  bw
    kr
    raj

    Dear Mr Memminger,
    unfortunatly I was not able to find any hint about the same issue. As we have closed the FI-key we are waiting for any entry in RSA7. With RSA3 we get results but there are no entries in Delta Queue.
    What I was surprised about is the fact that in SM58 there are some tRFC-entries for function module MEREP_DELTABO and target MAM_MI. That looks like error in delta handling. Although my colleague told me that is the integration to Mobile Asset Management and hence has nothing to do with the Delta handling problem.
    But could give me a hint where to find the configuration setting for Delta queueing ?
    Best regards,
    Peter von Schubert
    Edited by: Peter von Schubert on Jun 29, 2009 10:17 PM

  • Which trigger to use for insert data into db table in Forms

    Hi,
    My form is current having a database block with table reference. When enter data into form field and click on save button. Automatically the record is inserted into database table.
    I want to make this as manual insert. I changed the data block to a non-database. Where should i write the insert statement in order to insert data into table.
    Is it Key-commit trigger at form level?
    Please advise.
    Thanks,
    Yuvaraaj.

    Hi Yuvaraaj.
    Insert should happen when we click on the save which is inbuilt in the form. In this case where should i write the insert statement.Forms in built save commit's the form data where block is based on database not non database.
    @2nd reply
    Ypu are right. The reason i chnaged the database block to non-database is Currently i have a database block with form field canvas which insert only 1 record in to >table when we click on standard save button. The requirement was to add a field called CHANNEL which should have multiple values displayed. (i created this channel >field in a seperate datablock (non database) and used the same canvas.) When we insert data in all fields (single record) and channel we should be able to selected >multiple channel (say A,B and C) when we click on save then 3 records should be inserted in to the table which looping values for each channel. This was the actual >requirement and this is the reason why iam changing the block to non-database block.You are talking about two blocks.. 1. Master block and 2. Details block name channel
    You are inserting one record in master block then insert 3 record name A,B,C for that master record.
    Now you want master record should insert to each A,B,C record. Means
    'how are you' --master record
    and you want
    'A'- 'how are you'
    'B'- 'how are you'
    'C'- 'how are you'OR
    ?Ok. If you want master record save in database and then want to save non-database(channel) data into database USE Post-Insert trigger at block level and do the rest.
    Hope this helps...
    Hamid
    Mark correct/helpful to help others to get right answer(s).*
    Edited by: HamidHelal on Jan 26, 2013 1:20 AM

  • OWB 11gR2 extracting data from SAP - HELP

    Hi everyone,
    I have a question regarding the way OWB 11gR2 uses its SAP connector. I will present the scenario.
    OS on Server: Windows Server 2003 64bit
    DB: 11gR2 - 64bit
    SAP JCO 2.19 (64bit)
    OS on Client: Windows XP 32bit
    Oracle Client 11gR2 - 32bit
    SAP JCO 2.19 (32bit)
    We are trying to get the data from SAP and it is simply not working. The error that we receive is:
    20B40EC4][OWBWS.OWB] java.lang.Exception:
    Starting Execution of ABAP Report CSKS_CSKS_TBL on Thu Jul 01 18:48:42 CEST 2010
    JOBCOUNT = 17484201
    $JOB_NAME
    Completing Execution of ABAP Report CSKS_CSKS_TBL on Thu Jul 01 18:48:44 CEST 2010
    2010/07/02-10:20:23-CEST [18987A33][OWBWS.OWB] Foreground Execution
    2010/07/02-10:20:24-CEST [18987A33][OWBWS.OWB] Foreground Execution deployment failed
    2010/07/02-10:20:24-CEST [18987A33][OWBWS.OWB] java.lang.Exception:
    Starting Execution of ABAP Report ZOWB on Fri Jul 02 10:20:23 CEST 2010
    ERROR: The file C:Öxxxxx.dat is already open
    Exit on error: Execution of ABAP Report ZOWB on Fri Jul 02 10:20:24 CEST 2010
         at oracle.wh.runtime.platform.operator.sap.NativeSAPOperator.execute(NativeSAPOperator.java:224)
         at oracle.wh.runtime.platform.adapter.rtp.NativeExecutionAdapter.execute(NativeExecutionAdapter.java:43)
         at oracle.wh.runtime.platform.service.controller.ExecutionController.execute(ExecutionController.java:70)
         at oracle.wh.runtime.platform.service.controller.ExecutionController.execute(ExecutionController.java:23)
         at oracle.wh.runtime.platform.service.ExecutionManager.run(ExecutionManager.java:36)
         at java.lang.Thread.run(Thread.java:595)
    Thank you.
    Edited by: user8916416 on 02-Jul-2010 03:57

    Problem solved by recreating the mapping. Strange though.
    Edited by: user8916416 on 02-Jul-2010 03:56

  • Does Camileo X100 hold setttings for inserting date whilst recording

    Guys first of all keep up the good work on this forum.
    I would like to ask a simple but very important question for me. Does the camera hold setttings for inserting the date whilst filming.
    If not what do you suggets, are there any remedies or updating of firmware.
    Another point are the thm files what are these, ax said in previous post one presumed that they are only thumbnails, is this it.
    Thanks and good day

    Thanks mr X - there
    "Firstly its not a issue but this function is simply not supported" lol just hoping it would solve the issue since for me the date option was very important.... would probably say that I wouldn't buy it again if only I knew about it. thanks for your replies

  • Upload Image for Master Data Product - SAP CRM GUI

    Hi,
    I see in DEMOS image for master data product TX  COMMPR01, when you open transaction image is in top of the screen with the other data.
    I create a new product and add an image in Tab Document, however image only is load when I pushed botton preview.
    Some idea?
    Regards,

    Hi Wilbert,
    Well it should work if you have loaded the image at the right place in the Tab Document. Please verify the same.
    What I did to check this :-
    Go to Tab Document -> follow the tree structure Document -> Picture -> Full Size.
    The Right click on Full Size ->create -> Document -> Import. And I imported a picture form my desktop. I did the same for Thumbnail. I can see the image in the top right corner of the screen in TX COMMPR01.
    Also In order to view the complete picture I just Right click on the file name -> Document -> Display and I can see the full picture.
    <b>Reward points if it helps!!</b>
    Best regards,
    Vikash.

  • Help for "insert data to variable tables"

    hi, guys.
    I want to make a tool to upload mass-data then insert the data to tables of SAP for integrative test.
    for example, to input the object tablename "AAAA" from screen, the program willl find the information of this table then input the data to the "AAAA" tables.
    But i have no idea how to define the internal table to suit various tables ( by define dynamic table? or any other ways) ,could you kindly give me some advice?
    thanks a lot in advance.
    Message was edited by:
            huijuan zhao

    hi zhao,
    welcome to sdn,
    for your requirement u can use bdc to upload file to internal table then u can update these internal table fileds to sap tables.
    or
    use <b>gui_upload</b> function module to upload data to internal table then u can use just <b>insert</b> keyword to update sap tables.
    see this sample code to update the database table <b>edpar</b>,
    report  zsd_edpar_update no standard page heading.
    *&Purpose:
    *&        program will be used to update EDAPR table on a daily basis.
    *&        This update will be based on Customer Sold To / Ship To partner
    *&        functions assignment. Ship To customer(s) will be linked to
    *&        the appropriate Sold To customer using the ?Acct at Cust?
    *&        number as a reference.  Then, Ship To customer(s) will be
    *&        set up withthe appropriate partner function with the Sold
    *&        To customer.it updated the DB tabel and gives the information
    *&        of customer level visibility t account receivable.
    *define database tables...
    tables: edpar,
            knvv,
            knvp.
    *define types...
    types: begin of t_tab_edpar,
           mandt type mandt,
           kunnr type kunnr,
           parvw type parvw,
           expnr type edi_expnr,
           inpnr type edi_inpnr.
    types: end of t_tab_edpar.
    types: begin of t_tab_knvv,
           kunnr type kunnr,
           vkorg type vkorg,
           vtweg type vtweg,
           spart type spart,
           eikto type eikto.
    types: end of t_tab_knvv.
    types: begin of t_tab_knvp,
           kunnr type kunnr,
           vkorg type vkorg,
           vtweg type vtweg,
           spart type spart,
           parvw type parvw,
           kunn2 type kunn2.
    types: end of t_tab_knvp.
    type-pools: slis.
    *define data statments...
    data: g_tab_edpar type standard table of t_tab_edpar,
          g_wa_edpar  like line of g_tab_edpar.
    data: g_tab_edpar1 type standard table of t_tab_edpar,
          g_wa_edpar1  like line of g_tab_edpar1.
    data: g_tab_edpar2 type standard table of t_tab_edpar,
          g_wa_edpar2  like line of g_tab_edpar2.
    data: g_tab_knvv type standard table of t_tab_knvv,
          g_wa_knvv  like line of g_tab_knvv.
    data: g_tab_knvp type standard table of t_tab_knvp,
          g_wa_knvp  like line of g_tab_knvp.
    data: repid like sy-repid,
          l_tab_fieldcat  type slis_t_fieldcat_alv,
          l_tab_fieldcat1 type slis_t_fieldcat_alv,
          l_tab_fieldcat2 type slis_t_fieldcat_alv,
          layout type slis_layout_alv,
          events  type slis_t_event,
          events1 type slis_t_event,
          wa_events  like line of events,
          l_pos type i.
    *selection screen...
    selection-screen begin of block b1 with frame title text-001.
    select-options: s_cust for knvv-kunnr obligatory,
                    s_sorg for knvv-vkorg,
                    s_dcha for knvv-vtweg,
                    s_divi for knvv-spart,
                    s_parf for knvp-parvw.
    selection-screen end of block b1.
    *start-of-selection...
    perform get_data.
    *to update the db table edpar...
    perform update_edpar.
    *display alv block...
    perform alv_block.
    *&      Form  get_data
          text
    -->  p1        text
    <--  p2        text
    form get_data .
      select kunnr
             vkorg
             vtweg
             spart
             parvw
             kunn2
             from knvp
             into table g_tab_knvp
             where
             kunnr in s_cust
             and
             vkorg in s_sorg
             and
             vtweg in s_dcha
             and
             spart in s_divi
             and
             parvw in s_parf.
      loop at g_tab_knvp into g_wa_knvp.
        move: g_wa_knvp-kunnr to g_wa_edpar-kunnr,
              g_wa_knvp-kunn2 to g_wa_edpar-inpnr,
              g_wa_knvp-parvw to g_wa_edpar-parvw.
        append g_wa_edpar to g_tab_edpar.
      endloop.
      if not g_tab_knvp[] is initial.
        select kunnr
               vkorg
               vtweg
               spart
               eikto
               from knvv
               into table g_tab_knvv
               for all entries in g_tab_knvp
               where
               kunnr eq g_tab_knvp-kunnr
               and
               vkorg eq g_tab_knvp-vkorg
               and
               vtweg eq g_tab_knvp-vtweg
               and
               spart eq g_tab_knvp-spart.
        loop at g_tab_knvp into g_wa_knvp .
          sort g_tab_knvv by kunnr.
          clear g_wa_knvv-eikto.
          read table g_tab_knvv into g_wa_knvv with key kunnr = g_wa_knvp-kunnr.
          if sy-subrc eq 0.
            move: g_wa_knvv-eikto to g_wa_edpar-expnr.
            modify g_tab_edpar from g_wa_edpar transporting expnr where kunnr eq g_wa_knvp-kunnr.
          endif.
        endloop.
      endif.
      sort g_tab_edpar by kunnr.
      delete adjacent duplicates from g_tab_edpar comparing kunnr parvw.
    endform.                    " get_data
    *&      Form  update_edpar
          text
    -->  p1        text
    <--  p2        text
    form update_edpar .
      delete from edpar." FROM TABLE g_tab_delete.
      call function 'DB_COMMIT'.
      loop at g_tab_edpar into g_wa_edpar.
        insert into edpar values g_wa_edpar.
        if sy-subrc  eq 0.
          move-corresponding g_wa_edpar to g_wa_edpar1.
          append g_wa_edpar1 to g_tab_edpar1.
        else.
          move-corresponding g_wa_edpar to g_wa_edpar2.
          append g_wa_edpar2 to g_tab_edpar2.
        endif.
      endloop.
    reward points if helpful,
    regards,
    seshu.

  • QM Scenario for Automatic Data Transfer to Inspection Lot

    Hi Experts,
    I have explained one QM scenario below. And also mentioned queries that I have in this. Could you please help me out on the same?
    There are 2 SAP systems, A and B.
    Process works as follows:
    -Delivery is created at A with B as recipient.
    -Automatically an IDOC is being created and send out with the quality data of the batch/inspection lot (electronic COA)  
    -In the background a workflow is triggered which transfers the data to the goods receipt from production inspection lot.
    In the system B, a subcontracting plant (DE08) will be created. During the subcontracting the materials provided to the subcontractor in real-life, however in SAP it will be brought to the subcontracting plant on a storage location specific to the subcontractor.
    Now the subcontracting service itself will be simulated by a process order (own order type is ZSUB). During the creation of the process order, a service purchase requisition will be automatically created which is connected to the process order. This purchase order will be transferred to A.
    After processing the purchase order, A will send service to B. B will do the process order confirmation. After process order confirmation an Inspection lot of type 04 will get generated automatically.
    Once the service delivery from A to B is done, the IDoc incl. the QM-data will arrive. Workflow will be triggered by inspection lot status CNF (Confirmed) – I0009. Now the workflow needs to identify the 04-'Goods receipt from production' of the process order and transfer the data into this inspection lot. The connection for this would be the purchase requisition number which is included in the process order. So the connection would be from purchase order number- purchase requisition-process order-inspection lot.
    Workflow template: WS03100078
    Business Object: BUS2045
    I have following queries. 
    1. Do I need to create Z-business object or the standard one will do the job?
    2. If I need to create Z-business object, then what changes will be required in coding?
    3. If I am using standard one, what all settings need to be done?
    4. What configuration needs to be done in the workflow template?
    Thanks & Regards,
    Mrunal

    Dear Swarup,
    The standard BAPI 's BAPI_INSPECTIONPLAN_CREATE Or ‘QAPP_CUST_IP_CREATE are not fulfilling my requirement .I need to create inspectiontion lot in R/3 system , which will invoke a process for creation of sample in another subsystem.But it is not very clear to me what a sample really means in QM, as i am an XI consultant .should a sample contain the recently generated Inspection lot number and its corresponding datas  ?

  • Function module for convert date as sap internal format ?

    Hi All,
    Is there any standard function module to convert the date filed as SAP internal date?
    My problem is while uploading data from excel sheet date filed can be any format
    for exp: dd/mm/yyyy or mm/dd/yyyy or yyyy/dd/mm or dd-mm-yyyy,mm-dd-yyyy
                 dd-mm-yyyy or dd.mm.yyyy or mm.dd.yyyy  etc...
    In our case there is no particular format in excel it can be differ for each user. I know we have few FM's in standard.
    But those are not working for my req. pls help me if you have any idea.
    Thanks in advance.
    Regards,
    Venkat Mote.

    Hi Venkatesh,
    Can you please check with the following function module. For my case, it is working fine.
    CALL FUNCTION 'CONVERT_DATE_TO_INTERN_FORMAT'
      EXPORTING
        datum = p_gs_date
        dtype = 'DATS'
      IMPORTING
        idate = p_gs_date
    Hope it helps to you.
    Regards
    Rajkumar Narasimman

  • File To RFC Scenario- simply insert records into ztab

    Hi
    i have a requirment, where XI gets a flatfile and needs to map to RFC function module and then inserts records into ztable in SAP system. it doesn't require any response back.
    proble here is:
    i don't want to get RFC 'Response mesage' when i import RFC into XI IR. i require only 'Request message'.
    please help me, how to create a RFC function module with out Response message, and it should contain only Request message.
    i have created RFC in this way:
    RFC doesn't vcontains neither import nor export parameters. and i have defined on table in TABLE tab which refers to a ztable created already.
    Thanks in advance..
    Regards,
    Rajesh

    Thankx Michal,
    I have written ZRFC this way:
    insert ZMM_AUTO_GR from INPUT_TABLE .
      if sy-subrc = 0.
        commit work.
      else.
       rollback work.
    im not using neither import nor export parameters..but using only tables parameters. but when imported in XI im getting same table  structure in both request an response.
    please suggest what changes required in above code to invoke my ZRFC in async way.
    you will not get any response in XI- what chages required in my code to dnt get .reponse in XI.
    appreciate your help.
    Regards,
    Rajesh.

Maybe you are looking for

  • Why can't I download the updates?

    When i try to update my Adobe Premiere Pro, the updater tells me to turn off the program; I do, then it starts to download and then tells me again to turn off the program. It is already turned off though. Then i get an error message: Adobe CSXS Infra

  • No sound in YouTube Vimeo etc after 10.8.5 update

    After upgrading to 10.8.5 I have no sound on my iMac i7 when playing YiouTube or Vimeo.  System sound works as does iTunes.  I've tried re-installing the combo update as suggested elsewhere but still no sound.  Any clues much appreciated.

  • CRM employee (business partner) & org unit extraction question

    Hi all, I have a question regarding extracting business partner and org unit in CRM. Basically user wants to report on employee level and org unit level. When I looked at the org unit hierarchy datasource (0BBP_ORGUNIT_HR01_HIER), it does not include

  • Product Hierarchy

    Hi All Everytime I add a value while creating the Product Hierarchy in V/76 - the Level field keeps defaulting to 1 I want to be able to set up tiers and hierarchial data for this field.. Is that possible? Thank you Rukshana

  • How to disable pop-ups

    I seem to have a bit of an issue on my MacBook Pro with pop-ups. I use Google Chrome and I thought this was a Chrome issue. I uninstalled the program and re-installed it, but when I used Safari to re-install, I had pop-ups come up on Safari, so it is