URGENT ..userexit Idoc(inbound ) to mir4 tcode

Am coding in two userexits (ZXM08U25, ZXM08U26 ) of INBOUND Idoc which will update t-code of mir4, and I am testing this using we19.
some field ( field sgtxt of bseg table ) we forgot to send to( they did not give how to pass in functional specs  ) ….through IDoc .
Just want to know how the mir4 tcode gets updated by we19 tool..Is it BDC or some direct abap coding UPDATE/MODIFY ?
ERROR is 51 : Field Text is a required field for G/L account IP50 21300010.
Functional specs are not stating that this particular text field … how ever specs stated other texts to pass in  internaltable . How can I solve this problem please.

your transaction is posting accounting document and it looks like for the account you use a field-gorup is defined where text field is marked as mandatory.
So you have 2 options here
- either populate the text in your exit (it either can be passed in teh IDOC or you can populate it in your userexit based on your own logic - check with your functional analyst)
- or change field-gorup for your account to make text field non-mandatory -> this obviously requires verification with your accounting folks and your functional analyst.

Similar Messages

  • Urgent: Automate IDOC Inbound/ Outbound

    Hi all,
    I need to automate the whole IDOC process, inbound and outbound.
    For inbound, I need to run or schedule a program that will read all files in a given directory as separate idocs. Note that the filename is not constant, whatever file is in the given directory should be consumed. I don't know if I can use we16 for this still. If I could do this, I just need to schedule RWPOS_PARA_ENQUEUE and I' finished.
    For outbound, what do I do for the system to automatically generate IDOCs? I thought if I activate change pointers, IDOCs will automatically be generated if a change is detected. I am using SAP Retail, one of the idocs is similar to matmas but I cant use BD10 for this. The other two idocs are still problems for me.
    In short, what do I do to automate eveything?
    Thanks so much,
    Kenny

    Hi Kenny Martinez ,
    For Inbound Automation
    First attach your idoc to a process code.
    In the process code you can tell the system that the specified program should be triggered whenever an idoc of that type comes to the system.
    Then you want to have a Z-function module for your idoc processing, if I understand correctly.The steps should be:
    1. Create a z function module for idoc inbound posting (copy from a function module idoc_input_*).
    2. Set Function Modules as Inbound: - Transaction BD51
    3. Assign Function Modules to Logical Messages and Idoc types:- Transaction WE57
    4. Create process codes : Transaction WE42, and link the z-function module.
    5. Create partner profile: transaction WE20 and attach the message type and process code.
    6. In the Z- function module, extract data from the idoc segments, do whatever processing you want to do, and then call BAPI_CREATE_SALES_ORDER_FROMDAT2.
    Good Luck and Reward me for the same.
    Thanks
    Ashok.N

  • *IDOC INBOUND ( NON SAP system - SAP system )*

    I am transferring IDOC  INBOUND ( NON SAP system ->> SAP system ) by calling SAP standard funtc module IDOC_INBOUND_SINGLE using SAP JCo.
    In which I am passing all necessary information in Control Record regarding sender and receiver port/IDOC/segment etc.
    BUT help me to clarify my doubt that if i am calling a function and i am able to access SAP FM, then why i have to specify the SAP port/RFC connection at RECEIVER end in WE21.
    Whats the Significance if i am calling the FM from same SAP system and configuring the port explicitly in WE21.*
    If i don't Specify in we02 i am getting error as EDI : RECEIVER PORT in CONTROL RECORD is INVALID

    Dear Sree,
    For Basic understanding of IDOC read : saptechnical - Step-by Step ALE IDOC guide ( all necessary TCodes available here )
    Kindly let me know your data flow .
    In short :
    As per my scenario the data flow is from  non SAP to SAP  i,.e. Inbound processing.
    At my non SAP  i am calling SAP standard function IDOC_INBOUND_SINGLE using SAP Jco 2.1.
    You have to fill all Control Structure EDI_DC40 ( port etc. ) and Table parameter EDI_DD40 ( segment etc. )
    Read IDOC status and error in WE02.
    Goodluck.
    - Aakash

  • XML-IDOC inbound for ECC 6.0

    Hi,
    in a ECC 6.0 only landscape we would like to process XML-IDOC in inbound. For outbound we have already create a XML-IDOC port... but I don't be able to find it for inbound.
    How can I do it ?
    Regards.
    Ganimede Dignan.

    Hi,
    it's quite simple, if you have a system base on NW 2004s or newer you have all that you need but take in mind XML-IDOC it's not a Free XML .... it's an XML structure as an IDOC.
    In WE21 TCODE you can set-up and "XML File" port or and "XML Http" port.
    In anyway you can parser each XML by ABAP custom code.
    read olso some of my old notes....
    IDOC_INBOUND_FROM_FILE => called within report RSEINB00
    IDOC_XML_FROM_FILE         => not called by any report (on release 4.6c)
    I have used fm IDOC_XML_FROM_FILE already many times to manually transfer XML-IDocs from one SAP system to another.
    Given the fact that report RSEINB00 is quite simple (see below) you could create your ZRSEINB00 for processing XML IDocs.
    The reports can be scheduled in background to process the inbound IDocs continuously.
    REPORT RSEINB00 MESSAGE-ID E0.
    * EDI inbound processing (main program to be scheduled)
    * This program processes one file with one ore more intermediate
    * documents.  When an error occurs, a message will be send via workflow
    * processing.
    * The index of the last successfully processed record of the file is
    * always written to the table EDFI2.
    * If the program is startet again for this file, the table EDFI2 will
    * be interpreted and the processing will start at the next record.
    * PARAMETERS
    PARAMETERS:
    * directory + name of file that has to be processed
      P_FILE  LIKE  EDI_PATH-PTHNAM  DEFAULT '/usr/sap/.../SYS/global/...'.
    * DATA
    DATA:
      G_MESSAGE_FIELDS LIKE EDIMESSAGE.
    * MAIN PROGRAM
    START-OF-SELECTION.
    * do inbound processing from file
      CALL FUNCTION 'IDOC_INBOUND_FROM_FILE'
           EXPORTING
                FILE_NAME            = P_FILE
           EXCEPTIONS
                FILE_OPEN_FAILED     = 1
                MARKER_TO_BE_DELETED = 2
                READ_FILE_FAILED     = 3
                IDOC_NOT_STORED      = 4
                FILE_DELETE_FAILED   = 5
                MARKER_MODIFY_FAILED = 6
                EVENT_CREATE_FAILED  = 7
                FIRST_RECORD_INVALID = 8
                INVALID_RECORD       = 9
                OTHERS               = 10.
      IF SY-SUBRC  0.
    * fill message fields for exception handling from system fields
        MOVE-CORRESPONDING SY TO G_MESSAGE_FIELDS.
    * error handling using the 3.0 business workflow
        CALL FUNCTION 'IDOC_ERROR_WORKFLOW_START'
             EXPORTING
                  DOCNUM                  = 0
                  EVENTCODE               = 'EDIM'
                  MESS                    = G_MESSAGE_FIELDS
             EXCEPTIONS
                  NO_ENTRY_IN_TEDE5       = 0
                  ERROR_IN_START_WORKFLOW = 0
                  OTHERS                  = 0.
    * do not care for exceptions here
        COMMIT WORK.
    * abend message for RFC
        MESSAGE ID     G_MESSAGE_FIELDS-MSGID
                TYPE   'A'
                NUMBER G_MESSAGE_FIELDS-MSGNO
                WITH   G_MESSAGE_FIELDS-MSGV1 G_MESSAGE_FIELDS-MSGV2
                       G_MESSAGE_FIELDS-MSGV3 G_MESSAGE_FIELDS-MSGV4.
      ENDIF.
    * end of report
    there are some function modules to accomplish this.
    IDOCS_OUTPUT_IN_XML_FORMAT
    IDOCS_OUTPUT_VIA_XML_HTTP
    for inbound processing,
    IDOC_INBOUND_XML_SOAP_HTTP
    IDOC_INBOUND_XML_VIA_HTTP
    IDOC_XML_FROM_FILE
    IDOC Adaptor,
    IDX_IDOC_TO_XML
    Extended table maintenance, to display IDOC in XML format with XSL,
    IDOC_XML_DISPLAY
    IDOC_XML_TRANSFORM

  • EDI idoc inbound statuses

    We're running SAP in a different partition from EDI (TrustedLink) on an iSeries.  I'm getting inbound documents just fine, but no inbound statuses.  I see that the status documents make it over to the SAP partition but they're not visible in WE05 - so all of my successful outbound 850s are at at status of 18 & that's it.  I've looked at authorities etc but am still missing something.  Thanks in advance if anyone can point me in the right direction.  Susan

    try this
    enter tcode we21,
    Go to system , click on status
    Then you can see the programe name , Double click on programe name, you can see ABAP editior screen.
    Then you can see go to tan and click on object directry Tab.
    You can see package for which object is created.
    Now use tocde Smod, select F4 for enchancement , in package you can enter SED.
    You can get follwing user exit
    Exit name Short text
    SIDOC001 Customer function for module pool EDI1
    SIDOC002 CA-EDI: Exits in Function Group EDI6 (Partner Profile)
    Technically all EDI-IDOC inbound and outbound programs are wirtten as FUCNTION MODUELS.In the every fucntion moudle you can find large number of user-exits.For outbound idoc after filling every segment you have a user exit like CALL CUSTOMER FUNCITON '001'.You can find by using the keyword search CALL CUSTOMER FUNCITON in that funciton module.
    In inbound also you can find after every segment you can find user-exit.
    For funciton module search you can search in se37 by using idoc type,For example ORDERS01 search in se37 by using *ORDERS8.
    regards,
    sapsd

  • IDoc - Inbound delivery

    Hi Experts,
    Inbound EDI message order acknowledgments:
    When we cancel a purchase order item with IDoc message 'ORDRSP', this leads to an error message in the IDoc inbound processing.
    There is note 890812, but i guess it is till release 5.0
    Can anybody please guide me for the solution.
    Thanks,
    Sourabh Kothari

    Hi Experts,
    When we tested for the note, it is giving the status that this cannot be implemented.
    Could any one give me the alternate solution for the IDoc inbound processing.
    When the vendor sends the quantity 0 against any of the line items, the other line items are also not posted. There error message is ME794.
    As per the above note implementing the corrections & when the item is deleted in PO, again processing the idoc would be successful. But the note is not valid for ECC 6.0
    Please guide.
    Thanks,
    Sourabh Kothari

  • IDoc Inbound Business Connector

    Hello
    I am trying to send an inbound IDoc to SAP via Business Connector. This is shortly to be replaced by XI.
    The flow in Business Connector creates a routing rule which is blank because it is not finding the control information from the IDoc I believe.
    I think I am missing a step in my flow.
    Currently the flow is
    document to record
    Transform hierarchy to Flat.
    Map ( mapping the fields into the IDoc)
    Record to Idoc
    Inbound process
    The inbound process always fails because it doesnt recognise the message type, sender etc.
    This is all the idoc and in record to Idoc this is an input with an output of Idoc list which is passed to the inbound process.
    However Idoclist I believe doesn't seem to contain any data.
    I think a step is missing can anyone help??
    Thanks

    Hi,
    Please see this.
    Hi,
    BC adapter can be used when you want to communicate to a existing interface on Business Connector. If you are talking to SAP, you use RFC / IDOC adapters.
    The SAP Business Connector (BC) is used in a large number of SAP production environments. SAP Business Connector will probably be gradually phased out and replaced by SAP XI technology. For the short term SAP Business connector and SAP XI will inevitably continue to coexist in companies IT landscapes.
    See Below links
    Integrating your SAP Business Connector with SAP XI
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/96ed2129-0b01-0010-2e91-c45e1fad0d03
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4f27ad80-0c01-0010-f8b8-c5e153a16ca1
    Before XI
    Before XI
    webMethods Integration Server Vs.  SAP Business Connector 4.7 (BC)
    Choose the Right Adapter to integrate with SAP systems
    /people/ravikumar.allampallam/blog/2005/08/14/choose-the-right-adapter-to-integrate-with-sap-systems
    Thanks
    akshay

  • Need IDOC inbound and outbound programs

    hi,
    i am new to xi.
    i want IDOCs , inbound and outbound / function module  programs for    PURCHASE ORDER
    and GOODS RECEIPT.
    ex:  BD10 for material master (matmas01).
    thanks and regards
    v ijender

    for purchase order.
    ORDERS / ORDERS04
    ORDCHG / ORDERS04
    ORDRSP / ORDERS04
    Programs
    RBDMIDOC – Creating IDoc Type from Change Pointers
    RSEOUT00 – Process all selected IDocs (EDI)
    RBDAPP01 - Inbound Processing of IDocs Ready for Transfer
    RSARFCEX - Execute Calls Not Yet Executed
    RBDMOIND - Status Conversion with Successful tRFC Execution
    RBDMANIN - Start error handling for non-posted IDocs
    RBDSTATE - Send Audit Confirmations
    FOr testing you can use WE19.
    and also check the below link
    http://www.erpgenie.com/sapedi/message_types_masterdata.htm
    regards
    kummari

  • Error : Pre Settings for IDoc inbound processing are missing error

    Hi Experts,
    There is a CRM job which executes LSMW and I am facing a strange problem during the IDOC posting the error "Pre Settings for IDoc inbound processing are missing error". Can anyone please tell me how to correct this error?
    Thanks in advance.
    Madhurima.

    I'd start with the following document, with one modification. At step 12 after typing GEARAspiWDM press the Enter/Return key once prior to clicking OK. (Pressing Return adds a carriage return in the field and is important.)
    [iTunes for Windows: "Registry settings" warning when opening iTunes|http://support.apple.com/kb/TS3299]

  • Need help for IDOC inbound function module !

    Hi guys please help me to create a IDOC inbound function module.
    What are the parameters and tables.
    How to write the code.
    What it does.
    Please send me one inbound func module code if possuble
                                                                                  Thanks

    Hi,
    You need to create an inbound function module. Then define the process code in transaction we42 and attach the function module to this process code.
    In the function module you create you need to define tables of types EDIDC (Control record (IDoc)), EDIDD (Data record (IDoc)) and BDIDOCSTAT (ALE IDoc status (subset of all IDoc status fields)).
    Regards,
    Soumya.

  • IDOC Inbound and Outbound

    Please let me know How to handle IDOC inbound and Outbound preferably with example. I am new to it.

    hi,
    your question is very broad,
    start reading continue from there...
    <a href="http://help.sap.com/saphelp_46c/helpdata/en/19/3cf334c20ccc52e10000009b38f83b/frameset.htm">Doc Interface: EDI Application Scenarios (BC-SRV-EDI)</a>
    <a href="http://help.sap.com/saphelp_46c/helpdata/en/dc/6b8a4943d711d1893e0000e8323c4f/frameset.htm">IDoc Interface / Electronic Data Interchange (BC-SRV-EDI)</a>
    An example:
    inter company invoiceing:
    the SD invoice has an output type (INVOICE01) that sends an Idoc that creates the mm invoice (invoice verification)
    for more data see the links above
    good luck

  • LSMW idoc Inbound Processing settings

    Hi,
    We have done LSMW with BAPI method to create Bank master.
    In Idoc Inbound Processing settings -
    We created partner type as 'B' i.e, for BANK
    While creating Partner Number it is not allowing to create Partner Number. The error is  "Enter a permissible partner number"
    Please let me know what would be the problem.
    Regards,
    Hari
    Edited by: Bhatlapenumarthy Hari Krishna on Sep 12, 2008 9:31 AM

    Hi,
    Use patner type as US only and LSMW as Patner number.
    this will surely solve your problem .
    plz do this way :
    The first requirement is a file port for the file transfer. If required, create a port of the file type via Maintain ports. To do this, position the cursor on "File" and press Create. You should be in change mode. SAP recommends:
    Port: LSMW
    Name: Legacy System Migration Workbench
    Version: 3 (IDoc record types SAP Release 4.x)
    Outbound file Please enter a (dummy) physical directory and a file name, i.e. u2018filelsmwu2019 ·
    As an addition, you can specify a tRFC port. This port is required, if you do not want to create a file during data conversion but submit the data in packages directly to function module IDoc_Inbound_Asynchronous.
    SAP recommends:
    Port: assigned by the system
    Version: 3 (IDoc record types SAP Release 4.x)
    RFC destination: Name of R/3 System
    Name of port: Legacy System Migration Workbench.
    Then the partner type should be defined or selected. SAP recommends:
    Partner type: "US" (User)
    As of release 4.5A, this partner type is available in the standard system. Up to release 4.0B inclusive, this partner type is not available in the standard program and should be added. SAP recommends:
    Partner type: Create US
    Report name: /SAPDMC/SAP_LSMW_PARTNERTYPES
    Form routine: READ_USER
    Short description: any.
    Finally a partner number should be defined or selected. SAP recommends:
    Partner number: LSMW
    Partner type: US
    Partner status: A (active)
    Type: US
    Language: DE or EN
    Person in charge: Your user ID.
    Activate IDoc inbound processing
    reference : help.sap
    thanx.
    Edited by: Dhanashri Pawar on Sep 12, 2008 7:10 AM

  • IDoc Inbound Processing for CREMDM & DEBMDM

    Hi experts,
    I'd like to gather some feedback from you regarding the topic ERP IDoc Inbound Processing for CREMDM & DEBMDM. As you all know, there's currently no option to directly process CREMDM/DEBMDM IDocs in ERP. Currently you have to use PI for splitting the CREMDM/DEBMDM message into its related ADRMAS and CREMAS/DEBMAS IDocs.
    My areas of interest are:
    1) How satisfied are you with the current situation? Does the split work? Are there issues or problems in the current message handling? What are the Pro's and Con's from your point of view?
    2) What would be the requirements for a CREMDM/DEBMDM handler? What would you expect? Maybe you have implemented  something similar on project basis and could post some feedback?
    One painpoint I'd see with a CREMDM/DEBMDM inbound is that you'll lose the IDoc Monitoring capabilities. The message split allows a single record tracing in the IDoc Monitor (as there is a 1:1 relation between IDocs and records). This changes for the mass processing. The monitor would display only the status of the IDoc and you'd need some other monitoring capabilities to check the results on record level. What are your thoughts about that? Is the monitoring important? Would the application log be a feasible solution for that challenge?
    Additional comments are welcome, of course.
    Best regards
    Michael
    PS: @ Matt, please contact me by mail. thanks.

    Hello ,
    Here are some other pain areas regarding the message split :
    1. Complicated monitoring proess & reprocessing error idocs : We have to monitor ADRMAS & CREMAS or ADRMAS & DEBMAS during inbound processing. Also we could not find any best practices to reprocess error idocs. E.g. If ADRMAS fails & CREMAS succeeds what is the impact . Also the impact if it is reveresed. We know for sure that if CREMAS fails , vendor will not be created / updated. But we could not find specific pointers for ADRMAS failures.
    2. It is a tedious process to link CREMAS with corresponding ADRMAS idoc specially when SAP maintains internal number range for vendors.
    3 . The process is complicated if you are managing customer or vendor contact information with contact address . We could succesfully implement the integration but it took us a while to reach end-point.
    4. Splitting really does not seem to support if ERP maintains internal number range.
    5. Another major issue we observed is , if ADRMAS is under process & corresponding DEBMAS or CREMAS is posted , it fails raising the message that Account is locked. Default serialization does work in ERP system . But overlap of few microseconds also cause this error.
    Hope this helps !!
    Please let me know if you need any other specific details since we have used MDM - ECC integration using PI to its maximum extent .
    Regards
    Yogesh

  • Idoc inbound problem

    Hi Friends,
    I am facing a problem in IDOC inbound processing.
    My scenario in SALES PER RECEIPT - POS like this: I have to read XML (From PC) file and i have to post it.
    I am using Idoc - WPUBON01. After reading XML file i used Function module to distribute - MASTER_IDOC_DSTRIBUTE.
    In we02 i checked Idoc is generating but status showing 29.
    So run the report RSEOUT00. But i am getting message like 'No idoc is selected for processing'.
    Plz help me what i have to do. I created port also.
    Regards,
    P. Kumar.

    hi kumar,
               if u get status 29-error in ale service- check partner profile first.if it exists check ur logic where u modify control record,else create partner profile and restart again.
    Reward if usful.
    Thanks,
    Srikanth.A

  • IDOC inbound .

    Hi Gurus ,
    i am working on IDOC Inbound process , actually it has to update picking net weight and total weight , in am using stadard message type 'SHPCON' , internally this uses the function module 'WS_DELIVERY_UPDATE_2' , but after IDOC has been posted when i search in the delivery these changes are not found.
    PLease help me on this ASAP.
    Thanks ,
    Rajeshwar.

    Hi,
    Is the issue fixed ?
    Iam also facing the same problem
    if fixed , please inform
    Thanks in advance ,
    Sarath P

Maybe you are looking for

  • How do I set up a network between my Mac & PC's so they can share files

    I'm looking to have a home network.. not the internet kind of network, I think it's called intranet (still learning about it) where I can have a Z: drive with a shared documents folder all my machines are able to access. I would also like to be able

  • Clean installation of Win 7 using UEFI and RAID

    Hi, I am trying to perform a clean UEFI installation of Windows 7 with SATA mode switched to RAID. I have two identical HDDs for RAID and 80 GB Intel 310 to put the OS on. The BIOS/UEFI can see all 3 drives and the two HDDs are configured for RAID th

  • Touhou - poor performance

    $ wine --version wine-1.7.42 $ uname -roms Linux 4.0.1-1-ARCH x86_64 GNU/Linux I can cun config and the game itself fine, but the game runs awfully slowly. TH06 gets ~30fps in menu and ingame drops to ~2fps, TH08 is slightly better where menu gets fu

  • Using USB 2.0 devices

    Hi, I've got an eMac 1 GHz with Firewire but only USB 1.1. I would like to use a Miglia TV USB-key to watch numeric-TV but it doesn't want to work, because it needs USB 2.0. So one question : would it be possible to use the firewire port through an U

  • Steps to create a Repository

    hi there, Can you guide me the steps to create a repository? thanks