IDOC to file: Increase sequence number for each item in a segment

Dear All,
I am having one scenario IDOC to file, where one IDoc with multiple items for an header in it will be sent.
In Destination structure, for each iitem segment I am creating multiple rows. I have a field(INC_NUM) in target structure where in I have to start line number from 1 for each item.
Also I have a condition - for item x or y I should only have the same line number.
TinAdvance
Swarna.
Edited by: Swarna on Oct 24, 2011 8:15 AM

Hello,
You can use the statistic function called index for your requirement. Can you give sample input/output so that we can visualize further?
Hope this helps,
Mark

Similar Messages

  • Documents Sequence numbering for each Branch (Branch as segment)

    dear Brother's
    can help me in this case
    Documents Sequence numbering for each Branch (Branch as segment)
    Each branch have an own sequence
    I implement oracle Business suite ERP for Five Branch ( KSA,INDIA,DUBIA ,JORDAN ,SYRIA )
    I want to segregate sequence numbering for each branch, sequence for (
    Sales order, invoice, purchase order, Invoice)
    Is there a possibility to link sequence with any segment I define it in COA like Branch
    Note: I work in single Operating Unit

    Hi,
    You might be able to adapt this solution to work for your case: https://acrobat.com/#d=*2slxPLc6c-H0U449vA4jQ. It's more about page numbers for different Master Pages, but you may be able to tie it to the different data nodes.
    Niall

  • Po number as assignment number for each item in MIR4 using substitution

    Hi All,
    Using substitution rule in GGB1 iam getting assignment number as PO number only for GL documents.
    But i need the same PO number as assignment number for cleared item documents...
    iam getting YYYYMMDD field as assignment number for each line item....but i need PO number...
    how can i achieve it...
    pls help experts...
    Regards
    Ram
    problem solved
    Edited by: gajeramesh on Feb 3, 2010 2:25 PM

    Hi,
    After creating the items you can write your own text upload program to upload the item texts. Note it cant be uploaded through BAPI or BDC.
    Search the forum for SAVE_TEXT FM, you will get lots of examples for this.
    Also Read the FM documentation for the above FM in SE37.
    Regards
    Karthik D

  • How to execute a same sequence number for the resulting dynamic rows

    Hi friends,
    I have a sequence and trigger(which will fire id for each and every row insert).
    My scenario is, If i update more than 5 rows at a time means, i need to set a same sequence number example(1) for all the 5 rows.
    Next time, if i update another 5 rows means, then i need to set a same sequence number (i.e) 2 for the next 5 rows.
    So, my updation will be dynamic(may be 2 ,5, 10 rows at a time), But i need to set a same sequence number for one of the column for all the rows that i update.
    Next time, if i update another set of rows means, then i need to set only the next sequence number(i.e) 2(assume that previously updated sequence for the before set of rows is 1) for another set of rows.
    Like that sequence has to update in a sequential manner for more than one set of rows in that column.
    How to achieve it friends.
    example
    id-----------------name
    1-------------------A
    1-------------------B
    1-------------------C
    1-------------------D
    1-------------------E
    2-------------------D
    2-------------------E
    2-------------------F
    2-------------------G
    3-------------------H
    3-------------------IBrgds,
    Mini

    Hi,
    You forgot to mention your version.
    If you want a trigger based solution, then in 10g you need two triggers
    1. A statement level trigger that takes sequence.nextval into a dummy variable that will not be used.
    2. A for each row trigger that uses sequence.currval.
    In 11g you should be able to write a single, composite trigger.
    If you want a solution with no triggers, it could look something like
    SQL> create sequence s start with 10;
    Sequence created.
    SQL>
    SQL> create or replace function s_wrapped
      2  return number
      3  as
      4     v number;
      5  begin
      6     select s.nextval
      7     into v
      8     from dual;
      9
    10     return v;
    11  end s_wrapped;
    12  /
    Function created.
    SQL> create table tab1 as (Select level x, cast(null as number) y from dual connect by level <= 5);
    Table created.
    SQL> update tab1
      2    set y = (select s_wrapped from dual)
      3   where x <= 3;
    3 rows updated.
    SQL> commit
      2  /
    Commit complete.
    SQL> select *from tab1
      2  /
           X          Y
           1         10
           2         10
           3         10
           4
           5
    SQL>Regards
    Peter

  • How do I print an increasing consecutive number on each subsequent printout

    how do I print an increasing consecutive number on each subsequent printout in pages?

    This was for Pages '09.
    http://www.freeforum101.com/iworktipsntrick/viewtopic.php?t=182&mforum=iworktips ntrick
    The problem with doing it in Pages 5 is the bad search and replace which doesn't let you search for and replace invisibles.
    Peter

  • Screen Sequence number for MM01 T.Code

    Hi,
    Do we have any screen sequence for MM01 T.Code ? If Yes, Can you tell me the screen sequence number for MM01 and how to find it for other T.Codes also?
    Thanks in advance
    Pavan

    Hi,
    Follow this path
    SPROIMGLogistic generalMaterial masterConfiguring the Material MasterDefine Structure of Data Screens for Each Screen Sequence
    21 will be the u201CStd ind.(short) tab pagesu201D
    In this if you double click on u201CData screensu2019 in that u201CSub screensu201D if you click on that  you can find the all screen sequences for material master, program and screen number all you can find there
    Regards,
    Pramod

  • The operation can't be completed because some items had to be skipped. For each item, choose File Get Info, make sure "Locked" is deselected, and then check t

    The following error comes up when I try to install the updated Firefox:
    "The operation can’t be completed because some items had to be skipped. For each item, choose File > Get Info, make sure “Locked” is deselected, and then check the Sharing & Permissions section. When you are sure the items are unlocked and not designated as Read Only or No Access, try again."
    When I follow the instructions in the error message, it shows that my user name has read and write access. There are a couple other items that are read only. I tried to change this to read and write, but the Sharing and Permissions options are greyed out and will not let me change them. What is the work around for this? I would really like to install the new firefox.
    Thanks.

    Hello,
    Certain Firefox problems can be solved by performing a ''Clean reinstall''. This means you remove Firefox program files and then reinstall Firefox. Please follow these steps:
    '''Note:''' You might want to print these steps or view them in another browser.
    #Download the latest Desktop version of Firefox from http://www.mozilla.org and save the setup file to your computer.
    #After the download finishes, close all Firefox windows (click Exit from the Firefox or File menu).
    #Delete the Firefox installation folder, which is located in one of these locations, by default('''This will NOT delete profile info such as bookmarks and history'''):
    #*'''Windows:'''
    #**C:\Program Files\Mozilla Firefox
    #**C:\Program Files (x86)\Mozilla Firefox
    #*'''Mac:''' Delete Firefox from the Applications folder.
    #*'''Linux:''' If you installed Firefox with the distro-based package manager, you should use the same way to uninstall it - see [[Installing Firefox on Linux]]. If you downloaded and installed the binary package from the [http://www.mozilla.org/firefox#desktop Firefox download page], simply remove the folder ''firefox'' in your home directory.
    #Now, go ahead and reinstall Firefox:
    ##Double-click the downloaded installation file and go through the steps of the installation wizard.
    ##Once the wizard is finished, choose to directly open Firefox after clicking the Finish button.
    Please report back to see if this helped you!
    Thank you.

  • Purchase order number for each postings with FBL3N

    Hello
    With tcode FBL3N, I need to get all the postings on expenses accounts. Additionally it is possible to get more information on the postings from the orginal paper invoice. It shall be also more convenient to get the purchase order number walk trhough SAP with it. Then is it possible to get the purchase order number for each postings with FBL3N?
    thanks for inputs
    sb

    Hello,
    Could you please add field BSEG-EBELN as a special field in FBL3N (from
    menu path Settings -> Special fields).
    Then, select the Purchase order field again from "Change Layout"
    (Ctrl+F8). Now this field is available for display variants, it has the
    technical name 1-U_EBELN and the description 'Purchase Document'.
    The other field has the same description but as technical name
    '1-EBELN'. When you create a display variant be aware that you select
    1-U_EBELN and not 1-EBELN.
    *******Please also refer to attached notes 215798 and 984305.
    Best regards, Hana

  • Print Multiple copies of report, and resetting Page number for each copy.

    Dear frnds!
    i am using developer 6i reports i have a problem.
    i want to Print Multiple copies of report, and resetting Page number for each copy" that is 4 copies of an invoice is required
    1 - for user copy
    2- gate copy
    3- accounts office
    4- office copy
    any body please tell me the solution "i am using oracle 9i and developer 6i"
    Thanx
    Ibrar

    Hi,
    I was wondering if you were able to get your multiple copies working? Below is what I have so far, just trying to get it to work before changing the actual template.
    <?for-each-group@section:R5542520/Pick_Slips_Detail_Lines_S3;PickSlipNumber_ID260?>
    <?variable@incontext:G1;R5542520/Pick_Slips_Detail_Lines_S3;PickSlipNumber_ID260?>
    <?for-each@section:xdoxslt:foreach_number($_XDOCTX,1,3,1)?>
    HEADER
    PSN: <?$G1/Pick_Slip_Number_Display_ID54?>
    PSN Detail: <?$G1/PickSlipNumber_ID260?>
    Page 1 of 3
    <?start:body?>
    BODY
    <?$G1/LineNumber_ID6?>
    <?end body?>
    FOOTER
    <?end for-each?>
    <?end for-each-group?>
    XML:
    <R5542520>
    <Pick_Slips_Detail_Lines_S24>
    <Header_Custom_Section_S24>
    <Pick_Slip_Number_Display_ID54>123456</Pick_Slip_Number_Display_ID54>
    <PickSlipNumber_ID260>123456</PickSlipNumber_ID260>

  • Return to vendor via delivery, customer number for each vendor?

    Hi
    We wish to use return materials to Vendor via delivery process
    addition to required configuration, we need to maintain Customer number in Vendor master
    In out plant we have more than 500 Vendor masters, do we need to create customer number for each vendor? or can we create a generic customer ????
    Business has a concern on creating customer for each vendor since number is huge, Sales guys may get confused with these numbers
    Please suggest a way out
    Thanks

    Thanks Jurgen for the reply
    We have Vendor Work flow setup in the system. Which means when ever vendor master is changed [Return indicator ticked] workflow kicks off which means it goes for approvals. This is why we dont want to go for tick as and when needed. When ever there is a return, return to vendor must be ticked, it will go for approval etc so it slows the process
    we are thinking if we can achieve through data load before SAP GO-Live so that users able to return without any delay
    NOTE 447070 says 'the automatic creation of the required customer data is not supported in the data transfer'
    this is related to automatic customer create isnt it
    i was thinking as below
    --> Create Ship-to's for all vendors
    --> Load vendors via LSMW [along with return to vendor ticked and customer number(created above)]
    Tested in SAP
    created ship-to
    Created vendor with above customer number
    Do you see any issue?
    Thanks

  • Can't make a selection of my pathes even if i have set a program change number for each one.Why is that happening?

    Hi everybody!
    I send program change messages from my midi controller and the messages are accepted by mainstage 3 as shown in the midi message window,but i can't make a selection of my pathes even if i have set a program change number for each patch.Why is that happening?
    I use a novation SL mki or a KORG Triton Le or a m-audio axiom 49 as midi controllers.The program change messages are transmitted by all the devices i mentioned above and shown as received in the midi messages window of mainstage 3.
    Has anyone the same experience?

    Hi
    Have you selected the correct device as the Program Change device and MIDI channel in the Concert Inspector?
    CCT

  • Sequence number for opportunities

    Hello,
    My customer needs a sequence number for opportunities... So I can create a custom field but is there a way to automatic generate a number to fill it ? or for that matter a sequence ?
    Txs.
    Antonio

    Antonio, this functionality is not available at this time. This could be done using a custom web service program.

  • Find maximum document number for each document

    HI All,
               How  to find date wise maximum document number for each document (purchase,sales,Finance) .
    Thks
    Shailesh

    Hi Shailesh,
    I am assuming you have data already selected.
    Once you select the data, sort internal table as follows.
    sort itab by doc_type descending date.
    delete adjacent duplicates from itab comapring doc_type.
    This will give each latest document no.
    Hope ti will help you.
    Regards,
    Anil

  • Change fpla-rfpln for each item in the user_exit_move_field_to_fpla

    Hi,
    I used VA41 transaction to create a sale order (auart = u201CXXXXu201D) and i would like assign in the u201Cuser_exit_move_field_to_fplau201D a calendar number (fpla-rfpln) in my sale document, for each items line.
    But the program is passed on the u201Cuser_exit_move_field_to_fplau201D only for the configurable post (vbap-posnr = u201800010u2019) !!!!
    How can i do to go in this USER_EXIT for all items line and assign a calendar number? It is possible???
    Thanks
    Titou.

    Hello Titou,
    I don't know for your special case (this transaction) but in a user exit you can have access to global variables by using field-synbols.
    Declare a constant like this:
    constants : c_program3(30) TYPE c VALUE '(NameOfTheProgram)t_data'.
    You can dynamic assign of fiel symbols to get this global variable in your user exit.
    field-symbols : <k> type any,
                    <l> type any.
      ASSIGN c_program3 TO <k>.
      ASSIGN (<k>) TO <l>.
      if <l> is assigned.
      endif.
    So if in your program you have the all your items stored in a global variable, you can then modify all of them.
    Hope it helps.
    Olivier

  • SD - Accounting document line items are generating for each item

    Hi all of you,
    We have done account determination for SD. Accounting documents are also generating, but with in the invoice accounting document, number of line items are generating for each item with in the sales order, standard invoice type is F2 like -
    Item 001 - X Material
    Item 002 - Y Material
    Item 003 - Z Material
    The accounting document is -
    Line Item 001 - Customer Ac Dr
    Line Item 002 - Discount A/c Dr
    Line Item 003 - Sales revenue
    Line Item 004 - Discount A/c Dr
    Line Item 005 - Sales Revenue
    Line Item 006 - Discount A/c Dr
    Line Item 007 - Sales revenue
    Line Item 008 - VAT
    Even, in my experience I did not find this type of entry and the sales revenue and discount accounts are same with in the COA and is posted with in the plant.
    Please give me your valuable suggestion to rectify the above issue.
    Regards,
    Ramki
    Edited by: Ramki on Nov 5, 2009 10:06 AM

    Dear Ramki,
    This is SAP Standard. System generates Accounting document line item for each Line items in Invoice.
    This is standard & also required bacuase say you have different Material types in single Invoice (e.g.Material & Service items, Trading Goods, etc). The valuation class assigned to these Material Types may be different & you might want to post revenues from these Line items in different GL Accounts.
    Hope this helps. .
    Thanks,
    Jignesh mehta

Maybe you are looking for

  • How do I sync mail SENT from other devices onto my iPad?

    I am on ipad mini, iOS 6.0.2 and using yahoo business mail with IMAP settings. In my Sent box I can only see mail sent through the ipad but not mail sent through other devices. On my Android I can sync Sent mail just like I can sync my in box. Can so

  • HTML Tags. Not able to store all the tag value

    Hi Guys, I am not able to Store the tag values with the program below. When it goes to read the second TAG the first TAG value is null or lost. <html> <head> <META NAME="name1" CONTENT="content1"> <META NAME="name2" CONTENT="content2"> <META NAME="na

  • Difficulty with Licensing Android apps developed with Flash CS6

    Hi, I'm heading down many a blind alley with this one. I have developed an Android app using Flash CS6 and it is ready to be published on Google Play. However, as it is a paid app, it is strongly advised to license it to protect it. There is a bit of

  • DVD SP Picture Loss

    I'm having trouble maintaining picture quality after importing into DVDSP. Two areas of loss include: fast motion sequences and the beginning of segments that also have motion graphics after black slug. Tried all different variations in compressor. I

  • Adding Script to a Button?

    Is there a way to add JavaScript to a button when creating an Interactive PDF in InDesign (CS6)? This Interactive PDF is being turned over to other developers, who need to tack on a Certificate/Completion process, which is called to from a script tha