BDC and Inbound IDoc

Hi
I need your help to guide me for inbound Idoc process,
in my porject client is sending data with standard idoc and PI is middleware converting into file and sending to us then am using BDC and uploading data,
but now client asking why i cant use Idoc only ( standard or custom )  to upload data   why BDC ?
here i need your help to understand how much extra  effort i need to put if i use  idoc and how to use inbound idoc process ? am new to this. 
points will be there for sure
Thanks
Palak

Hi ,
For the inbound IDOC , u refer this ..Every thing for the inbound will start with
IDOC_INPUT* .
search based one we have so many inbound idoc's in SAP...
For the programming we need to consider that these tables..
EDIDD, EDIDC .
loop at control table.
loop at edidd.
   write the logic here...(required logic)
  endloop.
endloop.
after that we need to send the IDOC status to the application layer.
Regards,
Bharani

Similar Messages

  • Receiving error msg in user's mailbox for both Outbound and Inbound IDocs

    Hi,
    Whenever specific IDoc (Inbound/Outbound) gets failed then the user/org unit assigned in its partner profile should get those error messages in their inbox.
    To achieve this for Inbound Idoc I have performed following set of steps:-
    1. Created an object and attached it under IDOCAPPL using 'SWO1' and I have set that object type as 'To imported'.
    2. I have assigned that object type to event 'ERRORINPUTOCCURRED' and standard tasks '00008068' (Inbound processing error), '00008074'
    (Inbound Syntax error), '20000051' (IDoc Application Inbound error), '300000207' (Error during Inbound processing of SYSTAT01) using transaction 'SWETYPV'.
    3. I have created an organisation unit with two positions and different jobs where each job has been assigned to specific tasks. User has also been assigned to specific jobs.
    4. At the end of this I have assigned this org. unit to IDoc's partner profile.
    But this process does not seem to be working we are not receiving any mail in agent's inbox. If someone has done similar kind of thing in past, please let me know the correct step for both Outbound and Inboud IDoc.
    Thanks in advance.
    Supriya

    Hi,
    Try this for inbound IDOC
    Go to transaction WE42
    Give the process code that you gave in the partner profile (WE20)
    Select that row and press the details button (F2).
    Next to the "Identification"  field there will be push button which has the tool tip "ALE table"
    Press that button
    In the resulting screen..
    In the IDOC section..
    Give the following..
    object type -  "new business object that you created"
    Start event - INPUTERROROCCURRED
    End event - INPUTFINISHED
    Hope this works..
    Thanks,
    Naren

  • Handling BDC with inbound IDOC processing

    Hi All,
    In the function module for inbound processing, I have a BDC to be executed.
    But when the IDOC is received from the WEBSPHERE(Middleware) the BDC fails. There is an exception, "CNTL_ERROR"  raised by the class "CL_GUI_CUSTOM_CONTAINER=======CP"  when in BDC for the required transaction.
    I have contacted the Basis team and they are of the view that this happens when there is a difference in screen elements of the BDC creator(me) and the executor(websphere in this case).
    Can anyone tell me how can I correct this?
    Anuj

    John,
    WEBSPHERE is a system ID so Basis team will not allow me to access it as a user ID.( I had already requested them for the same).
    But I also compared the user-id parameters with mine and there is no difference.
    Can you think of something related to BDC? or some precaution which needs to be taken to cater the requirement if the screen elements are differing?
    Thanks for your replies.
    Anuj

  • Scheduling inbound and outbound idoc  processing

    Hi everybody.
    I ´d ike to know which is the best way to schecule the outbound and inbound idoc process.
    Nowadays we are using this:
    INBOUND PROCESSING
    - In WE20 the idocs are checked with "Trigger with a background program".
    - The program RBDAPP01 is scheduled with a job to trigger the process of the inbound idocs.
    OUTBOUND PROCESSING
    - The program RBDMIDOC is scheduled to create the idocs than have been created with change pointers.
    - The program RSEOUT00 is scheduled with a job to trigger the process of the outbound idocs.
    Is there any better option to improve de perfomance????
    Edited by: Christian  Abad Chico on Nov 13, 2009 10:09 AM

    Any answer

  • B1358 error while posting inbound idoc with a FM

    Hi
    We are trying to post and inbound IDOC with the help of an rfc and eventually creating an invoice from a bdc wrapped in the RFC
    The idocs are successfully pushed to R/3 while they are not getting posted and the error code in we02 is as follows
    No status record was passed to ALE by the application
    Message no. B1358
    Diagnosis
    The application failed to return a status record to the ALE layer after the IDoc was processed.
    This is due to an error in the application function module which processed the inbound IDoc.
    Procedure
    If you wrote the application function module yourself, you need to change the program.
    If the function module in question is a standard application function module, you should consult SAP.
    Note: we are using a custom function module
    regards
    krishna

    Hi Krishna,
    I assume that your function module processing the IDOC does not follow the ALE/IDOC processing rules.
    Please check out the programming guidelines in the SAP Online Help under:
    <a href="http://help.sap.com/saphelp_nw70/helpdata/en/78/21758051ce11d189570000e829fbbd/frameset.htm">http://help.sap.com/saphelp_nw70/helpdata/en/78/21758051ce11d189570000e829fbbd/frameset.htm</a>
    Important are the parameters and tables that need to be returned, containing the correct IDOC processing status. Please take the IDOC processing quite serious in regards to complete Logical Unit of Works.
    Best regards,
    SIlvia

  • Creatin  and posting idocs in same client

    Hi ,
    This is laxman,
    My requirement is , when the customer create sales order i want create one more sales order with some changes in same client.
    i am using the inbound and outbound idoc with orders message type and process code sd10 for outbound idoc , and i have created new process code for inbound .
    and i have created logical sys for client 030 and one more dummy logical sys with ports .then generating the partner profile everything ok.
    i am trying to distribute model view while i got error ,model view has not been modified reason is distribution model currently being processed.
    Outbound IDoc was created and inbound IDoc was created with status 56(IDoc added with errors ).
    means my function module is not triggered.
    How can i solve this prob.
    have any alternative code for this object.
    please help me.
    Thanks & Regards
    laxman

    laxman,
    i would highly advise you to post this message over at the ABAP forums, located here:
    ABAP Development
    if, by chance, a moderator sees this, i guess they can do the necessary transfer too. =)
    ryan.

  • Inbound idoc to create outbound delivary with ref to sales order

    Hi,
           I am getting and inbound idoc from the external party to create Inbound delivary with reference to sales order.
           But my inbound process code FM(IDOC_INPUT_DESADV1) checking PO no. and item which is NON SAP PO no. and item in idoc.  So, it is giving error PO doesnot exist in the system .
           I want to create Inbound delivary with ref to SO not with reference to PO.
            Pls check techincal details which i am using for inbound process :
            Process code : DELS
            Inbound FM    : IDOC_INPUT_DESADV1
            Message type : DESADV
             Idoc : DELVRY05
            Kindly help me.
    Regards,
    Manoj

    Hi,
    For creating inbound Purchase Orders, you can use Idocs PORDCR1.PORDCR101 or PORDCR1.PORDCR102. I have used this and they are working perfectly for us.
    Reg,
    NJ

  • Running 3 BDC in an inbound idoc

    Data comes to inbound idoc and iam running 3 BDC's . but this is taking more time to execute. is i need to write something after each call transaction code.

    Check for performance improvement which can be done for selecting data for executing BDC.
    if there is any data selection..see if that execution time can be minimised.
    Thanks.

  • Help in inbound idoc posting using bdc

    Hi,
    We are facing a problem during integration testing to post inbound idocs.
    The scenario is :
    A custom FM is written to process the inbound idocs, which does the following processes in sequence.
    1. BAPI used to create Goods Receipt
    2. BDC used to create Delivery using VL01N
    3. BDC used to create Handling Unit using VL02N
    4. BDC used to create Post Goods Issue using VL02N
    The VL01N creates a deivery, and using that delivery BDC calls VL02N to create HU.
    In unit testing the idocs are success, but when multiple idocs are used in integration testing, all fails either during delivery creation or HU creation.
    The error message we often get when HU is failed is  : "Runtime error RAISE_EXCEPTION has occured ".
    We have also incorporated a commit work and wait of 5 seconds after each BDC to avoid locking problem if any.
    The partner profile is set to ' trigger by background program'.
    Standard program RBDAPP01 is scheduled to collect the IDocs in status 64 and then to be processed.
    The package size used is 1,  inorder to process idocs one by one to avoid locking.
    Should any object type be given in RBDAPP01 ?
    If so, is it required to maintain any record for that object type in table TBD55 to process idocs serially in RBDAPP01 ?
    Any help in this regard is appreciated.
    Thanks in advance
    Regards
    Meena George

    Refer these links and see if they are useful:
    http://help.sap.com/saphelp_nw04/helpdata/en/0b/2a66c9507d11d18ee90000e8366fc2/content.htm
    Regards,
    Ravi

  • Creation of Sales Order and Service Contract from Inbound IDOC

    Hi Experts,
    My requirement is to create a Sales Order as well as a Service Contract from one Inbound IDOC. I am getting the Inbound IDOC from a third Party. The message type is ORDERS and Basic Type is ORDERS02. How ever i am using an extension type IDOC which carries all the required data for Sales Order and Service Contract. My requirement is like, to create a Sales Order first.
    I have created a Z FM which is attached to the Process Code and subsequently to the message type. Inside the FM i an calling FM 'IDOC_INPUT_ORDERS' for creation of Sales Order. After that i am changing the IDOC data for the Document Type. I am changing the document type which is responsible for Contract Creation.
    Then I am again calling the FM 'IDOC_INPUT_ORDERS' for creation of Contract with the help of IDOC data. But here the Contract is not getting created. It's getting failed during the Batch input session.
    I need to solve this problem as soon as possible. Please help me. If there are any other options also please share.
    Thanks in Advance.
    Regards,
    Priyabrata

    Actually there is problem with BDCDATA. Inside the FM it's calling transaction with help of BDCDATA. If i am creating a Sales order or contract alone its creating successfully. But when i am trying to create both, it's retuning sy-subrc '1001' after calling the transaction on the second attempt. Is there any problem with BDCDATA like we can't handle with less time gap? Please help and give your inputs.
    Regards,
    Priyabrata

  • Lock and Commit work in INBOUND IDOC

    Hi Experts,
    Problem is about lock and commit work
    i need to receive idoc for Good receipt for purchase order.
    For one Purchase Order i can receive many good receipt Idoc at the same time and when first came in Lock the Purchase Order and further idoc came after give Errors becouse purchase Order is lock.
    Problem is not the serialization (the sequence is correct), but is the lock.
    Any idea on how to fix this issue? (maybe there is some std settings??)
    Cheers
    Boris

    Hello Guys
    the packetsize is already set to 1 but the problem still again..... and where i can find this setting   "in Customizing choose Engineering Change Management ® Define statuses for master record". ?
    Any way i try in function module in inbound to check the lock object with this sample code:
          DO 30 TIMES.
            CALL FUNCTION 'ENQUEUE_EMEKKOS'
             EXPORTING
               mode_ekko            = 'S'
               mandt                = sy-mandt
               ebeln                = goodsmvt_item-po_number
               _scope               = '2'
             EXCEPTIONS
               foreign_lock         = 1
               system_failure       = 2
               OTHERS               = 3.
            IF sy-subrc <> 0.
              WAIT UP TO 1 SECONDS.
            ELSE.
              EXIT.
            ENDIF.
          ENDDO.
    but also with this....problem syill again...
    thanks
    Boris

  • Link between Inbound Idoc No and Shipment No

    Can anyone tell me in which transparent table the link between the Inbound Idoc number and Shipment number are stored ?
    or is any function module in which the Shipment number is imported and the Idoc number is exported ?
    Thanx in advance.
    Regards.

    Hi Deepa,
    Please reward and close your other related post. Now here is the answer for this.
    As I mentioned in response to your previous post, this is stored in the status records of the IDoc. So you need to go to table EDIDS with your IDoc number and STATUS = 53(Application Document Posted). Read teh value in the field 'STATXT'. If there are any & they should be replaced by 'STAPA1', 'STAPA2', 'STAPA3' and 'STAPA4' depending on how many '&' you have.
    One of these 4 parameters will be your shipment number, typically it will be STAPA1.
    Let me know how it goes.
    Regards,
    Srinivas

  • Puprose of inbound and outbound idocs

    plz help me
    what is inbound and outbound idoc ? its purpose
      inbound and outbound idoc steps
    thnaks

    Hi Mahesh,
    Please check this link
    what is the need of ALE/ IDOC
    what is idoc.
    IDOC creation
    inbound  idoc creation
    Best regards,
    raam

  • Degugging Inbound and Outbound idocs

    Hi friends,
    Can any one help me in debugging Inbound and outbound IDocs?
    1.I found the inbound FM using Tcode we19,clicked the inbound FM button and called it in the debugging mode.
      While debugging the Inbound FM iam nt able to figure out the actual problem.Is there any way to reach out the exact problem?
    2.How to find out the outbound Idoc FM and debug it?
    Your help is appreciated.
    Thanks in Advance.

    Hi,
    Inbound or Outbound IDoc processing FM can be found iin partner profiles(WE20).
    for Outbound: WE20 --> choose partner type --> Outbound parameters --> choose message type --> Message control Tab --> Double click on Process code to get the FM assigned.
    for inbound: WE20 --> choose partner type --> Inbound parameters --> choose message type --> inbound options --> Double click on Process code to get the FM assigned.
    For debugging, use Tcode WE15 for outbound, But before that u need to set the output type dispatch time as 1 (Send with periodically scheduled Job). Go to Output type assignment screen --> assign the output type --> choose further processing --> Set Dispatch time as 1 --> Save.
    Note: U need to keep the break point in the Outbound FM or exit if any before going to WE15 to debug from that point.
    Hope it helps,
    SG.

  • Regarding getting data from excel file and need to generate  inbound idoc

    Hi guys,
    Please can u give some example how to get excel file data and need to generate the inbound idoc my questation ? Is it possible to generate inbound idoc with the same logical system ( it seems to be not possible using same logic to generate idoc ) can u suggest me any posssibule way to generate idoc.) if possible give me some example.
    Regardng
    anil
    Edited by: anil kumar on Aug 8, 2008 1:35 PM

    If you want someone to do your work, please have the courtesy to provide payment.
    http://www.rentacoder.com

Maybe you are looking for

  • Mail going to junk folder is not marked as junk

    I have an automated email that I get occasionally. Without exception it ends up in the junk folder. However, even sitting in the junk folder, the message itself is not marked as junk. I've turned off all rules, and they still go to the junk folder. A

  • Charging Macbook Pro 15 Retina Display

    Good Afternoon As I put to charge the first time the computer. and if at any time I leave on all the time would drop the computer not the computer's lifespan Thanks

  • RE: Video Output to TV Monitor

    Hi people. Im using logic express 7, mostly for audio only but now I need to edit the audio of a short film. I have a canopus advc 100, but could not find where in song settings is the option to play the video to it. So I was wondering if logic expre

  • Retina Macbook Pro with Safari display issues

    Is anyone having crazy display issues with Safari on their rMBP? I'm noticing some wierd glitching going on. For instance, as I type this, it doesn't show the correct characters consistently. Sometimes when I'm in Gmail, entire portions of the interf

  • 10.5.5 Update destroys screen safer

    After the upgrade from 10.5.4 Client to 10.5.5, the screen safer is broken. When the OS tries to start the screensafer, the screen goes black and one second after, reappears again, then goes black again, reappears, ... and so on. The screen is consta