Create interface or use idoc structure directly?

Dear all,
I am creating a scenario from a FILE (as IDOC structure) to RFC message.
If I create a Interface Mapping, do I use the IDOC structure and RFC message as source and target Interface or do I first create interface definitions based on these structures and then use these?
Regards.

> I am creating a scenario from a FILE (as IDOC
> structure) to RFC message.
>
> If I create a Interface Mapping, do I use the IDOC
> structure and RFC message as source and target
> Interface or do I first create interface definitions
> based on these structures and then use these?
You are talking about IDoc-XML? Then you should be able to use the IDoc Interfaces with your sender service directly.
CHRIS

Similar Messages

  • How can we create info record using IDOC INFREC?

    Hi Friends,
    Can we create info record using IDOC INFREC. If Yes. How?
    Regards,
    Narendra

    Using IDOC INFREC & FM IDOC_INBOUND_SINGLE

  • Use idoc structure as Data Type....

    Hi all,
    this is my SYNC scenario: SOAP -> PI -> PROXY and the response in the same way.
    in the proxy I want to use the same Structure of the ORDERS05 iDoc...
    so..
    1: I've Imported the iDoc
    2: Created the external definition
    and then...
    first, I tried to use the IDOC in the "Message Interface" but when activate it, a message appear saying " references an IDoc message and a non-IDoc message"...
    well as it doesn't works...
    I tried with the external definition in the Message Interface... I can Activate it, but when go to ECC and try to regenerate the Proxy this is the error message "
    Interface uses external and internal message definitions"...
    so... my last chance was create a data type with the same structure... for it, imported the XSD but errors and more errors appears... so I think than my best way is not a data type... but I can't find a solution.
    someone has any idea??
    Thanks.

    > this is my SYNC scenario: SOAP -> PI -> PROXY and the response in the same way.
    >
    > in the proxy I want to use the same Structure of the ORDERS05 iDoc...
    > so..
    > 1: I've Imported the iDoc
    > 2: Created the external definition
    I hope you are just only using the structure of IDOC and not the IDOC itself. Because IDOC doesn't support SYNC scenario.
    > first, I tried to use the IDOC in the "Message Interface" but when activate it, a message appear saying " references an IDoc message and a non-IDoc message"...
    As I said you cannot use IDOC in Sync scenario, So this was because of that as per my understanding.
    > well as it doesn't works...
    >
    > I tried with the external definition in the Message Interface... I can Activate it, but when go to ECC and try to regenerate the Proxy this is the error message "
    >  Interface uses external and internal message definitions"...
    As per my experience, You cannot create Proxy with External Definition. I guess in PI7.1 it is possible.
    > so... my last chance was create a data type with the same structure... for it, imported the XSD but errors and more errors appears... so I think than my best way is not a data type... but I can't find a solution.
    >
    Yes you don't have any other option except creating the Data Type. So check what's going wrong when you are creating the it.
    Regards,
    Sarvesh

  • Create new LSMW using Idoc for HR master Data

    Hi Guys,
    I was wondering id someone could help me. I have started developing an LSMW, of which I have already
    created the Object. I have also created the Maintain attributes and I have supplied the Message Type, Basic Type and activated the IDOC inbound processing after providing the appropriate information.
    The question I have is in the "Maintain source structure" do I need to create a structure for data records
    and a structure for header?
    Can I do a recording for transaction     -
    "PA30" --->  update infotype 6
                                                           |
    IDOC   -
    > infotype 0,1,2,6
    I have previously created HR LSMW using recording, but I have not used the IDOC facility and I'm not
    sure of the differences.
    Does anyone have any documentation.
    Regards,
    Frank

    Dear Frank,
    For Idoc method need to do setting first.
    Creating  pratner profile,.....................etc.
    then rest of the thing are same.
    Best Regards,
    Flavya

  • Problem creating sales order using IDoc ORDERS05 (Inbound)

    Hello Experts,
    We are trying to create a sales order using the IDoc ORDERS05 with process code ORDE for creating sales order. I am getting the following error "VKORG, VTWEG, SPART cannot be determined for customer 0000006000 , vendor
    Diagnosis
    No sales organization, distribution channel or division were sent to the IDOC. This data is necessary if a sales order is to be added automatically. If this data is unavailable, you cannot create a sales order document.
    I was not able to find the fields to fill the distribution channel and divison in the Idoc structure. I have filled in Sales organization in E1EDK14 segment as 3000.
    I am not able to figure out the cause for the error.
    Same data works fine from BAPI_SALESORDER_CREATEFROMDAT2.
    Please help.
    Thanks,
    Suma
    Edited by: Suma B on Jun 17, 2008 11:12 AM

    Hello Suma
    In this case I would recommend to debug the IDoc processing.
    Call transaction WE19 and start the inbound processing of your IDoc in debugging mode. The error message will most likely occur in function module IDOC_INPUT_ORDERS.
      LOOP AT idoc_contrl.
    * SET/GET Parameter und interne Tabellen neu initialisieren
    * initialize SET/GET Parameter and internal tables
        PERFORM initialize_organizational_data.
    * IDOC-Segmente in die entsprechenden Anwendungsdaten übernehmen
    * Move IDOC to internal tables
        PERFORM interpret_idoc_orders.                    "<= check here
    * Prüfen ob gewisse Segmente gefüllt sind
    * check IDOC-Segments
        PERFORM check_idoc_segments.                 "<= check here
    * Prüfen und Ermitteln von Organisationsdaten
    * check internal tables and determine organization data
    Regards
      Uwe

  • Create Sales Order using IDoc

    Hi All,
    Based upon customer's input file which contains header and line item details I have to create sales order in our system. We would like to use IDoc for this. Customer will send us file once a day by email or FTP.
    For this I have created a port and partner profile but I am not sure how the process will get initiated?
    Can someone please let me know how can I do this? There is now outbound process involved, I just need to create sales order based upon input file using IDoc.
    Regards,
    Sanjay

    HI,
    You cannot directly call the function modules that process the idoc, because these functions are called dynamically by the ALE layer and the function expects data in a certian format (IDoc format ).
    BAPI would be the best way to go for your scenario.
    However there is a workaround if you want to use IDoc only. You can follow this approach :
    1. Populate an outbound ORDERS05 IDoc from the file data.
    2. Distribute it to the same system, i.e sender system and receiver system is same.
    3. On the Inbound side the Idoc that you created on the outbound side will be received and processed.
    "R3  File----->Outound ORDRES05  -----
    ______________________________________|
    |
    '------> " Inbound ORDERS05 ( in the same R3 system)
    The tricky part is sending an Idoc and receiving in the same system, but you can find how to do this on the wiki pages.
    regards,
    Advait

  • Update STXH text while creating a PO using IDOC's  PORDCR103

    Hi,
    Can we upload the shipping instructions while creating a STO using Inbound IDOC -  PORDCR103
    Regards,
    Shariq.

    Hi,
    For uploading shipping text you need to call function module SAVE_TEXT.
    Thanks
    Ankit Attrish

  • Creating sales order using IDOC - Delivery hour

    Hi,
    i've a problem to solve. when creating a sales order i need that when the segment is E1EDK03 and the IDDAT is 002 i need to extract the delivery hour and insert it in the table vbak-vzeit, now what i'm doing in the exit EXIT_SAPLVEDA_001 is:
    DATA: hour LIKE vbak-vzeit.
    CHECK segment-segnam = 'E1EDK03'.
    IF segment-sdata(3) = '002'.
      hour = segment-sdata+11(6).
    ENDIF.
    and now i want to acess the value in hour in the exit EXIT_SAPLVEDA_002 to put it in the dxvbak struct tha i think that is the table correct to then internaly fill the vbak. the problem is that the variable hour is not available in the exit EXIT_SAPLVEDA_002. i do i do to pass the value that i want from the exit EXIT_SAPLVEDA_001  to be available in exit EXIT_SAPLVEDA_002  and then insert that value in the right place to fill vbak.

    Can u tell me the steps to create a sales order using idoc, i've created a bapi but thats a temprory use. I wanted to created a sales order automatically when a purchase order is saved.
    Please let me know if u can help me, i wanted to do it using idoc
    Regards
    Sanju

  • ERROR IN CREATING SALES ORDER,USING IDOC TYPE ORDERS05

    I am using exit to write my code for creating sales order of IDOC Type ORDERS05 and order type ZDRX.
    IF I proceess the Idoc in background each time error message comes
    FIELD kuwev-kunnr(ship to party)is not an input field.
    but if i run in foreground in debugging mode,sales order is getting created..
    please suggest something.

    If thats not working..
    try BAPI_SALESORDER_CREATEFROMDAT2
    If BAPI is not working. try creating a bdc for the same if there's not error on trying from VA01

  • Create Outbound Delivery Using IDOC

    Hi,
    Does anybody know of an IDOC that I can use to Create Outbound deliveries in SAP?
    I know that I can use BAPI_DELIVERYPROCESSING_EXEC to create the delivery, but I am hoping to do so directly using a standard (or slightly customized) IDOC.
    I will have multiple SAP Sales Order numbers to reference in creating the Delivery Note.  Note that I will not already have a delivery number as this is a create, so I can't use DELVRY*.
    Kind Regards,
    Robin

    Create your own and assign as processing the BAPI or a wrapper for it.
    Enjoy

  • F110 - Create Payment Proposal using Idoc Inbound

    Hello everyone,
    I have a requirement to create Payment Proposals (Transaction F110) using an inbound Idoc on my SAP ERP system.
    I have chosen Idoc PEXR2002 and made my definitions on SAP-PI, it's already sending the Idoc to my SAP system.
    Now I need to define a message type and a process code to create my Payment Proposals on arrival of this type of Idoc. Any ideas, on which should I use?
    By the way, if there is no standard messages I'll do my own message type and process code, but for this I'll need a BAPI or a function module that will create a Payment Proposal on F110. So if you know this as well it would be a good information.
    Thank you,
    Fábio Galvã

    Used a Batch Input to create the Payment Proposal.

  • Issue while creating a heirarchy using Hierarchy Structure Time dependent

    Hi every body
    I created an Info object(SREP) with Heirarchy Strututre Time Dependent property. When i am creating an Heirarchy for the info object(SREP) i am not able to see any text node by default, do we need to create it explicitly or system would propose one node by defalut..
    I created a text node manually then and tried to assign an another info object(SREG) as a child using an option of "Insert Characterstic", but i am getting a message as "InfoObject SREG is not entered for InfoObject SREP as a Foreign Heirarchy Characterstic", and system is again proposing to assign some info object as a child.
    Thanks in advance..
    sekhar

    ok

  • Creation of PO using IDOC's

    Hi,
    I am trying to create a PO, using IDocs, in the SAP system. The IDoc will come from a non-SAP system - hence, this is an inbound interface.
    Can someone please tell me which Message Type / IDoc Type I should use?
    As well, I need to create Characteristics for the Purchase Order. So, I need an IDoc that allows me to create these.
    Two options (using existing IDocs):
    1. ORDERS/ORDERS05
    I have read some of the help documentation and some of the messages posted on this forum and found that the ORDERS/ORDERS05 is used for outbound PO IDocs, and inbound SO IDocs.
    Can someone please confirm or correct me? So, this option is OUT.
    2. PORDCR/PORDCR05
    Apparently, PORDCR/PORDCR05 can be used for inbound PO. However, it does not contain segments for Characteristics. Hence, I will need to extend the IDoc. However, there aren't any useful user-exits to handle the creation of Characteristic values!
    Any ideas or suggestions will be greatly rewarded .
    Thanks
    Bobby

    on your points
    #1is correct.
    #2 yes, if you need any other functionality you need to extend the IDOC. alternately look at BAPI_PO_CREATE* BAPIs to see if they fulfil your requirements

  • Can I use Event structures in a subVI?

    Hi,
    I have a subVI (ProvaEv1.vi) that use an event structure inside. But when I use it in a VI (ProvaVI.vi) the event structure in the subVI doesn't catch the events.
    I tried to insert the event structure in a while loop but it doesn't work too.
    Could you help me?
    Thanks Ius
    Attachments:
    ProvaVI.vi ‏11 KB
    ProvaEv1.vi ‏15 KB

    "iusn" <[email protected]> wrote in message news:[email protected]...
    Thanks to all for your answers!
    Wiebe! I tried to do as you suggested but I am not able to link the Event Reference Number inside te SubVI with the Event Register Number of the Register for Event in Main VI. There is e class conflict. Another question: how the SubVI can know the structure of the Register event outside?My aim was to create a modular structure but it seems very difficult, wath do you think about these problems?
    The broken wire is related to your question. The event structure inside the sub vi knows about the events you register in the main, because the reference wire/control has a "strong" type. It contains information about the registered events. That is also why the wire is broken. You have to register all events, then create an indicator/control of the output. Use that control in the subvi. You have to do this every time the events change (you might use a type def if you use the control a lot).
    Usually, the events that you would want to put inside subvi's are those related to user interface objects. I've had this a lot. You make a nice interface, but it's not reuseable, because the events are mixed with all the other events. Only solotion is to manually add the needed event cases in your program, and copy the code.
    Even if you can put the events in a sub vi, I'd expect hanging vi's when more subvi's are registered for the same event. It's hard to tell without trying. So it's not a real solution either.
    Like Chrisger suggested, the event callback might help a little, but they are tricky, and actually ment for this (they are intended for activex callbacks).
    Perhaps you should look at XControls (if you use 8.2). It would be more work to replace your code to XControls, but once you're done, you have reusable code.. Haven't worked with them jet, but they are invented for this problem...
    Regards,
    Wiebe.
    I have already create my application using event structure just in Main VI but it seems very complicate to read and keep update, I would have wanted to give modularity to my application.
    Thanks Ius
    SubVIEventMain.vi:
    http://forums.ni.com/attachments/ni/170/203225/1/SubVIEventMain.vi
    SubVIEvent.vi:
    http://forums.ni.com/attachments/ni/170/203225/2/SubVIEvent.vi

  • PO Delivery date change using IDOC type "PORDCR101"

    Hi All,
    I am trying to create a PO using idoc type "PORDCR101". Everything is fine, PO is getting created. But the problem is that, even if I pass delivery date at item level system is automatically changing delivery date to future date (some of the PO's have delivery date in past and they need to be created as it is).
    I am populating all the required fields (PO_ITEM, SCHED_LINE, DEL_DATCAT_EXT, DELIVERY_DATE, QUANTITY, STAT_DATE) in both the segements "E1BPMEPOSCHEDULE" and "E1BPMEPOSCHEDULEX" (in this segement with X). It's updating the quantity exactly with what I am passing, but it's not considering delivery date. But when I am creating PO manually using ME21N I am able to set delivery date to past date.
    E1BPMEPOSCHEDULE
    PO_ITEM=20
    SCHED_LINE=0001
    DEL_DATCAT_EXT=1
    DELIVERY_DATE=20060509
    QUANTITY=101584
    STAT_DATE=20060509
    E1BPMEPOSCHEDULEX
    PO_ITEM=20
    SCHED_LINE=0001
    PO_ITEMX     =X
    SCHED_LINEX=X
    DEL_DATCAT_EXT=X
    DELIVERY_DATE=X
    QUANTITY=X
    The funny part is IDOC is not even thowing a warning message for this...
    Any idea what I am missing???
    Thanks for your time.
    Paul
    null

    Ok, I got the answer. For delivery date category (DEL_DATCAT_EXT) we should not be passing 1, but we have to convert it into 'D' (And relevant format for others).

Maybe you are looking for

  • Bcache setup advice wanted

    Hello World I have been tinkering with mine SDD-HDD setup with Bcache. And i was wondering if i did it right ??? Mine Idea was to have a 90GB SDD for quick root access. And use the rest of the SSD with Bcache to speedup files from the HDD. Any advice

  • Lost one of my Final Cut Pro Discs - Can support help me?

    Hi, Just got a new macbook pro and am installing a copy of Final Cut Studio 2 on it. (Previously had an old G5 where I installed studio) It's a registered, official copy of Final Cut Studio 2 (Academic) and I can't seem to find 2 of my discs. Is ther

  • SQL Server 2012 Migration

    We are planning to migrate our existing environment to SQL 2012. Existing Environment: SERVER1 OS: Windows Server 2003 Standard Edition SQL Server 2005 Standard Edition 2 Node Active/Passive Clustering With Transactional Replication Number of Databas

  • Preventing word wrapping in JTextpane

    I'm stumped about preventing word wrapping in a JTextpane. Any suggestions?

  • With BPM Problem

    Hi all, My scenario is File-->Bpm-->Rfc ..  From Bpm the response data is dumped in application server of SAP. For that File is maintained at application server of have data companyId. so i created IR and ID those includes Integration Process and Bus