IDOC Query

Hi all,
Can anybody tell me how I can assign a z-function module to my own z-process code?
I created the process code via we41. But when i proceed further it only asks me to use anyone of the listed funtion modules in the next screen.
Where can I assign my own z-func.modole to a z-process code?
Thanks,
Faraz

Hi,
When you create a process code in WE42, there is option to select, Processing with ALE Service or Processing with FUNCTION MODULE
If you select the second option, it will ask for the function module in the next screen,which you enter and save.
Before that you ensure that in WE57 you have assigned the Fun module to TYPE F to IDoc type, Message Type and Object Type(business).
and in BD51 define the setting for the fun module. like Input = 0.
just check the other steps:
First Create Partner Profile(WE20 Tcode) and Port Definition in WE19 Tcodes.
take the Basis help to create them.
1.First create segments in WE31 Tcode with the required dataelements
2.Create the Basic Idoc Type in WE30
   release the Segments and IDOC type.
3.Create Message type in We81
4.Assign the message type to IDOC type in WE82 T code
5.Create the process code in We41 (for Outbound) WE42 (for Inbound)
6.Create A fun module in SE37 starting with ZIDOC_OUTPUT_.. by copying some Inbound (for    Inbound) Outbound Fun module
7.Create  Workflow setting if needed ..
8. Assign the fun module to Idoc Type, Message Type and WF object (if it is there0
9.Define setting for fun module in BD51
10.Assign the Processs Code to Fun module
reward if useful
regards,
Anji

Similar Messages

  • ALE/IDOCs query

    Hi friends,
    I have one more query on ALEs ...My scenario is like
    if we create a <b>PO</b> in one server it has to be convert as <b>SO</b> in another server.Now im getting the idoc status s <b>51</b> & the error message is <b>shipping condition 10 is not defined(inboundside).</b>
    shipping condition in <b>outboundsid</b>e is <b>10</b>.
    shipping condition in <b>inboundside</b> is <b>ZA</b>.
      how to convert this shipping conditions 4m 10 to ZA...
    If its not plz give me the inputs
    All inputs is highly appreciated and I promise to return and reward the answers which helps me indeed here
    Thanks in Advance,
    Ramu.

    Dear Johan,
          Thanks for useful input . please tell me the steps to do user exit on function module . Definetly u can solve my issue.
    Thanks in Advance.
    Ramu.
    You could use the user-exits in the function module creates the SO based on the IDOC. Overhere you could program the conversion rule, when all the segments get handled.
    - You could use as well : conversion rules:
    1. create the rule for the idoc segment (BD62)
    2. implement the rule for the field(s) in question (BD79)
    3. assign the rule to your IDOC message (BD55)

  • ALE/IDOCs query ( shiiping conditions

    Hi friends,
       I have one more query on ALEs ...My scenario is like
    if we create a <b>PO</b> in <b>one server</b> it has to be convert as <b>SO</b> in <b>another server</b>.Now im getting the idoc status s 51 & the error message is <b>shipping condition 10 is not defined</b>(<b>inboundside</b>).
        shipping condition in <b>outboundside</b> is <b>10</b>.
        shipping condition in <b>inboundsid</b>e is  <b>ZA</b>.
        All inputs is highly appreciated and I promise to return and reward the answers which helps me indeed here
    Thanks in Advance,
    Ramu.

    Hi Ramu,
    You need to convert the shipping conditions....
    You could do that by:
    - the user-exit in the function of SO IDOC creation
    - you create a conversion rule for the IDOC segment for that changes the value according your logic. Use transaction BD62 to create to rule. Use BD79 to implement the conversion.
    Hope it helps,
    JG

  • FILE TO MULTIPLE IDOC QUERY

    Hi,
    I have a file (PO details)from which i create multiple idoc. The structure of file and idoc is as follows
    --BATCH   
       ---HEADER
    ITEM
    --/BATCH
    IDOC IS
    --IDOC
         ---BATCH
    HEADER
    ITEM
    now in order to get multiple idoc from the file structure i changed the idoc segment cardanility to 0-unbounded and mapped
    HEADER of file to IDOC node of idoc so that idoc gets created for each header,
    my requirement is that for each idoc
    1) the batch segment should also get populated
    2) there is a feild batchid in the batch of file value of that feild should be populated in one of the header feilds
    Presently suppose the file has 10 POs, then it creates 10 IDOCS where in only the first idoc has the batch segment populated and the header of first idoc has batch id populated , rest 9 IDOCS the batch segment is blank and even i am not getting the batchid value in the header.
    Edited by: Sudhakar Gongloor on Jun 21, 2010 4:12 PM

    exactly.
    so in your case if source field A has 5 values and you need there values to go into 5 IDocs, you will use
    Source field A -> Split by value -> Idoc field
    Also note that you will have to similarly maintain a context mapping for the parent node of the target field.

  • ALE/IDOC Query

    Kind suggestion reqd. for
    How to see the material in the target system/client sent through ALE/ IDOC from 800 to 810.
    Done all the Configuration and sent a material  (MATMAS-msg Type) from 800 to 810,  1Master IDOC has been created and 1Communication IDOC has also been created through [BD10]
    And the status codes are
    03
    30
    01
    But how to see the material in the target system/client 810. Organisational Datas and Enterprise Structure are same in both system and exist in 800 & 810.
    Plz. throw some lights on this.
    Thanks

    I got in target system at  WE02
    Status code 56 : IDOC with errors added
    EDI: Partner profile inbound not available
    The Details----
    EDI: Partner profile inbound not available
    Message no. E0337
    Diagnosis
    An inbound partner profile could not be found with the following key:
    /AAAAAAAAAA/LS//MATMAS////
    This involves the key fields of table EDP21:
    -SNDPRN  partner number of sender
    -SNDPRT  partner type of sender
    -SNDPFC  partner function of sender
    -MESTYP  logical message type
    -MESCOD  logical message code
    -MESFCT  logical message function
    -TEST    test flag
    Procedure
    Please check the inbound partner profiles.
    Execute function
    Plz throw some lights on this
    Thanks
    Edited by: Sarat Orissa on Feb 18, 2010 1:51 PM
    Edited by: Sarat Orissa on Feb 18, 2010 1:52 PM

  • IDOCS Query

    Hi All,
    I have been studying and practising IDOC creation. I have a few doubts , Plz help me clear  those:
    1) If I want that whenever transaction F-02 is used for posting a G/L A/C, the Idoc should be generated. For this i know that we need to set the output type , media, partner profile. But I am confused as to how the system knows/maps that for F-02 transaction '<b>xyz</b>' is the idoc to be created with '<b>xx</b>' message type?(what settings make this happen)and I am not clear as to how the IDOC gets created actually , Which is the program that creates IDOC and how can i check the status of generated idoc.
    2) I have studied that for custom IDOCS we need to create our own programs or FM with message control?
    If its a standalone program then how to link this program to process my IDOC(ex for F-02  Idoc type :xyz and mess type xx)..i mean what settings to do to ensure that this program is linked to the idoc i want to process.
    If i write a fm with message control then also how it is linked to handle my Idoc and mess type.
    3) what is the meaning of process code in partner profiles setting ? and in realtime , how to check the status of the idoc and resolve the error if any??
    I am under a great state of confusion and unclarity. Plzz help me come out of this ASAP.
    Thanks,
    Shills

    hi,
    IDOC CONTAINS 3 TYPES OF RECORDS..
    1) CONTROL RECORD( SHOULD BE ONE) [ EDIDC]
    2) DATA RECORDS( CAN BE MANY)  [ EDIDD/EDID4]
    3) STATUS RECORDS( CAN BE MANY) [EDIDS]
    IF U WANT TO CREATE UR OWN TYPES,
    1)
    A)IN WE31, U CREATE AN SEGMENT WHICH IS NOTHING BUT A COLLECTION OF FIELDS.
    B)IN WE30, CREATE AN IDOC TYPE, SELECT BASIC TYPE OR EXTENSION, AND ASSIGN THE SEGMENT.
    SO IDOC TYPE IS NOTHING BUT STRUCTURE CONTAINING FIELDS
    OF SEGEMENT!!
    C) GO TO WE81 , CREATE A MESSAGE TYPE, MESSAGE TYPE GIVES THE MEANING OF THE IDOC (EX MATMAS FOR MATERIAL MASTER)
    D) GO TO WE82, ASSIGN MESSAGE TYPE TO IDOC TYPE.
    2) GO TO SALE, CONFIGURE ALL THE STEPS (HOPE U KNOW)
    WITH THE TYPES U CREATED.
    3) NOW WRITE A <b>PROGRAM</b> WITH THE LOGIC TO POST IDCOS TO PARTNER SYSTEM.
      SO ITS LOGIC SHOULD BE AS FOLLOWS.
      FOR EVERY CONTROL RECORD, DATA RECORDS SHOULD BE MAPPED.
      CONTROL RECORD CONTAINS DATA LIKE PARTNER LS, PARTNER TYPE etc.
      create structures like EDIDC, EDIDD.
      and pass parameters into the structures.
      now , for every control record.
      loop at data record,
      caLL fn module 'MASTER_IDOC_DISTRIBUTE'
      endloop.
    <u>PURPOSE OF FN MODULE</u> : THERE CAN BE MANY PARTNERS FOR A SINGLE SENDER.
    SO, THIS FN MODULE GENERATES COMMUNICATION IDOCS.
    <b><u>IDOCS : MASTER IDOC, COMMUNICATION IDOCS, APPLICATION IDCOS.</u></b>
    FOR EVERY MASTER IDOC , THERE CAN BE MANY COMMUNICATION IDOCS DEPENDING UPON THE NUMBER OF RECEIVERS.

  • Idoc query(very urgent)

    Hi Folks,
    i want to insert a record into the EDIDD table ,please let me know if i need to modify the sequence numbering which is kept by the fields  SEGNUM and PSGNUM for the records whcih are beneath the new insert record.
    regards,
    Nagaraj

    Hello
    Yes, fields SEGNUM is a secuential number.
    The other one im not sure but try to assign the same value for both fields.
    Gabriel

  • Idoc to file scenario general query

    Hi All,
    I know about the basic settings needed for the Idoc to file scenario.
    My query is related the idoc /ALE settings.
    I have a scenatio wrking in my system where we have configured the port for B type partner and also the port as XML-HTTP
    I can not see any DM(BD64) created for it basically.I want to know that in what scenarios the BD64 configuration is required.
    Or it is the case that if we define the BD64 then we do not need to configure we20 and we21, it will be auto configured?
    Please let me know the use cases for these different configurations if any.
    Thanks in advance.
    Regards,
    Rahul Kulkarni

    Hi Rahul,
    BD64 uses mostly IDoc to IDoc scenarios because the IDoc consults the distribution model and determines whether any filter objects are specified for a receiver.
    WE20 and WE21 (Partner Profile,Port Definition) we have to define in any scenarios where ECC included.
    Thanks,
    Seshu.

  • Query in IDOC To JDBC Scenario

    hi all
    below is my scenario :
    As soon as vendor is  created/ updated at R/3 , the IDoc is triggered via. change pointer , and is send to XI. XI will create / update the corresponding vendor in   Oracle database at the pther side.
    My question is  , at Xi how will I come to know that the incoming vendor i have to insert in Oracle or update in oracle., as from XI i have to fire a query isert / update
    thanks
    Sheetal

    Hi ;
    Use UPDATE_INSERT as action .
    action=UPDATE_INSERT
    The statement has the same format as for the UPDATE action. Initially, the same action is executed as for UPDATE. If no update to the database table can be made for this action (the condition does not apply to any table entry), values of the table described in the <access> element are inserted in accordance with the description of the action INSERT. <key> elements are ignored in this case.
    The response document has the following format; one of the two values is always 0 because either an UPDATE or an INSERT action is always executed:
    <update_count>count</update_count>
    <insert_count>count</insert_count>
    Mudit

  • IDOC to JDBC :Error handling in Query execution

    Hi,
    I have a scenario idoc to JDBC, here I will get 'n' number of segments in an idoc corresponding to 'n' records which needs to be updated in SQL Database table.
    In this scenario how we can handle the error when any record is failing while updating into the table?
    Is there any method by which we can know which records are successfull and which records are unsuccessfull?
    Please provide your valuable ideas.
    Regards,
    Shiva.

    Hi Soorya,
    thanks for the response.
    Actually I want to know how to handle the situation when we are trying to insert/update 10 records and if 6th,7th and 8th records failed to insert/update then
    1. Will the other records are insert/updated in to the DB?
         If yes : then how to get know the failed records(6th , 7th  and 8th) i.e., how the response msg will be?
          If no :   then how the response msg will be?
    2. Is this achieved thru normal sql query or need to use stored procedure?
    Regards,
    Shiv.

  • Query in IDOC.................Urgent

    Hi Friends,
    Sometime back i had post a query for the same in BAPI,i got the BAPI,but i feel if i ll get the respective IDOC for the same than i ll me more close to solve my prob.
    so send me an IDOC for Planned Investment and Expenditure.
    Plz help me on this.
    Thanks a lot in Advance
    mrutyun^

    hi Mrutyunjaya,
    try using BAPI_FIXEDASSET_CREATE1.
    You will get lot of information about asset in business object ‘BUS1022’.
    regards,

  • Query on Idoc Packaging with PI7.1 EHP1

    HI PI Experts,
    I have a scenario where batch run triggers the 100's of Idocs in R3 in few milli seconds, which means all Idocs are triggered in one go From R3.
    Do we still need to set Check box for Collect Idocs in Partner Profile in R3 for Idoc Packaging ?
    I want to make out the difference in 2 configs for Idoc Packaging where
    A)  All Idocs are sent via Report run of RSEOUT00 at a go after collection.
    B) All Idocs are triggered at same time via Batch Run at same time.
    Assumption:
    PI is configured to use Sender Idoc Adapter with Idoc Package Size of 10.
    OR
    I frame my Query in other way"
    What does Collect Idoc and running Report RSEOUT00 achieve to make sure that Multiple IDOC Nodes come into 1 XML message? OR Its only PI Sender Idoc Adpater take care of it when multiple Idocs of same type comes through PI?
    Please reply .
    Regards,
    Anurag

    Hi Anurag,
    In the sender IDOC adapter if the packaging option is not activated, then the IDoc packages get split into single PI messages, one PI message per IDoc. IDoc sender functionality is enhanced to preserve and process IDoc packages without splitting the IDoc package into individual PI messages. I.e. single PI message contains multiple IDocs including control records. Where as running the report RSEOUT00 will just send all the IDOCs that are in waiting state to their respective destinations.
    For the sender IDoc adapter to be able to process packages, it should receive the IDocs in a group. I.e. in the sender partner profile the packaging option has to be activated. Though you've activated the packaging option in the sender partner profile, If you dont check collect option in sendet IDOC adapter then the IDOCs get splitted into individual PI messages.
    Regards,
    Priyanka

  • Query Regarding IDOC  "WMMBID02"

    Hi,
    I have a follwoing requirement that makes use of a standart IDOC WMMBID02. This IDOC WMMBID02 has data stored within into different segments that have structures. I need to read that data and store it into an INTERNAL Table.
    Is there any specific SAP Function Module that would help me to obtain such requirement. If not, what are the options that could be used to read data from IDOC WMMBID02 and populate our INTERNAL Table.
    Kindly Suggests,
    Thanks & Regards,
    Rajesh

    Rajesh,
    Either you can use the function IDOC_TYPE_COMPLETE_READ
    Or use the code as below.
    SELECT * from EDID4 into t_idoc_data where docnum = ???
    data : wa_E1MBXYH type E1MBXYH,
    wa_E1MBXYI type E1MBXYI,
    wa_E1MBXYJ type E1MBXYJ
    loop at t_idoc_data into wa_idoc_data.
    case segnam.
    when 'E1MBXYH'.
    move wa_idoc_data-data into wa_E1MBXYH.
    when 'E1MBXYI'.
    move wa_idoc_data-data into wa_E1MBXYI.
    when 'E1MBXYJ'.
    move wa_idoc_data-data into wa_E1MBXYJ.
    endcase.
    move corresponding fields of wa_E1MBXYH into wa_itab.
    move corresponding fields of wa_E1MBXYI into wa_itab.
    move corresponding fields of wa_E1MBXYJ into wa_itab.
    append wa_itab to itab.
    Clear all the work areas here
    endloop.
    Regards,
    Ravi
    Note : Please mark the helpful answers

  • IDOC related Query

    hi
    i am adding one field VBKD-IHREZ in the IDOC.
    i have added following code in the Include which exists inside a User exit corresponding to fill Idoc Structure to BDC data structure.
    z1edk05 is the new segment which i have add in z1orders through we30.
    the code is below which i have added in Include.
    when i activate this code i got error
    the field z1edko5 is unknown. there are similer fields with name "z1edk03","z1edk01"
    include LVEDACOM.
    in UNICODE programs the character "-"  can not appears in names as it does appear in the names 'IVBEP-POSNER'
    if not z1edk05-ihrez is initial.
      perform zzdynpro_setvalue tables dxbdcdata
                                 using 'BDC_OKCODE' EQ '=SICH'.
      PERFORM zzdynpro_new tables dxbdcdata
                             using 'SAPMV45A' '4002'.
      perform zzdynpro_setvalue tables dxbdcdata
                             using 'VBKD-IHREZ' z1edk05-ihrez.
      perform zzdynpro_setvalue tables dxbdcdata
                             using 'BDC_OKCODE' 'BACK'.
    ENDIF.
    regards
    Atul

    Hi,
    Check if you released your idoc. Have you added the extended idoc to the message type in tcode we82. Also check if the partner profiles contain the zidoc in extension.
    And as you have mentioned....it is showing 'o' in the error but your segment name contains 'zero(05)'. So please check it once.
    Regards,
    Sumalatha

  • IDOC Generation Using XSLT Mapping[Query]

    Hi,
    I am working on File to IDOC scenario. I have used XSLT mapping. It is necessary to generate EDI_DC40 segment for IDOC in XSLT?
    -Kavita

    Hi Kavita,
    please take a look at note: 728792
    (Fields of the IDoc control record )
    it describes your scenario
    Regards,
    michal

Maybe you are looking for