Custom idoc giving error

hi friends
i am adding two segments in Purchase orders ORDERS ---/ afs/orders05
i found the exit and implemented the logic, but when i triggered the idoc
i noticed that custom segment is coming after every segment
like e1edk01 ---
     ze1edka1 --- (repeating)
     e1edkb1 ---
    ze1edka1 -
(repeating)
how to make changes in code so that it will come in right way (means it should not repeated)
thanks
Anil

Hello Anilkumar
I assume you want to add your custom segments just behind some standard segments.
Probably your logic looks like this:
DATA: ls_edidd   TYPE edidd.
DATA: ld_idx       TYPE i.
LOOP AT int_edidd INTO ls_edidd
                             WHERE ( segnam = '<name of standard segement>' ).
  ld_idx = syst-tabix + 1.
" Add custom segment
  ls_edidd-segnam = '<name of custom segment>'.
  ls_edidd-sdata = ... .
  INSERT ls_edidd INTO TABLE int_edidd INDEX ld_idx.
ENDLOOP.
If the default segment is repeated the custom segement will be repeated as well. Therefore, add a counter logic:
  LOOP AT int_edidd TRANSPORTING NO FIELDS
            WHERE ( segnam = '<name of custom segment>' ).
    EXIT.
  ENDLOOP.
  CHECK ( syst-subrc NE 0 ).
" NOTE: if customer segment already found leave exit, ELSE...
DATA: ls_edidd   TYPE edidd.
DATA: ld_idx       TYPE i.
LOOP AT int_edidd INTO ls_edidd
                             WHERE ( segnam = '<name of standard segement>' ).
  ld_idx = syst-tabix + 1.
Regards
  Uwe

Similar Messages

  • INVOIC01 IDOC giveing error.

    Hi
        I am trying to process INVOIC01 IDOC using standard SAP function module IDOC_INPUT_INVOIC_MRM. Always its giving error at a particular poing as given below.
    IF f_subrc = 0 AND NOT i_rbkpv-zterm IS INITIAL
    AND i_fix_payment_terms IS INITIAL
    AND ( NOT i_rbkpv-zbd1t IS INITIAL
    OR NOT i_rbkpv-zbd1p IS INITIAL
    OR NOT i_rbkpv-zbd2t IS INITIAL
    OR NOT i_rbkpv-zbd2p IS INITIAL
    OR NOT i_rbkpv-zbd3t IS INITIAL ).
        f_subrc = 4.
        f_fieldname = 'RBKPV-ZBD1T'.
      ENDIF.
    The values are  i_rbkpv-zterm  = A500 , i_rbkpv-zbd1t = 30 and all other variables in the condition are initial. This 'IF' condition always fails.
    Anybody have any idea why this happens ? Any solutions/ work arounds / suggestions ? Please.
    Can anybody tell me what is this i_fix_payment_terms ?
    ofcource..points will be rewarded for helping answers...
    Regards,
    Krishnakumar

    Check the sy-subrc value before the IF statement in debug.
    It should always 0 and i_fix_payment_terms (Internal table ) will not contain any value.
    Hope it will fill after that....

  • Incoming idocs giving error for  Serialization

    Hi  Friends
    Am getting inbound idocs with this error  :  Serialization  errror for  object  01,S, 34343434,Expected counter 000001<
    and error in details  says,
    The expected serialization counter has the value 000001. However, the serialization counter in the IDoc has the value 000002 and is therefore too big. There are therefore older IDocs with this HR object with the serialization counter values in between. These IDocs have either not yet been posted, or have been posted incorrectly.
    what shd i do for this  few exper said i need to do some thing for Serialization  so automatically system shd take care for this,
    Pls help me on this.
    Regards
    Meeta

    Hello,
              Refer to the SAP Note [65954|https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=65954]. It might be of use for you.
    Thanks and Regards,
    Venkat Phani Prasad Konduri

  • Error with Custom Idoc

    Hi All,
    I have created a custom idoc for creation of master data in the system. This custom idoc is using a custom function module to process the idocs. In the FM i have used Call transaction method to upload the master data in the sap system. Everything seems to be working fine.
    But the problem is that whenever any external system creates more than one idoc, first idoc is posted successfully while others fail with an error message "No status record was passed to ALE by the application.". Please let us know how we can resolve it.
    Correct Answers will be rewarded.
    Regards,
    Sridhar.

    Hello
    Refer to following thread:
    The specified item was not found.
    Thanks
    Amol Lohade

  • Customer/Vendor determination error INVOICE02 IDoc (SMG FD017)

    We want to have a copy of all invoices in an other SAP systeem. We are using INVOICE02 IDoc. I am using the output method via a LS (logical system) link (not Customer KU). But now we get an error: Customer/vendor could not be determined for intermediate document 0000000000119869 in the other SAP system (receiver system). We give a few partnerfuntions through, like BP, but this doesn't solve the problem.
    - How can this be solved?
    - Is there a programm to send IDoc Invoice in batch modus?
    With regards,
    Frank
    >>>>>> Complete message
    Customer/vendor could not be determined for intermediate document 0000000000119869
    Message no. FD017
    Diagnosis
    Several procedures are defined for determining the partner (customer or vendor):
    1. The customer/vendor can send his/her account number (the account
       number in our system) in the address segment.
    2. The customer/vendor can send his/her account number (our number at
       the customer or vendor) in the address segment.
    3. Only the name in the address segment clearly identifies the
       customer/vendor. In this case you can create an allocation within
       intermediate document customizing (IDoc base -> Control -> Forward
       inbound).
    4. The customer/vendor is determined using his/her bank details (only
       for the "INVOIC01" intermediate document type).
    5. The customer/vendor is taken from the control record of the
       intermediate document.
    For 1.-3.: One of the address segments with the partner functions
               "II", "RS", "SU", 'SE' ("INV_ID01"), or "RS" or
               "LF" ("INVOIC01") is used for determining the
               customer/vendor.
    Procedure
    Create the customer or vendor within Financial Accounting or maintain his/her bank details.
    Create customer         - Proceed
    Customer bank details   - Proceed
    Create vendor           - Proceed
    Vendor bank details     - Proceed
    If the customer/vendor can only be determined using his/her name, create a record within intermediate document customizing with
    logical address = name, application = "FI" or "MM" and physical target in the SAP system = customer number/vendor number.
    Proceed
    <<<<<<

    Not applicable any more

  • Error in Inbound Customer IDOC (WE19)

    Hi All
    I am creating Inbound Customer IDOC
    Message Type : DEBMAS
    & FM : IDOC_INPUT_DEBITOR.
    But getting error(51) : "No batch input data for screen SAPMF02D 0340".
    According to previous threads, I have seen this screen for Mandatory fields but I didnt found any.
    Could anyone tell me what mandatory fields to enter in DEBMAS or  the Solution for this Error.
    Regards.

    Hi Nikhil I am getting this error which you got it before but this time I am getting it in LSMW when creating customer master screen."No batch input data for screen SAPMF02D 0340"
    what am i supposed to check?
    Can u plz send me ur mail ID.

  • Error While Creating Custom IDOC Segment using WE31

    Could anyone please help me resolve this issue.
    I am getting following error when trying to create a custom IDOC segment type using WE31.
    "Name range violation: Name Z1WOHDR not permitted in SAP system"
    Segment type trying to create: Z1WOHDR
    Regards
    Venu

    Try changing the name , But i am not getting any such error with the name you are using.
    Just Try with some onther name

  • Error in File to Custom IDoc

    Hi All,
    I am getting following error while doing File to Custom IDoc Scenario
    No authorization to send IDocs with message type Z
    Can any one tell how to resolve this error?
    Regards,
    Sai

    Hi Krishna,
    The RFC destination that you have put in IDoc communication channel must be present in your SAP XI system, transaction SM59 also.
    Please check if the user id/Password that you have given has all the authorization.
    Also check the User ID and passwrord in SM59 in R3 and see if a Remote Login is possible.
    There is also some configuration by which the clients are allowed / blocked from receiving Idocs from XI. Basis guys can do it for you. Please approach your basis consultant. Hopefully that helps..
    Regards,
    Abhy
    Message was edited by: Abhy Thomas

  • Error when trying to extend custom idoc

    Hi ladies and gentlemen,
    I am experiencing problems when I try to extand a custom idoc segment.
    I created a custom idoc (ZBEVINBDEL) with 3 segments, generated it and have tested it successfully.  Now the users have come back and requested additional fields.  When I tried to modify the custom segment (after cancelling the segment and idoc status' from released status, I got the message 'Segment type Zxxxxx.. cannot be changed'  (this is because the idoc segment type has been flagged as generated).
    So I thought I'll create an extension to the corresponding segment.  I've created the extension segment in WE31, but when I try to create the extension (ZBEVINBDELX02), and try to create as new to the linked type ZBEVINBDEL, I get another error message 'Action is not possible for generated idoctypes'.
    Has anybody experienced this problem before, and could you give me an explanation on how to get around these problems, either for changing the segment or extending one.  If the answer lies within BDBG, please explain in detail.
    Cheers,
    Steve

    Reuben,
    In the end, I didn't need to touch the extension.  I was able to achieve my goal by adding the new fields in  my custom structure in SE11, and the new fields came into the idoc automatically.  Then I just had to add code to handle the new fields in my Function module.
    Good Luck,
    Steve

  • Inbound Idoc in XI system giving error 56.

    HI Experts,
          using we19, i have successfully sent data from my r3 system. In the receiver  XI system, it is showing error 56 in we02. Pls help.Where have I missed out data.
    Secondly, in case of sending an Idoc with data using  we19, we can confirm data has passed out successfuly from sender system, is there any way I can confirm data has passed/ failed to pass from an RFC to the receiver system, within the Sender system??
    Arnab.

    hi Mondal,
    First of all, If the Idoc has generated at R/3 side and u didnt receive at Xi means
    1) Check in IDX5 at XI
    2) Check in SM58 at R/3
    3) Check in SMQ2 at XI
    Thats it , these will give u some clues
    generally error is indicated in sending system with numbers 51 and 56.
    51 Application document not posted
    56 IDoc with errors added
    Refer
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/19878343b111d1896f0000e8322d00/frameset.htm
    Thanks
    Sushma

  • Vodafone India customer....on my iPhone5, imessage and facetime are giving error "waiting for activation"

    Hi
    I have iPhone 5 with Vodafone India connection. The major challenge is Facetimche & iMessage giving error "waiting for activation"
    I have tried all the available solutions in Google search but still no change.....
    Please help in getting this sorted out!!!
    Thanks
    Atin

    Level 1 (0 points)
    chakkochi 
    Re: My iMessage still says "Waiting for activation..." Jun 17, 2012 10:04 PM (in response to bradfromwinnipeg)
    Hi All,
    This problem is solved for me, with some help from the carriers. At last
    Let me describe my situation once again.
    I am from India, where the official iPhone carriers are Airtel and Aircel.
    I have two prepaid connections - One from Airtel and one from Reliance GSM
    Whenever I try to activate iMessage from my Reliace SIM, it shows activation unsuccessful, the the receive at shows my email ID only.
    But whenever I try activate it using Airtel SIM, it activates just fine. But since my primary connection is the Reliance one, I wanted it to get activated for Reliance.
    I have tried every tweaks/restore etc mentioned in this discussion, but nothing worked.
    The solution:
    This does not require any jailbreak/restore. Just a little help from the carrier.
    For all reliance GSM customers in India, you can just try to activate in again. I think they have solved it for all customers.
    I was almost lost hope of activating imeesage on Reliance. But then one of my friends bought a new iphone (4S). He had a docomo connection, and he also had this same issue. But using his contacts in docomo, he enabled some trace in his connection, and found out that the phone was trying to send SMS to a UK number (short code), which is blocked by their RA team.
    This is that magic number : 00445773142076
    So from him, I got the number. I raised a complaint with Reliance.
    The complaint had nothing about imessage, but it said: "I am unable to send international SMS to the number 00445773142076, even after having sufficient balance and an active SMS plan"
    So they have done some 'unblocking'  and called me this morning and asked to try again 'sending sms to the same number' . I went to settings and activated imessage and facetime/ Thats it !!!!.
    A big thanks to Reliance GSM support for the quick solution.
    For anyone on Reliance GSM in India, just try activating it now.
    For others, log a complaint with the carrier that "you want to send SMS to the number 00445773142076.
    Thanks all

  • [IDOC] Test customized IDOC

    Hey,
    created a customized IDOC in system A and added an inbound
    process code.
    Now I would like to test the IDOC in we19 from system B, but the customized
    IDOC doesn't exist (of course) there.
    How to test this IDOC? Do I have to transport this in system B?
    Can I test IDOC also in system A himself? I just want to test if the configuration
    of process code works.
    In system A I can use we19 with standard inbound, but which receiver port do
    I have to use? I just have created a port to system B. For testing IDOC in just
    one system, do I have to create also a port/logical system to system A?
    thanks
    chris
    Edited by: Christian Riekenberg on Jul 8, 2008 4:18 PM

    I think you want to test only the process code calling the IDoc inbound function module correctly or not?
    If you have RFC connection between B to A. then go to WE19 create a dummy entry giving all the following details
    Receiver                            Sender
    Port                                Port                
    Partner No.                         Partner No.         
    Part. Type                          Part. Type          
    Partner Role                        Partner Role
    Message Type        
    and check in system A that IDoc you got received. It will show as an error , but that errors should shows it getting created in the inbound function module call

  • After creating successor to a custom IDOC?

    Hello
    We have a custom IDOC type (for sales orders) in the system. Now business want to pass additional data, as per this requirement am trying to add a new custom segment to this custom IDOC, but am getting the below error,
    ZORDR03 has already been released, only display possible
    Message no. E0639
    Diagnosis
    ZORDR03 has already been released. This means that the basic type or extension is locked
    against changes and can only be displayed.
    Procedure
    You can create a successor based on ZORDR03.
    I guess, i can not do CANCEL RELEASE from Memu-->Edit! because this custom IDOC is created in older versions, like 46C, currently we are on ECC6.0, hence i need to create a successor, but pls. let me now
    1) Do I need to change all the config settings like in WE72, WE82, WE20 O/B Prtaner profiles of EDP13?
    2) In what/where else i need to change or replace old ZORDR03  with newley creating ZORDR04?
    Thank you

    You need to be patient - this is not a Helpdesk where you've raised a high priority ticket...
    I'll just say that when we upgraded to ERP6.0, I did not agree with the fact that we could not cancel release on our custom IDOCs and we did not want to create a new version (it's been too long - I don't remember the technical reason for the issue with the new version).  We reset the release in the definition table and made the required changes.  There were no issues with the change.  If you want o go with the 'standard' appraoch, create a new version...

  • Development of custom IDOC's

    Hi All,
    Can we go for approach of developing custom IDOC's? where in our scenarios are getting files from thrid party and updating data in file  into ECC.
    Approach towards Custom IDOC's is for error monitoring and recprocessing.
    Would request your inputs and suggesions in this regard.
    Is that good approach for going to custom idocs? if not why?
    Thanks,
    chandra.

    Hi,
    SAP R/3 systems send out data through IDoc (Intermediate Document), which in internally has segments and fields containing the data. But sometimes, these fields are not sufficient for a specific end-to-end business scenario as far as data transfer is concerned. So in such scenario, either few fields are to be added or subtracted, or completely new structure- IDoc needs to be created.
    At times because of the business scenario we do have to create Custom idocs .
    Regards,
    Bhanu

  • WPUUMS IDOC Posting error

    HI,
    When i am sending aggregated sales data to wpuums idoc, it is giving error ...Document 90000007 saved (error in account determination) (MATNR Unknown)
    When i cheked with VF02, its say doucment does not exit.
    Please provide some solutions.
    Regards
    Laxmi Bhushan

    Hi
    Check the status of IDOC in WE02 or WE05  .From status records you can identify the exact issue.
    If  error is matnr is unknown  then that means either material is not in correct format or not extended to correct sales area.
    Regards
    Mandar

Maybe you are looking for

  • [HELP] Installing Windows 7 on MBP by USB using Boot Camp

    Hello! Im using boot camp to try to Install windows 7 on my MBP. The problem is my cd/dvd driver is broken and I cant use DVD to boot from. I tryed to install by USB but when Im about to restart and boot try to boot the windows that I installed on th

  • REFUND AMOUNT

    IAM NOT PURCHASE THIS APPS  BUTN MY CARD AUTOMATICE CERDIT 550 RS PLS MY PAYMENT RETURN MY ACCOUNT Billed To: [email protected] imran hanfi                          8 south hatipala 8 indore m.p 452001 IND Order ID: MH3W6NJDZK Receipt Date: 27/06/13

  • GRC AC User Provisioning

    Hello all, I know we can create users for ECC, CRM, PI, Portal and others bases on NetWeaver through GRC AC standar solutions. But what about BO BI, DS, BPC? I read some posts about the subject but they were not clear as I need. Can I create users in

  • Flex 4 UI Layout Constraint mis-behavior

    Hello, So here is the problem, below is basically my application wireframe in mxml. The problem comes in when I'm looking at a report component, so the reportComponents is visible, not the filterComponents. What is happening is the UI element is slid

  • How to develop e-commerce using java

    Can you please give me the source code for building e-commerce/web site using java?