IDoc Item Level number Generation Issue.

Hi,
I am in the need of the mapping information.
Header_File1:
1234     567890
1234     678901
Cont_File2:
1234     567890     123456
1234     567890     123457
1234     678901     789012
1234     678901     789013
Cont_Item_File3:
1234     567890     123456     9876543
1234     567890     123456     9876544
1234     567890     123457     9876549
1234     567890     123457     9876550
1234     678901     789012     9876555
1234     678901     789012     9876555
1234     678901     789013     9876596
1234     678901     789013     9876597
According to the above Cont_File2 4 Idocs will be created with the reference of the Cont_File2.
While in the Item Level mapping (Field Name - Itemno) I want to generate the number with the increment of 5.
Using the counter java funcation Inital Value 10, Incement by 5 then Format number function is using and it is mapped with the target field.
Now the problem is for creating the Item level IDoc for the first IDoc it is creating with the the values 10 and 15. 2 Items are created according to the Input file.
While creating the next IDoc the number has to start from 10. But it is taking from 15+5 = 20.
Please let me know what funcation or UDF to fix this issue.
Jane

Ok. By mistake . you need to use a UDF.
like this Type UDF = By Context
Parameters field[]
Parameters value = constant 10
try this
int inc  = Integer.parseInt(value[0]);
for (int j = 0; j < field.length; j++){  
       result.addValue(Integer.toString(inc));
       inc = inc+5;
field--->UDF >splitbyValue->Target
change the context of field.

Similar Messages

  • Update Purchase order number in Sales order item level from inbound ORDCHG iDoc

    Hi Gurus,
    I want to update purchase order number from the iDoc 'ORDCHG' to sales order item level (sold to party purchase order number) i.e, VBAK-BSTKD.
    Which exit I need to use?  where to update?  Can you please help.
    Thank you in advance.
    Regards,
    San

    Finally Resolved the problem by writing 2 exits.
    one exit 'EXIT_SAPLVEDB_007'  for identify correct item in the sales order by updating the customer purchase order item number i.e., VBAP-POSEX.  if we update the POSEX field then it wont create new item instead, it will update the item which it is referring to .
    2nd exit for updating the purchase order number. 
    I have tried to pass the program name, screen number, field name, field value etc to bdcdata in the exit 'EXIT_SAPLVEDB_002'. but I observed that it is not going to that screen in the debugging.
    when I try E1EDP02 with QUALF '044' it will update ship-to party's purchase order number.  so to update ship-to party's purchase order number it is going to that screen. 
    so I have used that thing to update purchase order number in sold-to party's purchase order number.
    so when it is going that screen iam changing the field name 'VBKD-BSTKD_E' to 'VBKD-BSTKD' in bdcdata.  Then it is worked.
    This is the solution I found in my time.
    Any way it is solved.  Hope it will be helpful for others who will get this problem.

  • Error message in the IDOC at item level

    Hi,
    Iam working on IDOC.when idoc failed i get the that idoc error message and displaying in the report at header level.But my requirement is to diplay the error messages at the item level.Is it possible to display the error messages at the item level?For example for IDoc number is 30000045.For this idoc number 7 line items is there like 1000,1001,1002,1003,1004,1005,1006,1007.i want error message line item wise.Kindly suggest me.
    Regards,
    Sujan

    hi sivaprasath,
    write the custme code as per your requirement so that it will do..user exit or badi .
    ~linganna

  • IDOC ORDERS02 E1EDP02 QUALF 001: Purchase Order at Item level not inserted

    Hi all,
    I try with an ORDERS02 IDoc in segment E1EDP02 with QUALF 001 to insert a customer purchase order number at item level different from the one passed in E1EDK01 QUALF 001 and I expect to insert additionally to the VBKD record for POSNR 000000 one for my item line.
    This additinal VBKD record is not inserted and I do not get this customer purchase order number in my sales order.
    Does any one know what to do?
    Thanks in advance.
    Axel

    To take over customer purchase order number on item level like the one for the ship-to-party (to treat a QUALF=001 for BSTKD like the QUALF=044 for BSTKD_E) seems to be unpossible.
    Within IDOC_INPUT_ORDERS
    LVEDAF5M: FILL_E1EDP02
    WHEN '044'.
    *- Bestellnummer des Warenempfängers -
    *- purchase order number consignee -
          PERFORM IDOC_MOVE USING E1EDP02-BELNR XVBAP-BSTKD_E D_FLAG_P-PBES.
    We need to have
    WHEN '001'.
    *- Bestellnummer des Warenempfängers -
    *- purchase order number -
          PERFORM IDOC_MOVE USING E1EDP02-BELNR XVBAP-BSTKD D_FLAG_P-PBES.
    this is calles from
    LVEDAF2U:
    *- Auftragsposition Referenzen -
    *- item reference data -
          WHEN 'E1EDP02'.
           MOVE IDOC_DATA-SDATA TO E1EDP02.
           PERFORM ZUORDNEN_ORDERS_E1EDP02.
    *-Zusätzliche Daten aus IDOC-Struktur (Kundenerweiterungen)----
    *-additional data's from IDOC (customer exit)----
           SY-SUBRC = 0.
           PERFORM CUSTOMER_FUNCTION_IDOC USING IDOC_DATA.
    This calls
    CALL CUSTOMER-FUNCTION '001'
    So IDOC-DATA-SDATA is allready in E1EDP02
    but it is not sufficient to do the call needed like stated above within EXIT_SAPLVEDA_001 since
    I expect a result in VBKD, not in VBAP, and BSTKD is not like BSTKD_E a field of XVBAP.
    In LVEDAF16, LVDEAF1C, LVEDAF27 AND LVEDAF4N the field is taken over into the screen but we have no chance to forward it to there
    and to enhance there. Last one seems most interesting since it is for VA01!
    It could be to enhance EDIT_SAPLVEDA_002 but how to forward the content to this field if it is a VBKD
    field and all VBKD fields are statically added to VBAP fields in the program and not in the dictionary.
    That would cause to append a parking field in VBAP or require to modify the code!
    Any better ideas?

  • Po number at Item level for Invoice

    Hi,
    My Invoice has 2 Line Items. Each coming from different Sales Order as a result of Collective Delivery.
    I want to Print Purchase order number at the Item level from respective Sales Orders.
    How can I trace it back, which tables would be useful?
    Regards
    Trupti Deulkar

    Thanks for All the Replies.
    I used table VBFA which gave me preceding documents, where I got Sales Orders ( Doc CAtegory C)
    Further from VBAK retrieved the PO numbers BSTNK
    This issue has been resolved.
    Regards
    Trupti Deulkar

  • PO number prints only if it is at header level not for item level

    Hi All,
    I am not able to print the PO number in my order acknowledgement and COA printout when I enter the PO number in the sales order at item level of only. It prints fine when it is at the header level.
    Please assist.
    Thank you,
    Shanu Jain

    Hi,
    BSTKD Field in the VBKD is dependent on two things . IF the Header PO Number is same as the Item number if u change at Header level it will be changed at all items level also. If both are diff then if u change the PO Number at Header level it will change PO numbers of the Items which is having same value as Header Po Number otherwise it wont change the Item PO Number .
    Ex " Order Number 1000 is having PO Number at Header Level is PO1. And the sales order is having Item 010 and 020.
    IF Item 010 and 020 is having PO1 at item level if u change the value of PO1 at header Level if will be applicable to items 010 and 020.
    If Item 010 is having Po Number PO1 and 020 is having PO2, if i change value of PO number at header to PO3 then it will change Item 010 PO Number to PO3 and Item 020 PO Number will be same as PO2.
    Try to Take The VBKD - BSTKD where Item Number POSNR is blank that means Header PO Number .
    IF u want Item Po Number then pass the item number in POSNR and get it.
    Regards,
    Srinivas.

  • Issue regarding terms of payment at item level

    Hello gurus
              I have an issue here. There are 2 materials in the sale order. 1 material has item category as TAN and the other material has item category as TANN. In the customer master the terms of payment was given as 0001, hence in the sale order at the header level i am getting it as 0001 but at the item level,  under the Billing tab, i am getting the Payment terms as A, for both the materials. So wanted to know from were does the payment terms is retrieved in the sale order at the item level under the Billing tab.
    Thanks and regards
    Sunil Kumar

    hai sunil
    You can overwrite the payment terms in the sales order (but the terms should be created before)
    While creating sales order, the payment terms is copied from the sales area data ->sales tab page
    You have another payment terms in the company code data, i,e useful for generating reports based on the company code and it is mandatory to maintain the data in the sales area data while creating the customer master
    dont forget to reward pts if found useful
    thanks & regards
    kishore

  • Asset number at the line item level

    Hello,
    to a recent client I have 2 depreciation areas - the first one is the statutory one and the second one is for the group. I have different accounts for each depreciation area and at the level of the first one the accounts are asset reconciliation accounts and for the second one the accounts are GL accounts.
    All the postings (depreciation, retirements) are made correctly in both depreciation areas except the fact that at the level of the second depreciation area (with GL accounts) the asset number is missing at the line item level.The field status group is the same for the accounts involved.
    Please, can somebody advice?
    Thank you very much,
    Claudiu

    Hi Mark,
    thanks for answering me and trying to help me. Regarding your questions - the posting on the second GL account are line by line, this landscape don't work with group of assets. This field ANLN1 is empty for this depreciation area, like I said the values are correct in asset explorer but in Fi for report reason the field is not available - that's my problem
    Hope that I was more clear this time.
    Thanks and hear you soon!
    Claudiu

  • ERLA/NORM, Header and Item Level Pricing Issue

    Dear All,
    I have an issue wherein, even though I have used ERLA for BoM Item and NORM for Subitems, in sales order Conditions, both header level and item level pricings are active.
    Correct me if I am wrong, item level pricing should get deactivated.
    Kindly let me know if there is any issue in the settings.
    The default item categories appearing in the sales document is TAQ for higher level item and TAE for subitems
    Thanks and Regards
    Adithya
    Edited by: Adi1976 on Feb 6, 2012 12:08 PM

    Item Category group for Subitems should be ERLA, not NORM.
    Sales Order
    - Item Cat Group
    - Higher I Cat
    - I Cat
    OR
    ERLA
    TAQ
    OR
    ERLA
    TAQ
    TAE
    Try & share feedback.
    Regards
    JP

  • Issue in using custom discount condition type in pricing agreement at Service Contract line item level

    Hello
    We are facing an issue while using a Z discount condition type in price agreement at service contract line item level.
    A Z Condition type has been created in ECC and assigned to the pricing procedure. This pricing procedure is downloaded in CRM and determined in the service contract.
    A condition maintenance group using this Z condition type is created in CRM and assigned to service contract item category.
    Condition records are created in CRM for this condition type/condition maintenance group for specific products along with sales org and discount percentage.
    But when the price agreement(using this condition type) is used at the item level of a service contract, the system throws errors (related to product/unit of measure and sales org, even though no issues seem to be there)and thus the price agreement is not allowed to be used.
    If anyone has worked on such kind of scenario, please get in touch, I will share more details for the same. 
    Regards
    Ankit Arora

    Dear Ankit,
    Once the pricing procedure is downloaded, please maintain the document pricing procedure at service contract header level, and maintain the customer pricing procedure at business partner sales area billing data.
    In spro, maintain the pricing procedure for the combination of sales area, document pricing procedure, customer pricing procedure.
    Please crosscheck whether the condition table is active or not.
    Regards,
    Maddy

  • Issue account assignment at item level.

    Hi Experts,
    I have an issue, because I have created a new order type that has to work the same that the one I have used as model however this new order type doesnu2019t work the same at item level in the view Account assignment. The new has the field Order as optional and in the old this field was hide. All related with account assignment at item level is different. Probably is related with the item category that is also a new one but copy from the order that we use with the other order type.
    Thank you and best regards.

    Hi,
    Are these in different servers? If so, you would need to transport the settings (say from dev. to QA server).
    Otherwise, the settings are common for all item catergories and document types... Screen variants are specific to TCodes only.
    In case this doesn't help, please clarify question some more... old doc type, item category and new doc type item category.
    Cheers.

  • How to place a delivery block at line item level from Inbound ORDERS IDoc?

    Hi EDI/ABAP Experts,
    Can anyone please tell me how to place a delivery block at line item level from Inbound ORDERS IDoc?
    I tried using exit "EXIT_SAPLVEDA_001'. But there is no LIFSP field in either of XVBEP and YVBEP structures.
    Can you guys throw some light. How to place a delivery block @ line item level on sales order from Inbound ORDERS IDoc.
    Thanks,
    Matt .

    Look into the Include: LVEDAF5A that is the only place where this exit is hit... double click on the Structures and look which structure has billling block field.. and use that..
    FORM CUSTOMER_FUNCTION_IDOC USING IDOC_DATA.
      CALL CUSTOMER-FUNCTION '001'
        EXPORTING SEGMENT = IDOC_DATA
                  DVTCOMAG = VTCOMAG
                  DXMESCOD = IDOC_CONTRL-MESCOD
                  CONTRL   = IDOC_CONTRL
        TABLES    DXBDCDATA = BDCDATA
                  DXVBAP    = XVBAP
                  DXVBEP    = XVBEP
                  DYVBEP    = YVBEP
                  DXVBADR   = XVBADR
                  DYVBADR   = YVBADR
                  DXVBPA    = XVBPA
                  DXVBUV    = XVBUV
                  DD_FLAG_P = D_FLAG_P
                  DXKOMV    = XKOMV
                  DXVEKP    = XVEKP
                  DYVEKP    = YVEKP
        CHANGING  DXVBAK   = XVBAK
                  DD_FLAG_K = D_FLAG_K
        EXCEPTIONS
                  USER_ERROR = 01.
    If you are in ECC6.0  you can also use Enhancement point : INTERPRET_IDOC_ORDERS_01 SPOTS ES_SAPLVEDA. in include: LVEDAF2U

  • PO idocs at line item level

    Hi All,
      I have a requirement to send all line items of PO as seperate idocs when it is created or changed. I am creating a output message to trigger, Purchase Order does not have output messages at item level. Is there a way i can send all items as inidividual items, by writing a routine in Output determination. Please let me know if there is an another way to do that.
    Any help would be appreciated.
    Thanks,
    Kumar

    Hi Guys,
    Could you please update on this query ? Is there any way other than filling/Creating the IDOC in BADI?
    I would like to create one IDOC per PO line item on change.
    Appreciating your views.
    Regards,
    Guru

  • Incoming Order IDOC - updating VBKD-IHREZ_E at item level

    Hi all,
    I am trying to update field VBKD-IHREZ_E at item level from an incoming Idoc with no success yet.
    Here is first exit to store requested data from the idoc ZXVEDU03
    IF segment-segnam =  'E1EDP19'.
        xvbap = dxvbap.
        MOVE segment-sdata TO lo_e1edp19 .
        IF lo_e1edp19-qualf = '001'.
          xvbap-ihrez_e = lo_e1edp19-idtnr.
          dxvbap = xvbap.
        ENDIF.
    ENDIF.
    Here is second exit to update the sales order field ZXVEDU04:
    CASE dlast_dynpro.
      WHEN '4002'.
    WHEN '4003'.
        READ TABLE dxbdcdata WITH KEY fnam = 'VBKD-IHREZ_E'.
        IF sy-subrc NE 0.
         DATA wa_tabix TYPE syst-tabix.
          MOVE sy-tabix TO wa_tabix.
         DATA wa_dxbdcdata TYPE bdcdata.
          MOVE 'VBKD-IHREZ_E' TO wa_dxbdcdata-fnam.
          MOVE zzxvbap-ihrez_e TO wa_dxbdcdata-fval.
          INSERT wa_dxbdcdata INTO dxbdcdata INDEX wa_tabix.
        ENDIF.
      ENDIF.
    ENDCASE.
    Field is not updated in sales order. I tried to put the same logic at header lever (dynpro 4002) and it does work (though all items have the same value)
    If a good soul could help, it would be very much appreciated.
    regards,
    Bruno
    Edited by: Bruno Monconduit on Mar 8, 2011 1:08 PM

    Hi all,
    actually I had to add some extra logic in the exit to go update IHREZ_E in another dynpro 5003.
    Hereafter code implemented (works fine)
    Regards,
    Bruno
    WHEN '5003'.
            DATA: lt_vbap LIKE xvbap.
            lt_vbap = dxvbap.
    changing screen to update field
            PERFORM dynpro_setzen IN PROGRAM saplveda
            USING 'BDC_OKCODE' '=T\11'.
           PERFORM dynpro_new(saplveda) USING programm_auftrag
           '4003' CHANGING dlast_dynpro.
            PERFORM dynpro_setzen IN PROGRAM saplveda
            USING 'BDC_OKCODE' '=/00'.
            PERFORM dynpro_setzen(saplveda) USING 'VBKD-IHREZ_E'
            lt_vbap-ihrez_e.
            PERFORM dynpro_setzen IN PROGRAM saplveda
            USING 'BDC_OKCODE' '=T\06'.
    back to screen 5003
            PERFORM dynpro_new IN PROGRAM saplveda
                               USING 'SAPMV45A'
                                        '5003'
                               CHANGING last_dynpro.
           PERFORM dynpro_setzen IN PROGRAM saplveda
           USING 'BDC_OKCODE' '/EBABA'.
    Edited by: Bruno Monconduit on May 25, 2011 6:32 PM

  • How to track personnel number field in item level

    Hi,
    When transaction fb50 is entered then I can enter personnel number at item level.Now I want to track that personnel number from the table.can anyone suggest which table I can find that ?
    If seen in F1 for this field it gives structure as acgl_item and the field as pernr
    But this must be getting stored in some table.I want to know that.
    Thx in advance
    Regards,
    manOO

    Well all the details of line item are stored in Line Item Table ( BSEG ) and all the details of the header are stored in BKPF.
    Hope that helps.
    Thanks,
    Nandita

Maybe you are looking for

  • Expanding borders with expanding text fields

    Hello I need help with my form please. I have a bunch of rows within a flowed subform set to western text that can dynamically expand. However depending on which object expands, the border for only that object expands and the rest of the objects are

  • Difference between memory modules

    looking to get a 2gb memory module - whats the dif betwee mod one "2GB CT477887 DDR2 PC2-4200 • CL=4 • Unbuffered • NON-ECC • DDR2-533 • 1.8V • 256Meg x 64" and mod two "2GB CT518445 DDR2 PC2-5300 • CL=5 • Unbuffered • NON-ECC • DDR2-667 • 1.8V • 256

  • Can't find textbox class - help please!

    I'm posting this again, in the hope that more people might help. I already know that the error means that the compiler can't find the class Textbox. I need to know why, because I've copied the relevant parts of the code from another app that builds f

  • [BUG] Cursor Disappears After Drag And Drop

    hi, every time i drag and drop an image out of firefox into an already open document in photoshop cs5, my cursor disappears (it doesn't change to reflect the program specific tasks like type/move/scale etc) and i have to restart the program. please f

  • Data can not inserted in csv

    Hi friends SQL> create table supplier_csv ( 2 code Number(10), 3 name Varchar2(100), 4 address Varchar2(255), 5 tin_number varchar2(25), 6 contact_person varchar2(100), 7 contact_number varchar2(50), 8 party_type varchar2(20) 9 ) 10 organization exte