CLFMAS IDoc - Issue in Data Record Population

Hi Experts,
My SAP systems are configured in such a way where CLFMAS Idoc is triggered based on Change Pointers.
The field 'Class Type' (KLART) is filled in the IDoc as '022' whereas the actual value is '023'.
I debugged through the function module generating the IDoc. I see that the value being passed to 'MASTER_IDOC_DISTRIBUTE' is correct, but once IDoc gets generated, the value seen in transaction WE02 is wrong.
Where might the value possibly be getting changed?
Kindly help me here.
Thank you.
Regards,
Keerthi

Hi,
I understand your point.
But wont such Customer Functions be called before the function module MASTER_IDOC_DISTRIBUTE gets called?
I see that the values in EDIDD are consistent till they are passed to MASTER_IDOC_DISTRIBUTE. Its only when the IDoc is actually created that I see the values are changed.
Thanks & Regards,
Keerthi

Similar Messages

  • FMS Recording - Seek Causes Synch Issues Audio/Data Recording

    Hi,
    I have recordings being generated by FMS 4.5.  These recordings are a combination of data (for example, chat text that was typed into a chat window) and audio.  The audio, as currently designed, comes on and off.  Therefore, the record stream plays a audio stream, but that stream turns on and off by calling play(activeAudioStream) and play(false) once the audio has ended, over and over.
    The recordings (as flv) play back fine, when not using the seek feature.  When using the seek feature, I get obvious problems where playback will simply Stop, and not resume for a specified about of time.  For example, if I start a recording at 60 seconds in, then at 120 seconds, playback stops and nothing happens for a long, seemingly random about of time.  The stream is active, as when it does resume, the time value of the stream includes the long period of nothing happening.
    This is very confusing, because the recording works fine from the beginning.  I am fairly certain this has something to do with recording audio/video.  A data only recording is fine.  A recording with audio all the way through, even with data, is fine.  But, having the recorded audio stream turn on and off seems to cause major problems.  Any ideas?  If the audio is not continuous, should I create data only and audio only recordings, and setup my playback to stream the audio based on data events indicating the start/end of an audio section?
    Note this is being played back in an AS2 application.
    Thanks.

    Are you using Stream.flush API - if you are using that it migth cause some syncronisation issues if data and audio/video is mixed.
    I did not get your usecase clearly - let me know if you using above API. I think it would be better to use second option if you can usedata and audio seperately but probably you can explain use case better so that we migth help you.

  • Some question on IDOC (Control Record/Data Record/Status Record)

    Dear all,
    I am new in this area, and would like to enquire some question on this topic.
    When I view a IDOC via WE02, each of the IDOC record will consist of Control Record/Data Record/Status Record).
    Questions:
    I notice that the data records consists of many segment (i.e. E1EDK01, etc) which are use to store application data.
    1 - My question is do I have to manually create all these segment and do a mapping to my application field one by one (i.e. that is when I want to create a brand new message type from scratch)?
    2 - If question no. 1 is Yes, how to do it, what are the transaction code to create it? can you show me the step by step.
    3 - I don't have to create the Control record and the status record for my new message type right ? because those field value will automatically pull out from partner profile and system status message, am I correct?
    Thanks.
    Tuff

    Hi Tuff,
    As everything in SAP, with IDOCs too there are
    1) Standard IDOCs
    2) Standard IDOCs(Extending - Enhancement to an IDOC, to accomodate for custom values)
    3) Custom IDOCs
    And every IDOC has,
    Control record - EDIDC Structure - This mostly reflects the partner profile information, along with few more details which are used for IDOC extension, Sequencing etc
    Data Records - EDID4 Structure - These records contain the actual business data of the document in concern. So for ORDERS05 it would contain order details, INVOIC02 - Invoice details so on...
    Status Records - These records capture the status of an IDOC from the time it is received/sent from your system and a corresponding business document is created/changed. So this will have messages like "IDOC sent to the port OK" etc which are status from the communication layer(ALE) to application specific messages like "Sales Order XXX created" or "Invalid Material" etc.
    You would have noticed something called as Process code in the partner profile, this is associated with a FM(or work flow task etc) which has the business logic coded in.
    So in case of an Inbound IDOC, the sending system updates the IDOC - Control and Data records, and sends it to the receiving system. On the receiving system the IDOC's control record is validated against the partner profiles set, if an entry is found then using the process code it finds the associated FM which will decode the data from the IDOC data records as per the IDOC type and then use it to post data into SAP (VIA BDC, Batch Input, BAPI etc).
    And all this while the Status records are being updated accordingly.
    So with the above context will try to answer your questions,
    1 - My question is do I have to manually create all these segment and do a mapping to my application field one by one (i.e. that is when I want to create a brand new message type from scratch)?
    In case of a custom IDOC, yes you will have  to.
    In case of a standard IDOC, you wouldn't have you just have set up the necessary configuration (Partner Profile, Process code etc)
    In case of a standard IDOC extended to accommodate for some custom values(for which there are no fields in standard IDOC - Let us say you have added some new fields on VA01) - In this case you can still use the standard Process code and Standard FM associated with it, SAP provides several Function exits in these FM's which you can leverage to add your custom logic.
    2 - If question no. 1 is Yes, how to do it, what are the transaction code to create it? can you show me the step by step.
    There are several documents available on the net and on SDN detailing step by step approach for all the above three cases,
    just search for step by step guide for IDOCS - sap.
    3 - I don't have to create the Control record and the status record for my new message type right ? because those field value will automatically pull out from partner profile and system status message, am I correct?
    Again it depends, in case of using a standard IDOC you wouldn't have to. But in case you have some customizations/enhancements then you might have to.
    For Ex: updating the control record accordingly for indicating that you have extended the standard IDOC. Or append custom messages to the status record as per the business logic.
    Try out the examples you find on the net and post any specific questions you might have.
    Regards,
    Chen

  • Data records in an IDoc getting erased, when conversion rules are defined

    Hello ,
    We are sending IDocs of message type GLMAST & COELEM from a system(version 4.7) to another system (version 4.6B).
    The segment data in the IDocs are changed using the user exit enhancement KKCD0001. The function exits used are EXIT_SAPFKCIM_001 and EXIT_SAPFKCIM_002.
    If there is no conversion rule defined in the receiver system, for the segments, the IDocs are posted correctly in the receiving system.  But if we define conversion rules , then the data records for all the segments for which conversion rule is defined are getting erased, and an error occurs during processing of IDocs
    Please let me know what can be the the reason behind this issue..And how to solve this..
    Thanks in advance,
    Afsar

    Issue solved

  • Error: IDoc XML data record

    Hi all,
       We have file->XI->idoc scenario and the problem we are facing is like, when the idoc structure is prepared using XSLT mapping, when the idoc is ready to get in thru the idoc adapter we are getting the following error.
    <i><b>Error: IDoc XML data record: In segment
    Z1UKGAS_HEADR attribute  occurred instead of SEGMENT                                </b></i>
    Anyone faced the same issue....if so pls do throw some light into this issue....
      We r in XI 3.0 SP13...
    Thanks & regards,
    Jayakrishnan

    Hi,
    In an IDOC structure segment attribute is requried. From the error you posted, it looks like seqment attribute is missing.
    <Z>
       <IDOC BEGIN="">
          <ED SEGMENT="">
          </ED>
       </IDOC>
    </Z>
    Naveen

  • IDOC Data record is appending with NULL characters instead of spaces.

    Hi Gurus,
    1)     We have created a port with Japanese characters for MATMAS05 (IDOC type) and trying to download an IDOC into an XML file using the ADAPTER, the actual data is less than the length of the IDOC string so we need to append the remaining spaces to each data record which in turn fills the segment pad but whereas in NON-UNICODE server the data record is appending with NULL characters instead of spaces.
    2)     For Japanese port the receiver port name in XML file is appearing with some junk characters in NON-UNICODE client, whereas in UNICODE client it is displaying the correct port name with Japanese characters.
    Your help will be appreciated.
    Thanks in Advance.

    ORA-06512 indicates a numeric or value-error line 2 seems to show to the first statement.
    Check the datatypes of your columns/items.
    Try to issue an update manually in SQL*Plus to see if it works generally.

  • Error : IDoc XML data record: In segment attribute occurred instead of SEGM

    hi friends
    i am doing the file to idoc scenario. in message mapping i had done the static test. but what ever the fields i mapped in the idoc it was not populated in the idoc. and i am getting the error as
    error :IDoc XML data record: In segment attribute occurred instead of SEGMENT
    can any one solve the problem please
    thanks in advance
    Vasu

    Hi Vasudeva,
    Pls do check the nodes which you have mapped to. Also make sure that your SEGMENT field in the target structure is mapped properly.
    Cheers
    JK

  • Cannot display archived idoc data records in SARA

    Hello,
    In our ERP system, we regularly archive idocs older than 6 months. To view these archived idocs I use transaction SARA (with archive object IDOC and infostructure SAP_IDOC_001) to search for the relevant idoc that has been archived. Once the idoc is displayed, I drill down further by clicking the magnify glass button which then displays the idoc levels:
    EDIDC               Control record (IDoc)
    EDIDD               Data record (IDoc)
    EDIDS               Status Record (IDoc)
    SRL_ARLNK      SREL: Archive Structure for Links
    When I try to view the Data Records, I get a message saying "You are not authorized to display table EDIDD". According to our Authorizations department, this is not an Auth issue but rather config setup or program issue.
    Why can't I view the archived idoc data records? Is there another way to view archived idoc data?
    Regards,
    Fawaaz

    Hi Jurgen,
    Thanks for moving my post to the correct space.
    Our Auth team is very confident that this is not a user auth issue. This could possibly be true because the idoc data resides on the following tables when in the database (before archive) - EDIDC, EDID4 & EDIDS. The idoc could then be viewed via transaction WE02 or the Data Browser (SE16). There is no EDIDD table in our ERP system so obviously no authorization object to assign to.
    Once the idoc is archived, the data is removed from the ERP tables and moved to our archive database/server for storage. So when trying to view the archived record, the system does not access the ERP tables but rather the archive directory (that it's mapped to in settings). I assume the SARA transaction merely displays the data in the same segments/grouping with these table names (mentioned above in my first post) but instead of EDID4 it displays EDIDD.
    According to the error longtext, "The check performed when data is read from the archive is the same as that of the Data Browser (transaction SE16)". So I was not involved with setting up our archiving procedure but could it be that table EDID4 was incorrectly mapped to table EDIDD in archives?
    Regards,
    Fawaaz

  • Idoc data record not in XI

    Hi,
       When you import an Idoc (any Idoc - in my case it is SOPGEN01) in Repository, data record fields of idoc are not imported. You can see these fields in WE60 by checking the "Data rec" checkbox. The fields i need are SEGNUM, PSGNUM, HLEVEL.
    <b>  Do not confuse the above fields with the EDI_DC40 fields. I do not need EDI_DC40.</b>
    I searched SAP notes but could not find anything. Is this a limitation of XI, then its pretty bad.
      This same question was asked in May but no concrete answer was given.
    data record fields of idoc not found in XI

    Instead of going the hard way RFC loopups and mappings - i am thinking of a workaround for this limitation of XI.
    You know the number of child segments. In my case it is always 2. And i always need segment number of the parent segment(in this case E1LIPM0)
    -E1LIPM0                  segnum 1
        ---E1LIPV0              segnum 2
               ---E1LIPP0       segnum 3
    -E1LIPM0                  segnum 4    and so on
    So I will use a counter variable starting with 1 and increment it by 3 for each top parent level segemnt E1LIPM0, so i get numbers like 1, 4, 7, 10, etc. which is what i want.
    Points awarded to Sushil

  • SM58 - IDoc adapter inbound: IDoc data record table contains no entries

    Trying to send Idocs from SAP ECC6.0 via PI 7.0 up until 2 days ago there was no problem.
    Since yesterday, only one specific type of Idoc does not make it into XI (PI). In the Idoc monitor (WE02) the idocs that were created gives status 3 which is good. But all Idocs of that specific type (ZRESCR01) does not go to XI. I can only find them bakc in SM58 where it gives the following message:
    IDoc adapter inbound: IDoc data record table contains no entries
    I have checked SAP notes 1157385 and also 940313, none of them gives me any more insight into this error. I have also checked all the configuration in WE20, SM59, and in XI (repository and directory) and in XI IDX1, IDX2 but could not find anything that would cause this. I can also not think of anything that changed since 2 days ago.
    Please point me in the right direction.

    hi,
    i think in sm 58 u can find entries only when there is some failure in login credential .
    if there is change in IDoc structure than you have to reimport the idoc metadata defination at IDX2.otherwise not requird.
    please check the logical system name pointing to the your requird target system....
    please also verify thet your port should not be blocked.
    pls find the link it may help
    Monitoring the IDOC Adapter in XI/PI using IDX5
    regards,
    navneet

  • IDOC - Data record

    Would some one explain me in what situation we will be having more than one Data Records in an IDOC? I am looking for a specific example if possible.
    Also, when we send PO to our Suppliers, if there are more than One PO for that supplier, whether I can send all of them in one IDOC?
    Please help me.

    Hi Mohan,
    There can be more then one DATA record if you send multiple line items or multiple objects.
    For example if you send multiple delivery items or sales order items then few data segments will be multiple.
    It basically depends on what you are sending.
    The control records will always be 1. WHich indicates who is the sender, the reciever, the idoc number and control related information.
    Data records will be one or more then one depending on what you are sending if you r sending multiple PO's for a single vendor or if u r sending multiple Deliveries for one acknowledgemtn then you will have multiple data records.
    There will also be more then one Status records. The IDOC passes through different stages or different milestone and each milestone will have a specific status indicator. So the status records can be more then one.
    Hope this helps
    Cheers
    VJ

  • IDOC Data Records

    I have the IDOC Number with me. How to fetch the Data Records from that ?

    If you want to read the idoc records in your program:
    use the folloing fms:
    Sample code:
      CALL FUNCTION 'EDI_DOCUMENT_OPEN_FOR_READ'
        EXPORTING
          document_number = p_docnum
        IMPORTING
          idoc_control    = f_idoc_control
        EXCEPTIONS
          OTHERS          = 01.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
                RAISING error_opening_idoc.
      ENDIF.
    * Read IDOC data segments
      CALL FUNCTION 'EDI_SEGMENTS_GET_ALL'
        EXPORTING
          document_number = p_docnum
        TABLES
          idoc_containers = t_idoc_data
        EXCEPTIONS
          OTHERS          = 01.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
                RAISING error_reading_idoc.
      ENDIF.
    * Close IDOC
      CALL FUNCTION 'EDI_DOCUMENT_CLOSE_READ'
        EXPORTING
          document_number = p_docnum
        IMPORTING
          idoc_control    = f_idoc_control
        EXCEPTIONS
          OTHERS          = 01.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
                RAISING error_closing_idoc.
      ENDIF.

  • Error : idoc xml data record : in segment attribute instead of SEGMENT

    hi all
    i am doing the file to idoc scenario. in that i am getting the error
    error : IDOC XML Data record : In segment attribute instead of SEGMENT
    i am doing this scenario since 4 days.
    can anyone help me
    thanks a lot
    Vasu

    in ref. to my post in your earlier thread.
    >>>>
    in your mapping check, in your IDOC if Begin , segment etc are mapped to a constant say '1'.
    Also ref: In segment IDOC attribute I occurred instead of SEGMENT

  • IDOC:Master Data Records are not going to be updated after posting the IDOC

    I need to create employee Master data records in R/3 .I am using the IDOC HRMD_A07, though the IDOC posting is successful no tables, corresponding to employee master Data are getting  updated,
    Can anybody plz Let me know the possible reasons and solutions for this?
    Thanks in Advance,
    Sandhya

    hi i hecked the job log entries in SM37 in source system, the idocs were returned with '0' records. i took the Idoc number and checked in BD87 it displays some logs in that one node shows the red status with the detail as follow  IDoc entries in tRFC queue      3383
    the next one is green                Data passed to port OK                    1
    i selected the red staus node and clicked 'process'  button but it displays as
    The operation cannot be carried out with this node type
    wht should i do now, wht may be the reason for the datasource not pulling the data from R/3 to BI?

  • Adding an existing segment in data record of IDOC

    Hi All,
    I am using basic type ORDERS04 to send IDOC out of SAP system.
    Currently its not sending the segment E1EDP04 in the data record.
    What should be done to get this segment in the data record of IDOC?
    Also, can any one tell me the significance of VIEW when i double click on Message type of a particular partner in WE19.
    Thanks,
    Yogeeta

    What is the message type?
    E1EDP04                        IDoc: Document Item Taxes
    First you need to find out why required segment is not being generated, is there any data missing in document due to which the segment is missing?
    If that (missing segment) is sap-standard funtionality and you would like to include the segment in IDoc then you need to implement the user-exit. And to find the correct user-exit you need Message Type.

Maybe you are looking for

  • Windows Failed To Start (Windows 7)

    I am not 100% sure where to post this, but I saw a similar post here, but not with the exact problem.  My spouse was playing a video game on the laptop when it suddenly shut down and when he rebooted the computer it gave him the error "Windows Failed

  • ABAP Coding- enhance transactional datasource

    i need to bring in data from different tables and following code works for me: DATA: l_s_ziw_orderma_i like ziw_orderma_i. CASE i_DATASOURCE. WHEN 'ziw_orderma_i'. LOOP AT c_t_data INTO l_s_ziw_orderma_i. l_tabix = sy-tabix. SELECT PRODUCT_IT FROM CR

  • Non-cumulative keyfigures in virutual multi providers in BI-7.

    Is it possible to use non-cumulative keyfigures in virutual multi providers in BI-7? The Non-cumulative KFs are working in the cube. But when we create a virutual MP that contains this cube. They all are showing zero. Is this supported at all? Is the

  • Mouseover doesn't display title attribute

    I know the whole issue about the alt text fiasco. However, on my laptop, the title attribute does not display either. It works fine on other computer's firefox, but not this one. I assume it might be something in my settings, or an add-on getting in

  • Configuring Weblogic Server for X.509 Smart Card Authentication

    0 down vote favorite share [g+] share [fb] share [tw] I am running Oracle Weblogic 11g (10.3.6) and attempting to configure two-way SSL (client certificate requested and enforced). The client certificate is on a smart card. I have enabled "basic" ssl