Adding Values of same line item number

Hi Experts... please help me on my issue below...
I have this strucutre of my target message.
Line_item (1..n)
...Line_itemno (1..1)
...Material_no (1..1)
...Qty (1..1)
The line item no can be as follows...
10
20
30
31
40
50
My problem is... i need to combine values for 30 and 31, at the same time i need to add the qty of the both... so for the sequence above, my target message should only contain 5 line items, with line item 30 as the combination of line items 30 and 31. Can I achieve this using standard functions?
Please help.

Follow this mapping.
For Line Item parent node use this.
http://www.flickr.com/photos/28929439@N06/4405415707/sizes/o/
For Qty element mapping use this
http://www.flickr.com/photos/28929439@N06/4405415711/sizes/o/
make both the Line_itemno & qty element in the source to the highest context level.
Use this UDF to sum-up the quantity of line items. UDF type shoudl be context.
int sum=0;
for(int i=0;i<var1.length;i++)
sum = sum+ Integer.parseInt(var1<i>);
result.addValue(sum);
~SaNv...

Similar Messages

  • Line item number change

    i am creating delivery w/r to order, where once of my line item (line item-100 in order) is missing in delivery. and the item (line item-110 in order has taken the place of line item 100). i want to copy the same line item number from order to delivery, so if some item is missing then i can find it out line,, in this case line item 100 is missing in delivery but due to the fact that line item 110 as taken the place as 100 in delivery i am not able to find.
    plz guide as how to maintain, the same line item number from order to delivery to billing

    Hi,
    You can maintain these settings in Copy Controls from Delivery to Order (VTLA), IN header Details, you have a Tab Control Data, in which you can check "Copy Item Number", this will copy the item number from the preceding document to the next document.
    Try to replicate the same in your QAS and do update the same if it is helpful
    Regards
    Vamsi Javaji.

  • BAPI_SALESORDER_CREATEFROMDAT2 Purchase order line item number

    Hi Freinds,
    I have small issue using the function module "BAPI_SALESORDER_CREATEFROMDAT2" , it is creating incomplete sales orders when the Saleorder line item number and POline item number are different.
    Example:
    If i assign the same value like "000010" for ptb_items-itm_number,ptb_items-po_itm_no it works fine and sales order doesn't have any incomplete log.
    but when i have different values like "000010" for   ptb_items-itm_number and "000123" for ptb_items-po_itm_no. both the cases all other information is same.
    Could anybody helps me to fix this problem so that i can avoid creating incomplete sales orders.
    Thanks for the quick reply and help.
    Regards,
    Praveen

    Hello Praveen
    The items structure BAPISDITM has a field <b>PO_ITM_NO</b> (Item Number of the Underlying Purchase Order) which most likely links the two numbers together.
    Regards
       Uwe

  • Line item number per invoice

    Hi Gurus,
    i need to display the line item number in the report as per the FB03 tcode per a document
    i have a query on a multi provider which includes 0FI_AP_4(FIAP) and 0FI_TX_4(FI TAX) cubes
    iam not getting the correct lineitem value as per FB03 tcode
    how to get this value in the report
    Please provide inputs
    Thank you

    Hi,
    0FI_GL_4 extractor pulls data from BSEG table as well as FB03 does.
    Check if the data from this extractor suits your requirement.
    Regards,
    Tiago.

  • Line item number and ledger item number posted differently

    Hi Friends ,
      I have a BAPI for posting the documents in SAP from another system.This BAPI is using the standard BAPI -  'BAPI_ACC_DOCUMENT_POST' to post the documents.But when I post the document using this BAPI the line item number and ledger item number in the document are posted differently. ie . for line item no 1 ledger item is 24 .But when I am posting it directly it is same ie for line item no 1 ledger item no is also 1.Lot of other programs in our R/3 system is dependent in this logic.What could be the parameters in BAPI that could affect line item and ledager item ? Can anybody help me in finding out the reason for this ?
    Thanks in advance ,
    Joby

    Hi ,
    Anybody can help me on this issue ?
    Thanks in advance ,
    Joby

  • Cumulative amount in the same line item for the same account

    Hi
    I have an account which appears more than once in the same accounting document.Can I cumulate the amount in the same line item.
    IF it's possible, please how can i do it.
    Thanks in advance

    Hi Maher,
    Assumption:
    You have an accounting document in which more than one line item is there with the different amount. All the other details of the line items are same.
    Solution:
    If you want to make it one line item, key the amounts as zero in other line items and add the value to a single line item.
    Warm regards,
    Murukan Arunachalam

  • GR Doc# and GR Line Item Number

    Hi All,
    We have custom defined infocube actually WM-stocks.Now our requirement is to add GR Number and GR line Item Number. can be these be added to Infocube or should we go for ODS? any help from experts?
    Data has been loaded from generic datasource which is based on LQUA table.
    regards

    Hi,
    We implemented just the opposite:
    A cube for line items, an ODS for header data which didn't went to the cube (I mean those data that cannot be calculated by summing up item data).
    If we need summary data from ODS, we use RRI.
    Everything depends on a level of details you need. In our case we needed analysis on item data.
    Best regards,
    Eugene
    Message was edited by: Eugene Khusainov

  • UDF for Line item number

    Hi All,
    Currently i'm working on a EDI2JDBC scenario. we have a field called LINE_ITEM_NUMBER at the target side. The incoming EDI signal doesn't contain the line item number and at the target side for every line item we need a create line item number. Lets suppose the incoming signals contains 3 line item number then at target side the value for LINE_ITEM_NUMBER should be 1,2 and 3. Can i achieve this functionality with any standard function or do i need to write an UDF? Can anyone provide the code for UDF?
    Your hekp is highly appreciated.
    Regards
    Faisal.

    Hi Faisal,
    The Below mapping will work for your requirement..
    Source(LineItemNumber)--->Index(Initial Value = 1, Increment = 1 )------\
                                                                             then
    Source(LineItemNumber)  ---->  Exisists      ----->  If                     ------>Target(LineItemNumber)
                                                                             else
                                                      Constant[0] ------------/
    If Input is
    <Source>
       <Line>aaaa</Line>
       <Line>bbbb</Line>
       <Line>cccc</Line>
    </Source>
    Your Target will be Like This
    <Target>
       <Line>1</Line>
       <Line>2</Line>
       <Line>3</Line>
    </Target>
    I have Tested That Mapping.. Working as shown below.
    Let me know For any clarifications..
    Regards
    Jyothi A.

  • CDPOS - Line Item Number

    Hi
    Table CDPOS gives the changes made onto a SO Line Item. But it has no infomormation on which Line Item Number.
    Still, the program RVSCD100 gives the Line Item Number for that change.
    I could not find out from where it picks the Line Item number!
    Could anybody help me how to find the Line Item Number for the records in CDPOS?
    Please help..
    Richard

    the field table key in CDPOS has  the concatenated key field value.
    If you are refering for vbap table:
    for example
    MANDANT    100
    OBJECTCLAS VERKBELEG
    OBJECTID   0000000001
    CHANGENR   0000028225
    TABNAME    VBAP
    TABKEY     1000000000001000010
    FNAME      NETPR
    Here table key
    client + sales order no + item no
    derive the item no from there

  • Clear line item number

    hi experts,
    My requirement is to clear line item number(zeili) so that it can't be seen in the form output.
    but after clearing zeili in print program , it is showing '000' in print o/p.
    I don't want to show anything in print o/p of the form.
    Plz tell me how to remove this '000' from the output.
    Replies will be rewarded.
    Thanks in advance.
    SM

    Hi,
    Use &itab-fld(I)& which suppresses the initial value of the field. Chk out, it may work.
    Regards,
    Narendra.
    Reward points if helpful!!

  • Line item number in DMEE structure

    Hello Gurus!
    I'm configuring DMEE structure for payment medium file. One of the requirements for this payment medium is the field with line item number of the payment order. This should be the field with incremental value starting from 1 till n, where n equals the number of payment orders in the file.
    I've reviewed the data retrieved by the following structures FPAYH, FPAYP as well as FPAYHX using debugger but could not find anything useful for this purpose. Could you suggest, how to solve this issue? Is there any standard field that I've overllooked or should I create some function module?
    Thank you in advance!

    Patvin,
    To include line item number in PO printout, you can take the daata from this:
    table: EKPO
    field: EBELP
    Discuss this requirement to your ABAPer.
    reward if useful

  • F8 Pro Forma for free goods - value in F8 line item to equal VPRS cost

    Hello,
    I would like to configure the following scenario:
    FD sales order created with KLN item category
      LF delivery created and processed
      F2 billing invoice created (no charge)
      F8 pro forma invoice created (line item value to equal line item cost)
    I have already configured this to work properly for regular sales orders and the values copy from the order as specified in the VTFL copy control settings, but I can't figure out how to get the above situation working.  Any help would be greatly appreciated.
    Thanks,
    Andy

    Check OSS Note 33258 - Processing free-of-charge items is of help to your scenario.
    Regards,

  • Freight Calculation based on the net value of the Line item

    Hi SAP Gurus,
    I have one requirement for Freight calculation(Sales order is created through an IDOC) :
    In the idoc,we will receive a freight dollar amount - which will be the total amount of freight.(example 100)
    We will also receive sales dollar for each line item ,which is then passed to the pricing procedure, for a total amount of sales for that Sales order.
    (examples below, for a total of 1500)
    The 100  is to be posted to a freight G/L account.
    The 100 is further divided by each profit center  of the materials on the Sales order.
    The freight is split out amongst the  profit center , based on the net value of the line item.
    Freight value to be allocated = Line item value/total value of the sales order * Freight amount.
    Total of the sales order =1500
         Line item value     Freight value calculation     Profit center
    Material A:      800          800/1500*100  = 53     Profit center A
    Material B:     500          500/1500*100  = 33     Profit center B
    Material C:      200          200/1500*100  = 13     Profit center C
    Please let me know how to achieve this functionality in pricing procedure or what changes i need to make in Freight condition type.
    Thanks in advance,
    Bhakar Saha

    Were you able to resolve this issue of allocating freight costs to line items/profit centers using the net value of the line items?

  • Particular sales order of the same line item hv created multiple production

    sir,
    I am having a problem in MD04. A particular sales order of the same line item hv created multiple production order.and continously planning is going on... I didn't get why it happens.
    Will u please suggest me what should i do in this case?
    Regards
    Meenu

    Hello sir,
    yes, ofcourse, for the finished material have the BOM with some semifinished productes which are to be produced .
    In co02 , we can go through the collective production order.
    One more thing is that, in the multiple production order date(scheduling date) shows in forward(future dates).
    For ex:09-05-2010.
    Regards
    Meenu

  • Purchase requistion number and line item number linkage with work order opr

    Hello,
    I want to know what is the link between Purchase requisition number along with its line item number with work order operation number.
    For the non stock component assign to Work order operation ( say operation 10) the PR get generated for that component which assign to that operation .
    in which table we can find that PR as input and output as Work order number along with its operation .
    In AFVC table if we put PR as input then it does not show any entry for that PR number?
    Regards
    Vaibhav

    HI Vaibhav,
    If you have the Work Order Number AUFNR, then you can get AUFPL from AFKO.
    Then Pass AUFPL to AFVC table to get BANFN(Purchase requisition number) and BNFPO(Item number of the purchase requisition in the order).
    Regards,
    Ravi

Maybe you are looking for

  • EMac hard drive dead?

    My eMac was running slow ... reeeeeeeally slow. Spent ages pondering every mouse click. Just opening folders was agony. I tried the usual round of fixes, some of which helped a little, but after a few hours' use, things would slow down again. Permiss

  • Numerical order of photos in Elements 6

    I want to transfer photos from My Pictures folder to named folders in Photoshop Elements 6 Organizer. When I Get Photos, the Getting Photos dialog shows the photos in numerical order as they are transferred. But when they are displayed in Organizer a

  • Artist missing, yet somehow there

    I have a song on my ipod classic 80gig, it's on there, I can find it under the songs, purchased, and search menus, but the artist doesnt appear on the artist menu. It's a Neil Diamond song. If I search "Neil Diamond," the song appears, but I can't fi

  • HT1414 error (-1) keeps poping up on update

    I need help i have a ipod touch with the ios2.2 software and when i try to update it  an error message pops up and says an unknown error ocurred (-1). how do i update successfully?

  • Help needed with fillable form

    I have created a form in Adobe, which was very easy.  However, when it was emailed out to other users, several commented that they couldn't make revisions to it.  Most of the users had either Flash or Reader, not many having Standard or Professional.