Segment Code against subledger line item

Hi,
We have uploaded cutover data in production. While uploading we entered a profit center against the conversion account; which in turn showing a segment code. This assignment could be found against the recon account (in GL view) due to doc splitting rule. But the same is not reflected against the sub ledger code.
Is there any program, to fetch these account assignments against customer / vendor line items?
Thanks & Regards,
Ajay

Hi All,
Thanks for your valuable replies.
My requirement is met. Please find the final code:
======================
WHEN '2LIS_11_VAHDR'.
loop at C_T_DATA into WA_MC11VA0HDR.
L_tabix = sy-tabix.
*break-point.
SELECT PERNR FROM VBPA INTO WA_MC11VA0HDR-ZZPERNR WHERE VBELN = WA_MC11VA0HDR-VBELN
                    and PARVW = 'Z2'.
modify C_T_DATA from WA_MC11VA0HDR index l_tabix.
ENDSELECT.
SELECT VBELN POSNR ABGRU FROM VBAP INTO WA_SO_DOCNO
WHERE VBELN = WA_MC11VA0HDR-VBELN.
APPEND WA_SO_DOCNO TO LT_SO_DOCNO.
SORT LT_SO_DOCNO BY VBELN POSNR ASCENDING.
DELETE ADJACENT DUPLICATES FROM LT_SO_DOCNO COMPARING VBELN.
CLEAR WA_SO_DOCNO.
Read table LT_SO_DOCNO into WA_SO_DOCNO with key VBELN = WA_MC11VA0HDR-VBELN.
    RESULT = wa_sy_docst-/BIC/OIYHSTAT.
WA_MC11VA0HDR-ZZABGRU = WA_SO_DOCNO-ABGRU.
modify C_T_DATA from WA_MC11VA0HDR index l_tabix.
ENDSELECT.
*ENDSELECT.
ENDLOOP.
========================
It works even with following code as suggested,
+SELECT X FROM VBAP INTO WA_MC11VA0HDR-X+
+WHERE VBELN = WA_MC11VA0HDR-VBELN+
++and      posnr  = '00010'.
+but the problem here is '00010' will not be there always in the SO, sometimes it will be directly 20 or 30 or etc
Closing the thread.
Points assigned.
Thanks & Regards,
Bhadri M.
Edited by: Bhadri M on Dec 29, 2011 2:28 PM

Similar Messages

  • More than one VAT code on one line item?

    Hello,
    Running ECS SRM 5.0.
    Is it absolutely impossible to set more than one VAT code on one order line in a SC or PO?
    Can this be acomplished by using a user exit or anything?
    This demand comes from a public sector company which pays different VAT dependent on what they use as account assignment. In some orders when split account assignment is used, it might be two different VAT codes on the same line.
    rgds
    GAR

    Hi
    Which SRM version are you using ?
    As far as i know, this is standard SRM functionality as it not feasible to have multiple VAT codes against one line item.. This is not possible .. Please confirm the same with SAP by creating a Customer OSS message.. Do let me know...
    However this is possible by making the code as per your business requirments using BBP_DOC_CHANGE_BADI.. However, since i have not tried this.. You need to try this yourself..
    Hope this will answer your query..
    Regards
    - Atul

  • Applicability of Two Tax codes in one line item

    Dear Experts
    How can I set two tax codes (one is VAT & other is Service Tax) in one line item.

    Dear Parikh,
    You can't set / maintain 2 tax codes for one line item in PO.
    You can craete the new tax code and maintain the values in tax code (TAXINJ)
    If you are using the TAXINN then maintain the condition record as per requirement.
    Regards,
    Umesh

  • P.O. with different Tax codes for each line item.

    Hi
    I would like to know how the IV has been done for the P.O. with differnt tax codes for each line item. Since in MIRO at header level we can select only one tax code.

    Hi
    Raju,
    It means we can post only one invoice at time i.e.for line item same taxcode is there.
    e.g. If line item 10 has tax code A1, 20 has A2 then on header i can only select either A1 or A2 tax code & post invoice of that line item.

  • Invoice receipt paid against wrong line item on PO

    We have a purchase order with two line items that have an invoice posted and paid against it that should have gone to different line items in the PO.  These will never clear because the GR was completed and posted on the correct line item, now we have invoice receipts greater than goods receipts, and ordered quantity on the two line items erroneously.
    How can I move that invoice and payment to the correct line item?  If the check was paying more than that one invoice I am hesitant to reverse the payment document and the invoice receipt to move it all.  Can I post subsequent debit/credit against the line items?  Can I process a debit/crtedit note to clear this up?
    What is the best solution

    When I go in and try to post a subsequent credit, it is trying to post against the GR/IR account.  It should not choose that account, it should all go against the vendor account.
    It is coming through like this:
    210210    Vendor Acct    9576.54
    650000    Supplies          -7274.36
    24910          GR/IR              -351.18
    650000    Supplies          -1951.00
    I need the entire amount to post to supplies.  Why line 1 went correctly and line 2 split I don't understand
    I have 2 line items on the PO/Invoice I am trying to move
    One line item for: 7274.36 and the other for 2302.18
    Can anyone help?

  • Substitutions field Tax Code MWSKZ in Line Item

    I need to do substitution for field Tax Code MWSKZ at line item when doing FI posting. However, I cannot find this subtitution field in OBBH Boolean class 009.
    How can I solve this? Is there any BADI or user exit that serve the same purpose?
    It's kind of urgent as I tried to find the solution for few days but I couldn't get any.
    Edited by: Irene Sam on Sep 24, 2008 3:07 PM

    hi,
    goto gs01 transaction,give some name to ur step.
    give the table name and field name.
    then u can create a specific value set for that field.
    save.
    now u can use this set to define conditions for ur fields in obbh transaction.

  • Segment  Field in  vendor line item

    Hello Guru,
                        we have activated new gl functionality with doucment splitting . but we are not able to view the segement filed in vendor line item and customer line item in different reports.
            how we can pool that field in variouse report in instead using Zreport.
    Thanks and Advance
    Laxmi narayan

    Hi,
    whe we are  entering  the vendor line item we can enter the Fund and fund Center, our segment will be derived from the fund ( we have done it in a substitution, if the segment is empty we derive it from the fund) and in BSEG table we can see that the segment is filled correctly. But we cannot change it because this fields segment don't appear in the screen. We have reviewed the SAPMF05A 0332 Screen (screen that we can see when we are entering the vendor line item and we push in "More data" button) but the segment field don't appear.
    Thanks in advance,
    Sap Userr

  • Problem in fetching the code for the line item

    Hi,
    I am working on a report in which to display the values corresponding to the line item of a PO.
    For, ex, if there are 3 line items 10,140,150 and their condition values such zing,zgrd,zbrd are the condition types consist of different values depending on the line item i.e. 10,140,150.
    My problem is when i execute the code the data of 1st line item is correctly fetched but the rest 2 line item data is pasted as it is. only the main pricre changes and the code for zing,zbrd,zgrd remains same as it is in the first line item 10.
    plzz proivde me guide lines how to solve this problem.
    Here's d code:-
    DATA : vspl LIKE konv-kbetr.
    DATA : vspl1 LIKE konv-kbetr.
    DATA : vkwert LIKE konv-kwert.
    DATA: VSPL2 LIKE KONV-kbetr.    "ZING COST
    DATA: VSPL3 LIKE KONV-kbetr.    "ZGRD COST
    DATA: VSPL4 LIKE KONV-kbetr.    "ZBDL COST
    LOOP AT item.
        SELECT kbetr FROM konv INTO item-rate  WHERE knumv = header-knumv AND kposn = item-ebelp
         AND ( kschl = 'ZP00' OR kschl = 'P001' OR kschl = 'PBXX' OR kschl = 'P000' OR kschl = 'PB00' OR kschl = 'ZING' OR kschl = 'ZBRD' OR kschl = 'ZGRD').
          MODIFY item.
       ENDSELECT.
      ENDLOOP.
      LOOP AT item.
        SELECT kwert FROM konv INTO vkwert  WHERE knumv = header-knumv AND kposn = item-ebelp
        AND ( kschl = 'ZP00' OR kschl = 'P001' OR kschl = 'PBXX' OR kschl = 'P000' OR kschl = 'PB00' OR kschl = 'ZING' OR kschl = 'ZBRD' OR kschl = 'ZGRD').
        ENDSELECT.
      ENDLOOP.
    CLEAR : vspl , vspl1 , vspl2 , vspl3 , vspl4.
      LOOP AT item.
        SELECT kbetr FROM konv INTO vspl  WHERE knumv = header-knumv AND kposn = item-ebelp  
       AND  kschl = 'ZCOM'.
        ENDSELECT.
        SELECT kbetr FROM konv INTO vspl1 WHERE knumv = header-knumv AND kposn = item-ebelp
        AND  kschl = 'ZBR1'.
        ENDSELECT.
    *******************Begin - new code added on 14.01.2009******************
        SELECT kbetr FROM konv INTO vspl2 WHERE knumv = header-knumv AND kposn = item-ebelp
        AND  kschl = 'ZING'.
        ENDSELECT.
       SELECT kbetr FROM konv INTO vspl3 WHERE knumv = header-knumv AND kposn = item-ebelp
       AND  kschl = 'ZGRD'.
        ENDSELECT.
       SELECT kbetr FROM konv INTO vspl4 WHERE knumv = header-knumv AND kposn = item-ebelp
       AND  kschl = 'ZBRL'.
       ENDSELECT.
    *******************End - new code added on 14.01.2009******************
      ENDLOOP.
      LOOP AT item.
        item-rate  = item-rate + vspl + vspl1.
    *******************Begin - new code added on 14.01.2009******************
        item-rate1 = item-rate1 + vspl2.
        item-rate2 = item-rate2 + vspl3.
        item-rate3 = item-rate3 + vspl4.
    ********************End - new code added on 14.01.2009*******************
        MODIFY item INDEX sy-tabix TRANSPORTING rate.
    *******************Begin -11`` new code added on 14.01.2009******************
        MODIFY item INDEX sy-tabix TRANSPORTING rate1.
        MODIFY item INDEX sy-tabix TRANSPORTING rate2.
        MODIFY item INDEX sy-tabix TRANSPORTING rate3.
    *********************End - new code added on 14.01.2009******************
      ENDLOOP.
    PLZ PROIVDE ME GUIDLINES HOW TO SOLVE THIS PROBLEM .
    Edited by: ricx .s on Jan 19, 2009 10:16 AM
    Edited by: Vijay Babu Dudla on Jan 19, 2009 5:22 AM

    Hello,
    Why are you looping at the same internal table so many times, you could probably perform everything within one loop instead.
    DATA : vspl LIKE konv-kbetr.
    DATA : vspl1 LIKE konv-kbetr.
    DATA : vkwert LIKE konv-kwert.
    DATA: VSPL2 LIKE KONV-kbetr. "ZING COST
    DATA: VSPL3 LIKE KONV-kbetr. "ZGRD COST
    DATA: VSPL4 LIKE KONV-kbetr. "ZBDL COST
    field-symbols <fs>.
    LOOP AT item assigning <fs>.
    SELECT kbetr FROM konv INTO <fs>-rate WHERE knumv = header-knumv AND kposn = item-ebelp
    AND ( kschl = 'ZP00' OR kschl = 'P001' OR kschl = 'PBXX' OR kschl = 'P000' OR kschl = 'PB00' OR kschl = 'ZING' OR kschl = 'ZBRD' OR kschl = 'ZGRD').
    MODIFY item.
    ENDSELECT.
    SELECT kwert FROM konv INTO vkwert WHERE knumv = header-knumv AND kposn = item-ebelp
    AND ( kschl = 'ZP00' OR kschl = 'P001' OR kschl = 'PBXX' OR kschl = 'P000' OR kschl = 'PB00' OR kschl = 'ZING' OR kschl = 'ZBRD' OR kschl = 'ZGRD').
    ENDSELECT.
    ENDLOOP.
    CLEAR : vspl , vspl1 , vspl2 , vspl3 , vspl4.
    SELECT kbetr FROM konv INTO vspl WHERE knumv = header-knumv AND kposn = item-ebelp
    AND kschl = 'ZCOM'.
    ENDSELECT.
    SELECT kbetr FROM konv INTO vspl1 WHERE knumv = header-knumv AND kposn = item-ebelp
    AND kschl = 'ZBR1'.
    ENDSELECT.
    *******************Begin - new code added on 14.01.2009******************
    SELECT kbetr FROM konv INTO vspl2 WHERE knumv = header-knumv AND kposn = item-ebelp
    AND kschl = 'ZING'.
    ENDSELECT.
    SELECT kbetr FROM konv INTO vspl3 WHERE knumv = header-knumv AND kposn = item-ebelp
    AND kschl = 'ZGRD'.
    ENDSELECT.
    SELECT kbetr FROM konv INTO vspl4 WHERE knumv = header-knumv AND kposn = item-ebelp
    AND kschl = 'ZBRL'.
    ENDSELECT.
    *******************End - new code added on 14.01.2009******************
    <fs>-rate = <fs>-rate + vspl + vspl1.
    *******************Begin - new code added on 14.01.2009******************
    <fs>-rate1 = item-rate1 + vspl2.
    <fs>-rate2 = item-rate2 + vspl3.
    <fs>-rate3 = item-rate3 + vspl4.
    ENDLOOP.
    Also, use field-symbols and use loop at itab assigning addition so that you can directly change the contents of the table without using modify statment.
    regards,
    Advait

  • How to release Stock blocked against deleted line items from  Sales order.

    We have Scenario as follows.
    Sales order made for  items available in stock.  Deleted few lineitems from sales order balance items delivered and invoiced. Sales cycle is complete in all sense.
    What we have noticed is when we are creating new sales order / Delivery for deleted items from above Sales order it shows deleted quantity is blocked against old sales order. These line items are no longer
    available in old sales order since it is deleted also it is not appearing in open sales order report (VA05).
    Overall stock available is same as quantity mentioned in deleted line item.
    In MD04 - Sales requirenment transaction it shows sales order / line item against which it is blocked.
                    i.e deleted line item.
    How to release these stock and make available for sales. Any standard process available ? or any other solutions
    Thanks & Regards,

    I got a solution for my question from other forum. for info
    Go to SE38 and enter program SDRQCR21 then execute...
    Enter line item which is blocked for sales order in MD04 and enter plant then check Data
    transfer box and uncheck other boxes... It will pop up information and click yes...
    You will get one report and Stock inconsistency will go off and then check it in MD04....
    regards

  • How to configure Two Tax Codes for single line item in work order

    Hi All,
    Please do Review the below scenario and tell me how to solve it.
    A) Certified Work Done Gross Bill Amt      100,000      
    Total Work Done Value      100,000      
    Less : Labour & Like Charges @ 30 % on Rs 100,000 =  30,000      
    Vat applicable Amount =      70,000      
    Add VAT @12.5%  Chargeable on Taxable Turnover of Rs. 70,000.00     = 8750
    Total Bill Value = 108750
    Service Tax @ 12.36% on 33% Value of Rs. 100000     = 4079
    G.Bill Amt = 112829
    Total Amt Due for Payment = 112829

    HI,  There is a possible solution for this scenario.
    1. Create 2 tax codes for VAT and SERVICE Tax at 12.5% and 12.36% respectively
    2. While posting the Invoice (TRX - FB60) following steps need to be followed.
    3. Amount has to be split into two line items
    4. Ist Line Item should have the Vat amount + 70000/- and select relevant tax code that was
        created for 12.5%
    5. Similarly 2nd Line Item should have Service Tax amount + 30000/- and select relevant tax code that    
        was created for 12.36%.
    Hope this would meet your requirement. If the solution is okay, kindly indicate the points.
    Regards
    K.Sanjai Babu

  • Ship to party Jursidiction code change at line item leve in Sales order

    Hell Gurus,
             Here is requirement for enhancement in Sales order. For determining tax following logic is requird to modify jursidiction code of ship-to party at line item level.
    after entering header details and line item, then user exit should be there(which user exit??) and i need to compare countries of Ship-from(Plant i believe) and Ship-to party(customer) if country is same, then jursidiction code of Ship-to party at line item level should be changed with value from Jursidiction code of Ship-from party(plant this value will come from <b>T001W</b>) table. this should happen before save(while entering line items, user may go and check jursidiction code change)
    what i need here is which user exit is triggerd ater line item entry, and how to change jursidiction value( i believe we need XVBAP, XVBPA, might be XADRC(Jursidiction code) . if some one provide user exit and logic with structure details then it would be of great help.
    hoping to get reply
    Thanks in Advance
    Siva

    Can you check in MV45AFZB Include but i am not sure
    FORM USEREXIT_FILL_VBAP_FROM_HVBAP.
    VBAP-zzfield = HVBAP-zzfield2.
    ENDFORM.
    FORM USEREXIT_SOURCE_DETERMINATION.
    set source
    VBAP-WERKS          = zzfield1.
    set item category
    VBAP-PSTYV          = zzfield2.
    ENDFORM.
    *eject
    Reward Points if it is helpful
    Thanks
    Seshu

  • We cannot see the segment in the vendor line item

    Hi,
    We have updated the Segment field as Optional in OB41 transaction for posting key equal to 21 and the same for the corresponding GL account. When we create a document in FB01 transaction with SA type for example, we can't see the segment field in the vendor line item.
    Could you tell me if we need to do something more to see the segment?
    Thanks in advance,
    SAP user

    Hi,
    whe we are  entering  the vendor line item we can enter the Fund and fund Center, our segment will be derived from the fund ( we have done it in a substitution, if the segment is empty we derive it from the fund) and in BSEG table we can see that the segment is filled correctly. But we cannot change it because this fields segment don't appear in the screen. We have reviewed the SAPMF05A 0332 Screen (screen that we can see when we are entering the vendor line item and we push in "More data" button) but the segment field don't appear.
    Thanks in advance,
    Sap Userr

  • Fi document: different tax code for each line item

    Dear All,
    Our FI department needs to post FI documents by uploading the list of line items. For each line item (even when they have the same g/l account) tax code may be different from 0 to 10%. Also the tax code needs to be entered in EUR not in %. So for example they may need to post the folowing document:
              PstKey   Account    Amount     Tax amt
    001     21          Vendor       95 EUR     Tax amount 5 EUR
    002     50          GRIR          100 EUR
    003     21          Vendor       90 EUR     Tax amount 10 EUR
    004     50          GRIR          100 EUR
    At the moment users have to post it manually. Tax rate cannot be restricted to allow tax from 0 to 10%.
    Can you please advice what would be the best approach for them to make it? Providing they do want to upload the document not enter the items manually..
    Thanks a lot in advance for your help!

    Hi,
    are there some messages during this process? Upload this list in foreground batch input execution. Verify if in stop point displays any messagem. If it is the case, go to OBA5 to change its status.
    Let me know results.
    regards

  • Section code in customer line item for scrap

    Hi
    I created customer. I assigned business place to manufacturing plant and then section code to business place. Now i created scrap order and did PGI and invoice.
    Now i i saw accounting entry and double clicked on customer line item. There i saw business place field is updated. But section code field is not updated in that.
    My requirement is that is TCS certificate is not comming in J1INCERT. Its telling NO DATA SELECTED FOR PRINTING even though i gave all parameters like challan number, date, etc.
    Edited by: Deepak Agrawal on May 12, 2010 3:29 PM

    HI,
    Are you using new general ledger concept?
    Regards,
    Satish kumar.

  • Cmod code to fetch line item data

    Hi Experts,
    I have appended 2lis_11_VAHDR the field X.
    I want to populate this field with the data of field X from VBAP table ( SO Item table).
    But since the data source is a header i.e. it will have only one record aganist each SO.
    In table VBAP, for each SO there may be one or multiple items.
    But for the field X in 2lis_11_VAHDR it should pick only first item ( 10 or 20 or 30 etc) field X value.
    I have tried with this code:
    ===================================
    WHEN '2LIS_11_VAHDR'.
    loop at C_T_DATA into WA_MC11VA0HDR.
    L_tabix = sy-tabix.
    SELECT X FROM VBAP INTO WA_MC11VA0HDR-X
      WHERE VBELN = WA_MC11VA0HDR-VBELN.
    modify C_T_DATA from WA_MC11VA0HDR index l_tabix.
    Endselect.
    Endloop.
    ===============================
    But it is not picking first one i.e. 10, it is picking the value of X against last item 30 ( say 10,20,30 are items in a SO)
    Kindly suggest how to achieve this.
    Thanks & Regards,
    Bhadri M.

    Hi All,
    Thanks for your valuable replies.
    My requirement is met. Please find the final code:
    ======================
    WHEN '2LIS_11_VAHDR'.
    loop at C_T_DATA into WA_MC11VA0HDR.
    L_tabix = sy-tabix.
    *break-point.
    SELECT PERNR FROM VBPA INTO WA_MC11VA0HDR-ZZPERNR WHERE VBELN = WA_MC11VA0HDR-VBELN
                        and PARVW = 'Z2'.
    modify C_T_DATA from WA_MC11VA0HDR index l_tabix.
    ENDSELECT.
    SELECT VBELN POSNR ABGRU FROM VBAP INTO WA_SO_DOCNO
    WHERE VBELN = WA_MC11VA0HDR-VBELN.
    APPEND WA_SO_DOCNO TO LT_SO_DOCNO.
    SORT LT_SO_DOCNO BY VBELN POSNR ASCENDING.
    DELETE ADJACENT DUPLICATES FROM LT_SO_DOCNO COMPARING VBELN.
    CLEAR WA_SO_DOCNO.
    Read table LT_SO_DOCNO into WA_SO_DOCNO with key VBELN = WA_MC11VA0HDR-VBELN.
        RESULT = wa_sy_docst-/BIC/OIYHSTAT.
    WA_MC11VA0HDR-ZZABGRU = WA_SO_DOCNO-ABGRU.
    modify C_T_DATA from WA_MC11VA0HDR index l_tabix.
    ENDSELECT.
    *ENDSELECT.
    ENDLOOP.
    ========================
    It works even with following code as suggested,
    +SELECT X FROM VBAP INTO WA_MC11VA0HDR-X+
    +WHERE VBELN = WA_MC11VA0HDR-VBELN+
    ++and      posnr  = '00010'.
    +but the problem here is '00010' will not be there always in the SO, sometimes it will be directly 20 or 30 or etc
    Closing the thread.
    Points assigned.
    Thanks & Regards,
    Bhadri M.
    Edited by: Bhadri M on Dec 29, 2011 2:28 PM

Maybe you are looking for

  • Why can I not connect to the Enterprise Portal?

    I downloaded & installed  the free trial version of the Web AS 6.40 on my laptop. I developed some test portal application and want to deploy this on the WEB AS server. The message I get is each time : Unable to connect to the Portal. Operation faile

  • How do I get rid of....

    How do I get rid of email addresses that have only been used once or twice that are not in my contacts? I've cleared cookies, cache and everything else I can think of. Anyone have any suggestions? Thanks!! Stephanie

  • Starting and stopping oracle in Unix

    I have installed oracle in a Unix Box. Since i am very new to Unix, Pls tell me tehs steps to start and stop oracle in Unix from telnet

  • Database connection to ODBC bridge

    Hi! I can connect to an ODBC (Access) database and I can see tables in Oracle JDeveloper 9i. It's work fine. I can connect to an ODBC (Access) database but I CAN'T see tables in Oracle JDeveloper 10g. It's NOT expanding table items. Why? Thanks...

  • Regarding OCP certification

    I have completed OCA certification. I gave 1Z0-147 (9i Program with PL/SQL) exam as the OCA Level-2 exam. I am now interested in giving the OCP certification. I wish to give *1Z0-146* (11g Advanced PL/SQL Developer) and wanted to know of any study ma