Ztable update in incoming IDOC

Hi,
I am looking for a user exit or BADI which can be used to update some Ztables once an IDOC is received.
That is, the SAP standard tables for IDOC's (eg. EDID4, EDIDS) together with the Ztables must be committed in one LUW.  We are in 4.6C version.
Please let me know.
Regards,
Vikram

Hi Claus
Thanks for the response but by the time this func. module is called (WE64), the system issues a commit for the IDOCS.  If I need to update Ztables then it will be in a different commit.  What I need is to commit the Z tables at the same time when the IDOC is committed.
As you know the function module which is triggered  in inbound from external system (for tRFC) is 'INBOUND_IDOC_ASYNCHRONOUS'.  Inside this func. module the IDOC's are committed.  I tried to find an exit in this and cannot find.
I am trying with others if they have come across this situation or know how to do this.
Once again, thank you for the response.
Regards,
Vikram

Similar Messages

  • Batches not getting updated by incoming idoc DELVRY03 (message type SHPCON)

    Hi
        I am using incoming idoc DELVRY03 (message type SHPCON) to update delivery document.I am using field E1EDL24-CHARG to pass batch data.
          However batch number is not getting updated in delivery document. I have verified aspects like batch number is valid etc.
         While updating batch number thru incoming idoc, do I need to supply some other data?
    Please help.
    TIA
    Koustav

    Hi Biswas,
    I think batches are determined automatically in the deliveries while creation and thats the reason it is not getting the batch number in the delivery, if there is no automatic batch dertermination then it will update the valid batch number
    also please check the batch determination procedure and the batch master in MSC2N and availability of materials for that particular batch
    regards,
    Santsoh

  • Terminated by user problem in  incomming  idoc while creating the sales ord

    This is a file to idoc issue.
    Idoc basic type: ORDERS03
    When an SO is created by an incoming idoc, problem comes with status u201Cterminated by useru201D with 51 status.
    When we tried to post this issue in BD87 t.code the document posts with out any issue.
    We are not able to create this issue in Quality box as well,
    Experts let us know if you have ever faced such problem in user system.

    "Terminated by user" means what it says. Someone has physically interrupted processing of the IDoc. That's all there is to it.

  • Get File name from incoming IDoc

    HI All,
    I am in an IDOC to File scenario using Fcc. (R/3 --> XI --> 3rd party)
    I need to use the  idoc-number(EDI_DC40-Docnum) as my output file name. I planned using variable substitution but there it expects me to get the idoc number from payload which I do not have it in. (refer c ode below)
    As I understand, variable substitution can be used only on payload(the FINAL data set that we will be writing to the file).
    Can we use the data which is part of incoming IDOC and not part of payload(final data what we are writing to file).??
    Other idea was to map this IDOC no to a field in final file, but this field should not be written in the output file, so am confused about how to achieve this.
    E.g
    *Incoming Data*
    IDOC
      |_EDI_DC40
        |_DOCNUM
    Final data (Payload)
    Header
    Data
    Trailer
    As seen in my example above I do not have the IDOC no in the final data so how do I use the Idoc no as my filename? Apprecaite your help on same.
    Regards
    Shirin

    Hi
    You can use dynamic configuration to get the file name .
    Use Adapter Specific Message Attributes for the target Comm Chanel check the indicator for filename in the advanced tab of CC
    create a UDF with i/p as file name  i.e the Idocnum field and
    paste this code
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    //conf.removeAll();
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    //String filename= conf.get(key);
    conf.put(key, fileName);
    key= null;
    return fileName;
    PS: use cache as value in UDF
    ands assign the o/p of this UDF to a root node

  • Problem in processing incoming IDOC

    Hi All,
    I have a problem while processing Incoming IDOC in the system.
    While I try to process and FI IDOC (without purchase order) in the system, by giving the appropriate GL account and cost centre where the document should get posted to (in transaction WE19), I find that the system creates the IDOC successfully with status 53. However, it creates a parked document in the system for the vendor.
    When I try to post the document through transaction FBV0, the system asks for a cost centre. Can you please clarify, why the system is asking for a cost object though it is given in WE19 transaction. Ideally while processing the IDOC the system should post the document directly as it has all the relevant details in the IDOC right?
    (Just for info, I have given the GL account details in segment E1EDP19 with qualifier 002 and the cost centre in segment E1EDP30 with qualifier 045)
    Expecting your help in this regard.
    Regards
    Nagarajan N

    Hi
    You can use WE19 to debug the Idoc FM.
    Check this link if it is helpful:
    Debugging Idocs
    Regards
    Neha

  • Incoming IDOC Error "No batch input data from the screen SAPMV45A 4001"

    Hello ,
    The Incoming IDOC with Message type 'ORDERS' is triggering the error message "No batch input data from the screen SAPMV45A 4001" with message no 00344 . There is an SAP note 785000 to handle this type of error message which has been already implemented. Still we are encountering few IDOC error's  at the time of sales order creation. The IDOC reaches status 51 throwing the error which is again reprocessed through BD87 .
    We are unable to replicate the similar scenerio in Development & Testing systems as it works fine.
    Can any one kindly advise how to eliminate the error "No batch input data from the screen SAPMV45A 4001" message at the time of Incoming IDOC processing.
    Thanks in advance.
    Best Regards
    Sateesh

    Dear Sateesh
    Check this link where the same topic was discussed
    [ VA01/VA02: batch-input error in IDoc processing|http://www.sapfans.com/forums/viewtopic.php?f=21&t=313032]
    thanks
    G. Lakshmipathi

  • How to park invoice ( Incoming Idoc )

    Hi,
    I have a requiremnt where i need to park the incoming idoc(INVOIC01).
    I am using the standard program
    "IDOC_INPUT_INVOIC_MRM".
    I made the copy of this FM into a Z Function Module and
    using "MRM_CREATE_INVOICE"
    passing RBSTAT_NEW = 'A'
    which is for parking and this is giving errors.
    Kindly give me the solution to this problem.
    Thanks & Regards
    Lakshmi

    would try with example from include LFMYC_CCLF16:
    **--Enable message handler
        CALL FUNCTION 'MESSAGES_INITIALIZE'.
        CALL FUNCTION 'MRM_INVOICE_PARK'
          EXPORTING
            i_rbkpv           = l_f_rbkpv
            i_xupda           = 'D'
            i_simulation      = l_simulation
            i_rbstat_new      = '2'
            ti_drseg          = l_t_drseg
         IMPORTING
           te_errprot        = l_t_mrm_errprot
          EXCEPTIONS
            invalid_status    = 1
            update_impossible = 2
            error_message     = 3
            OTHERS            = 4.
        IF sy-subrc <> 0.           "MM document parked?
          l_f_return-id         = sy-msgid.
          l_f_return-type       = sy-msgty.
          l_f_return-number     = sy-msgno.
          l_f_return-message_v1 = sy-msgv1.
          l_f_return-message_v2 = sy-msgv2.
          l_f_return-message_v3 = sy-msgv3.
          l_f_return-message_v4 = sy-msgv4.
    *----- write message into message text field
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
                INTO l_f_return-message.
          APPEND l_f_return TO c_t_returns.
        ENDIF.                   "MM document parked?
    Please let me know whether is worked for u not?a

  • Incoming IDOC error

    Hi All,
    When i tried to post a incoming IDOC which will result in a BDC session and we post the IDOC as a accounting document, iam getting a Error message of <b> Post document ( screen not found )</b> with a status 51, Can any of you let me know about this error, will reward with points for answers.

    Hi
    May be the BDC session is not recorded well, check the program again.
    May be the code added in the program is relating to the screen which is not available at the time of document posting ( these screen numbers will be diferent for each window/pop up window - like seperate screen number possible of additional information screen, profitability segment screen, other information screen, etc.) check the same with ABAPer
    VVR

  • ABAPer responsibility in Interface and Incoming Idocs

    Hello All,
    Could any body please explain me what is ABAPers responsibilitis in Interfaces and Incoming Idocs.
    Case: We are getting an idoc(inbound) in our system to create sales order so please let me know in this case what would be my roles and responsibilities as an abaper in detail..
    Thanks to reply at the earliest..
    If you would like to share some documents then here is my email id: [email protected]
    Thanks,
    Devasing.

    Hi,
    An ABAPers role in this case could be incase any enhancements are needed, this is if all the settings for the ALE are going to be handled by an ALE consultant.
    In this case if some consumization needs to be done like enhancing the existing IDOC for creating a sales order, then an ABAPer would come into picture.
    Thanks & Regards,
    Vanita M.

  • How to keep incoming IDoc-No.?!

    Hi, i am a freshman and i need some help!
    Because we send IDoc from R/3 to R/3 across XI we want to have the same IDoc-No. in receiver system like it was given in sender system.
    We already activated the checkbox "Apply control record values from payload" but when we check in IDX5 the inbound and outbound idoc-no. differs.
    I read that this should be possible to achieve that the inbound and outbound no are the same! How can i achieve this solution?!
    Can u help me!?
    br

    Ok, now i want to do a RFC-Lookup to the Table IDXRCVPOR for getting the original incoming IDoc-Number.
    I use this code in field-mapping:
    String DBTABLE = a[0];
    String lookUpField = d[0];
    String WHERE_CLAUSE = b[0]+" = "+"'"+c[0]+"'" ;
    String sapClient = "100";
    String hostName = "server";
    String systemNumber = "00";
    String userName = "USER";
    String password = "PW";
    String language = "EN";
    JCO.Repository mRepository;
    JCO.Client mConnection = JCO.createClient(
                   sapClient,
                   userName,
                   password,
                   language,
                   hostName,
                   systemNumber );
    // connect to SAP
    mConnection.connect();
    // create repository
    mRepository = new JCO.Repository( "GenericRFCMappingLookup", mConnection );
    // create function template to select data from any table
    JCO.Function function = null;
    IFunctionTemplate ft = mRepository.getFunctionTemplate("RFC_READ_TABLE");
    function = ft.getFunction();
    // Obtain parameter list for function
    JCO.ParameterList input = function.getImportParameterList();
    // Pass function parameters
    // set import parameters table name and RFC
    input.setValue( DBTABLE, "QUERY_TABLE");
    input.setValue( "," , "DELIMITER");
    //Fill the where clause of the table
    JCO.ParameterList tabInput = function.getTableParameterList();
    JCO.Table inputTable = tabInput.getTable("OPTIONS");
    inputTable.appendRow();
    inputTable.setValue(WHERE_CLAUSE,"TEXT");
    mConnection.execute( function );
    //Find the position of the field that has to be lookedUp
    JCO.Table lookupFieldPos = function.getTableParameterList().getTable("FIELDS");
    int pos = -1;
    for (int i = 0; i < lookupFieldPos.getNumRows(); i++)
              lookupFieldPos.setRow(i);
              if (lookupFieldPos.getString("FIELDNAME").equals(lookUpField))
              pos = i;
    //Get the exact lookupvalue from the position obtained above
    JCO.Table valueSet = function.getTableParameterList().getTable("DATA");
    for (int i = 0; i < valueSet.getNumRows(); i++)
              valueSet.setRow(i);
              String resultSet [] = valueSet.getString("WA").split(",(?=(?:[^\"]*\"[^\"]*\")*(?![^\"]*\"))");
              result.addValue(resultSet[pos]);
    mConnection.disconnect();
    But when i try a test in mapping i am getting this error:
    Runtime exception during processing target field mapping /SYSTAT01/IDOC/E1STATS/DOCNUM. The message is: Exception:[com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: A dynamically specified column name is unknown.]
    Can somebody help me again?!

  • Incoming IDOC-Segment missing

    Hi, Friends,
    I have a strange problem.
    The incoming IDOC in idx5 list miss a segment although the meta data is renewed.
    Could sb. help?
    Thanks and Reguards
    Zhiping

    Hi Krishna, Hi Jakub,
    I tried both. But it remains.
    Still strange is, the ALEAUD idoc with Z-Segment containd in E1PRTOB-Segment produced by the sending system contains some E1STATE segments. But the number of ALEAUD idocs recieved in IDX5 list is the number of the E1STATE segments in sending system. And every recieved ALEAUD idoc contains only one E1STATE-Segment
    Why is it splitted? and where?
    Thanks
    Zhiping

  • Need steps to find out the particular ( specific ) incoming IDOC.

    Dear ALL Experts,
    In our scenario , our SAP XI system is directly connected to customer SAP XI system and we did not import IDOC from R/3 to SAP XI. Instead of doing this we got the .XSD file and imported to SAP XI.
    Now, I need to know the particular incoming IDOC through IDOC NO or some other way where, as of now I need to run the
    sxmb_moni and from that I need check every IDOC.
    Pls revert with the way where we can retrieve the specific IDOC.
    Thanks and Regards
    Machindra Patade

    > pls guide how to check whether TREX have installled or not in our system ?
    You can apply a simple trick here to make suer if TREX has been installed or not.
    Go to RWB--->Message Monitoring, press Display button. Now in next screen you can see a input box "Search Text". Enter some value in the search text box (which you know is present in the system) and now press Start button after fill other filter criteria. So if you get some result then it means TREX is present in the system else not.
    > Also suggest if there is any way out to know the specific IDOC/XML message.
    In XI use transaction code IDX5 to search IDOC.
    Regards,
    Sarvesh

  • Create outbound delivery / incoming IDOC

    Hi,
    I working on a interface. Whenever an IDOC come inside to SAP from a non sap system it has to create a outbound delivery for the existing sales order.
    The incoming IDOC will carry the sales order number,.
    Please let me know which Basic type I need to use. Currently I am trying with SHP_OBDLV_SAVE_REPLICA02. Please let me know I am right. Also, let me know what is the message type we need to use for this. What Function module should be attached in BD67 for this message type and what process code should be used.
    Thanks in advance for your help.
    Regards
    Spawntae

    Hi Gopal,
    I think you can use Inbound Process code    DELV , FM  IDOC_INPUT_DELVRY with msg type SHPCON and Idoc type Delvry03.
    Please check.
    Regards,
    Savitha

  • Sales order using incoming IDOC

    Hello Friends,
      We have a requirement to migrate the sales orders from legacy to sap system using incoming IDOC.  Could you please share any document/note specific to IDOC configuration steps on IDOC mapping with legacy application.
    Anticipating a positive reply
    Best Regards,
    Goutham

    Hi,
    I think that IDOC type ORDERS will help you. Check this [article|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/d03313c2-de93-2c10-0d8a-9ad1d40ed4eb] in this site
    Regards
    Eduardo

  • Enhancement for Incoming IDOCs

    Hi All,
    For the incoming Idoc the invoices are getting parked for the success status 53, after checking whether GR is done or not.
    My requirement is that the Invoice should be parked even if the IDOC status is Error ie 51.
    The Message type is - INVOIC
    IDOC type is - INVOIC01
    and the process code is INVL
    How to go about it ?

    Hi Reddy,
    Thanx, can u elaborate this..
    DP

Maybe you are looking for

  • Close one tab at a time with key commands

    Hi all, I'm a big key command guy. I think I've figured out most things so I rarely have to go for the trackball and leave the keyboard. But recently (I think since an upgrade to Safari, but I can't be 100% sure), my previous command-W that used to c

  • File download from client to server

    I am trying to set up a JSP/servlet to download a file from the client to the server in a webapp. The solution I thought about was to post a form using a <INPUT TYPE="file" > element But this does not work! In the form, I am setting the encoding to E

  • Range of Long type doesn�t fit

    Hi!!! I am trying to assign the following value to a variable of type long long A = -140737488355327; The compiler tells me that such integer number is too large. I can�t assign it to A. Sun�s tutorial tells that long variables can hold a minimum val

  • Which ATI GPU cards offer higher color Gamut?

    I have decided to put an DDR5 ATI card in my new Win7-64 build for editing photographs, compositing, etc. As I have used nVidia up to now I am unfamiliar with the ATI lines. I have looked at both discussions here and the ATI site, but it isn't clear

  • Batch management number ranges

    Hi guru's     My client is using internal number ranges for my raw material but now they want to enter external number at the time of Goods reciept and also I want to make it mandatory for external number ranges. that mean system is proposing me inte