Standart assignments in document for line item for certain ledger group

Hi colleagues,
I have a task to fulfill field order while posting asset retirement for certain G/L (91-2070000) and certain Ledger Group (0L).
I've searched this in SPRO but can't find it.
Maybe you can suggest where it could be customized.
Thanks in advance!

Hi Anton,
In T code ABAVN/ABAON, after entering asset no and percentage/full retirement just simulate, then click additional account assignment(place curosr for which GL you want change) then enter order number.
If order number is not appearing then change the field status of GL so that Order field is optional.
Hope it solves.
Regards,
GSR

Similar Messages

  • Table for line items for parked documents

    Hello all,
    Do anyone know what is the table for line items for parked documents(fbv3)?
    Because I check bseg and these doc. aren't there.
    Thanks a lot!

    Hi,
    Please Check table "VBSEGS" you will get parked document ine items .please check below link it will clear...
    Find tables for GLs on Parking Documents by FB60
    Thanks in advance
    Chakri

  • Subtotal for line item in REUSE_ALV_HIERSEQ_LIST_DISPLAY

    Hi Abapers,
    Is it possible to have subtotal functionality for line item for
    REUSE_ALV_HIERSEQ_LIST_DISPLAY.
    when i select particular line item and press subtotal button
    system displaying information mesage
    "Subtotals cannot be calculated using item
    characteristics"
    Even when  i executed  standard hie program same message displaying for line item.
    please provide any sample code for subtotal for line item .
    regards,
    Hari priya

    just copy the program and execute
    *& Report  Z_HIERSEQ_REP2                                              *
    *& author : ramesh.k                                                                    *
    *& title  : hierseq list in alv format                                                                    *
    REPORT  z_hierseq_rep2 MESSAGE-ID zrae.
    TYPE-POOLS : slis.
    *structure declarations
    *structure for likp
    TYPES : BEGIN OF ty_likp,
             vbeln TYPE vbeln_vl,
             vkorg TYPE vkorg,
             END OF ty_likp.
    *structure for lips
    TYPES : BEGIN OF ty_lips,
             vbeln TYPE vbeln_vl,
             posnr TYPE posnr_vl,
             matnr TYPE matnr,
             matkl TYPE matkl,
             ntgew TYPE ntgew_15,
             END OF ty_lips.
    *internal table declarations
    DATA : t_likp TYPE STANDARD TABLE OF ty_likp INITIAL SIZE 0,
           t_lips TYPE STANDARD TABLE OF ty_lips INITIAL SIZE 0.
    DATA : t_fieldcat TYPE slis_t_fieldcat_alv,
           t_sortinfo TYPE slis_t_sortinfo_alv,
           i_events TYPE slis_t_event.
    *workareas
    DATA : w_likp TYPE ty_likp,
           w_lips TYPE ty_lips,
           w_fieldcat TYPE slis_fieldcat_alv,
           w_keyinfo TYPE slis_keyinfo_alv,
           w_sortinfo TYPE slis_sortinfo_alv,
           W_event TYPE slis_alv_event ,
           sub_text type slis_subtot_text.
    *global declarations.
    DATA : g_vbeln like likp-vbeln.
    *selection-screen declarations
    SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME.
    SELECT-OPTIONS : s_vbeln FOR g_vbeln.
    SELECTION-SCREEN END OF BLOCK blk1.
    AT SELECTION-SCREEN.
      SELECT SINGLE
             vbeln
             FROM likp
             INTO (w_likp-vbeln)
             WHERE vbeln IN s_vbeln.
      IF sy-subrc NE 0.
        MESSAGE i001 WITH 'vbeln not found'.
      ENDIF.
    START-OF-SELECTION.
    get_data_likp
      PERFORM sub_getdata_likp.
    get_data_lips
      PERFORM sub_getdata_lips.
    fieldcatlog_build
      PERFORM build_fieldcatlog.
    *SORTINFO FOR SUBTOTALS
      PERFORM get_sortinfo.
    *KEYINFORMATION
      PERFORM get_keyinfo.
    *LIST DISPLAY
      PERFORM alv_list_display.
    *&      Form  sub_getdata_likp
        extracting the data from likp.
    -->  p1        text
    <--  p2        text
    FORM sub_getdata_likp .
      SELECT vbeln
             vkorg
             FROM likp
             INTO TABLE t_likp
             WHERE vbeln IN s_vbeln.
    ENDFORM.                    " sub_getdata_likp
    *&      Form  sub_getdata_lips
       extracting data from lips.
    -->  p1        text
    <--  p2        text
    FORM sub_getdata_lips .
      SELECT vbeln
             posnr
             matnr
             matkl
             ntgew
             FROM lips
             INTO TABLE t_lips
             FOR ALL ENTRIES IN t_likp
             WHERE vbeln = t_likp-vbeln.
    ENDFORM.                    " sub_getdata_lips
    *&      Form  build_fieldcatlog
          text
    -->  p1        text
    <--  p2        text
    FORM build_fieldcatlog .
    *FIELDCATLOG FOR HEADER TABLE
      PERFORM build_fieldcatlog1 USING :
                     '1' 'VBELN' 'DELIVERY NO' 'T_LIKP' ' ' ' ' ' ',
                     '2' 'VKORG' 'GROUP'       'T_LIKP' ' ' ' ' ' ',
    *FIELDCATLOAG FOR ITEM TABLE
                     '1' 'POSNR' 'ITEM NO' 'T_LIPS' ' ' ' ' ' ',
                     '2' 'MATNR' 'MAT NO'  'T_LIPS' ' ' ' ' ' ',
                     '3' 'MATKL' 'GROUP'   'T_LIPS' ' ' ' ' ' ',
                     '4' 'NTGEW' 'QUAN'    'T_LIPS' 'X' 'X' 'X'.
    ENDFORM.                    " build_fieldcatlog
    *&      Form  build_fieldcatlog1
          text
         -->P_0185   text
         -->P_0186   text
         -->P_0187   text
         -->P_0188   text
    FORM build_fieldcatlog1  USING
                                  pcol     TYPE char2
                                  pfldname TYPE char8
                                  pseltext TYPE char20
                                  ptabname TYPE char10
                                  psum     TYPE char10
                                  PQUAN    TYPE CHAR15
                                  PSUBTOTAL TYPE CHAR40.
      w_fieldcat-col_pos = pcol.
      w_fieldcat-fieldname = pfldname.
      w_fieldcat-seltext_m = pseltext.
      w_fieldcat-tabname = ptabname.
      w_fieldcat-do_sum = psum.
      W_FIELDCAT-qfieldname = PQUAN.
    W_FIELDCAT-subtotals_text = PSUBTOTAL.
      APPEND w_fieldcat TO t_fieldcat.
    ENDFORM.                    " build_fieldcatlog1
    *&      Form  GET_KEYINFO
          text
    -->  p1        text
    <--  p2        text
    FORM get_keyinfo .
      w_keyinfo-header01 = 'VBELN'.
      w_keyinfo-item01   = 'VBELN'.
    ENDFORM.                    " GET_KEYINFO
    *&      Form  ALV_LIST_DISPLAY
          text
    FORM alv_list_display .
    DATA : S_REPID TYPE SY-REPID.
           S_REPID = SY-REPID.
    DATA W_LAYOUT TYPE SLIS_LAYOUT_ALV.
    W_LAYOUT-totals_text = 'G.TOTAL'.
    W_LAYOUT-subtotals_text = 'SUBTOTAL_TEXT'.
    *FORM subtotal_text CHANGING p_total TYPE any
                               p_subtot_text TYPE slis_subtot_text.
    p_subtot_text-criteria = 'VBELN'.
    *p_subtot_text-max_len = 40.
    *p_subtot_text-display_text_for_subtotal
    *= 'SUBTOTAL'.
    **ENDIF.
    *ENDFORM.
      CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
        EXPORTING
      I_INTERFACE_CHECK              = ' '
         i_callback_program             = S_REPID
      I_CALLBACK_PF_STATUS_SET       = ' '
      I_CALLBACK_USER_COMMAND        = ' '
       IS_LAYOUT                      = W_LAYOUT
         it_fieldcat                    = t_fieldcat
      IT_EXCLUDING                   =
      IT_SPECIAL_GROUPS              =
         it_sort                        = t_sortinfo
      IT_FILTER                      =
      IS_SEL_HIDE                    =
      I_SCREEN_START_COLUMN          = 0
      I_SCREEN_START_LINE            = 0
      I_SCREEN_END_COLUMN            = 0
      I_SCREEN_END_LINE              = 0
      I_DEFAULT                      = 'X'
       I_SAVE                         = 'X'
      IS_VARIANT                     =
       IT_EVENTS                      = i_eventS
      IT_EVENT_EXIT                  =
          i_tabname_header               = 'T_LIKP'
          i_tabname_item                 = 'T_LIPS'
      I_STRUCTURE_NAME_HEADER        =
      I_STRUCTURE_NAME_ITEM          =
          is_keyinfo                     = w_keyinfo
      IS_PRINT                       =
      IS_REPREP_ID                   =
      I_BYPASSING_BUFFER             =
      I_BUFFER_ACTIVE                =
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER        =
      ES_EXIT_CAUSED_BY_USER         =
        TABLES
          t_outtab_header                = t_likp
          t_outtab_item                  = t_lips
    EXCEPTIONS
      PROGRAM_ERROR                  = 1
      OTHERS                         = 2
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " ALV_LIST_DISPLAY
    *&      Form  GET_SORTINFO
          text
    -->  p1        text
    <--  p2        text
    FORM get_sortinfo .
      w_sortinfo-fieldname = 'VBELN'.
      w_sortinfo-tabname   = 'T_LIKP'.
    W_SORTINFO-group     = TEXT-001.
      w_sortinfo-subtot    = 'X'.
      APPEND w_sortinfo  TO t_sortinfo.
    ENDFORM.                    " GET_SORTINFO

  • 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

  • Separate line item for taxes in accounting document of MIGO

    All SAP Gurus,
    As we can have separate line item for Freight amount (Freight amt credited) in accounting document for MIGO.
    Similarly is it possible to have separate line item for tax amount which is inventoried.
    Regards,

    Hi Rajan,
    Freight is from pricing procedure whereas tax is from taxing procedure.
    Tax cannot be shown in separate g/l in MIGO.
    Reason:
    If u wanna show tax as separate item then we need to debit tax a/c in migo as well as it has to go to inventory which is not possible(double accounting enrty on debit side).
    I too tried to do the same by specifying 2 for posting indicator and selecting non deductible for the nonsetoff account key used in the taxing proceudre in OBCN but it is behaving like setoff tax.
    U can also try doing the same and then check.
    Reg
    Raja

  • Create delivery  document for line item 5 only manually

    Hi Sap Experts,
    We have scenario, we have created sales order with 10 line items while creating delivery we don’t want to show all the 10 line item to delivery creator (creating delivery manually).
    We will send him mail saying that create delivery  document for line item 5 and we will provide him material number and delivery date and shipping point with sales order number.
    We don’t want to use partial delivery option that split the delivery and we don’t want to use VL10C tcode also.
    What are options we have and how to customize this scenario?
    Kindly suggest.
    Regards,
    Kotli

    Can you be clear in your requirement?
    One requirement is user should not select line items other than the one instructed to them
    The other requirement is delivery split should happen based on item category
    If your requirement is first one, you need to go with user exit USEREXIT_MOVE_FIELD_TO_LIPS in include MV50AFZ1 but I am not sure, on what logic, coding to be included in this exit.  If your requirement is second one, then just try in your system and share the outcome how system is functioning.  You will come to know how standard SAP works.
    G. Lakshmipathi

  • More than 999 line items for an FI Document

    Hello All,
    Per SAP standard, an accounting document can only contain up to 999 line items. However, we have Logistics posting (Backflush) that would yield more than 999 line items in FI. We can't opt for setting summarization in transaction OBCY (FI Summarization based on Object Type) since this would affect GR/IR clearing. We can select reference transaction key MKPF (Material Doc Table) and table BSEG (Field MENGE <Qty>) but GR/IR clearing would be affected since definition of clearing is at Purchasing Doc (EBELN) and Item (EBELP).
    Do you have other recommendations?
    Thanks.

    Dear scorpio0485,
    Yes ! I have already done posting for morethan 999 line items. but in the standard program we cant do it. We need to go for Z process.
    In Zprocess we need to put one cut off line item for ex : 900 or 950. After that hardcode one GL code(clearing GL Code) in program to split the line items. Means the system generates 2 documents.
    Please give the following Code to ABAPer
    AT END OF xblnr.
          mtab[] = ttab[].
          CLEAR v_count1.
          DESCRIBE TABLE ttab LINES v_lines.
          LOOP AT ttab INTO wa_ttab.
            v_tabix = sy-tabix.
            v_count = v_count + 1.
            IF v_count EQ 900.
              count = count + 1.
              v_count1 = v_count + v_count1.
              MOVE-CORRESPONDING wa_ttab TO wa_xtab.
              IF v_wtotal < 0.
                wa_xtab-newbs = '40'.
                wa_xtab-newko = '00003100001'.
              ELSE.
                wa_xtab-newbs = '50'.
                wa_xtab-newko = '00003100001'.
              ENDIF.
              IF v_dtotal < 0.
                wa_xtab-newbs = '40'.
                wa_xtab-newko = '0003100001'.
              ELSE.
                wa_xtab-newbs = '50'.
                wa_xtab-newko = '0003100001'.
              ENDIF.
              IF v_dtotal LE 0.
                v_dtotal = v_dtotal * -1.
              ENDIF.
              IF v_wtotal LE 0.
                v_wtotal = v_wtotal * -1.
              ENDIF.
              wa_xtab-prctr = '0000900008'.
              wa_xtab-dmbtr = v_dtotal .
              wa_xtab-wrbtr = v_wtotal .
    If you need anymore,please let us know

  • Material Quantity difference document line item for HU

    Dear Experts,
    When I try to clear differences in LI21,  i get the error message as above.
    Error Message : 'Material Quantity difference document line item for HU'
    Any idea why this error occurs?
    Regards,
    Shetty

    Hello Shetty,
    It may be due to some stock inconsistency. You may try iin case of  a non HU managed storage location HU to run LX23 and it can fix discrepancy overwrting MM-IM with LE-WM data. But if it is a HU managed then you can run HUDIFF transaction but only to see if there is stock differences not to fix anything, usually SAP Support (Development Support) does that job.
    Have a nice day !!

  • IDoc message Document or line item does not exist for invoice reference

    Hello,
    We activated IDoc message type FIDCC2. When cancelling documents which were created before the activation date the cancellation documents aren't posted in the receiving system. Message 'Document or line item does not exist for invoice reference' appears. How can I process these items (the reference document can't exist in the receiving system so the only option is to remove it from the IDoc?)?
    Regards, Jan

    This is just a guide.  Adapt it to your situation.  I get this kind of error message where in the case, someone has marked for deletion a line item in the purchase order.  In this regard, the IDoc errors out because the line item number being referenced is marked for deletion.
    You can either delete the IDoc or have the deletion flag taken off the line item number in the PO or document number to enable you reprocess the IDoc number in question.
    Elias

  • Separate line item for each invoice in payment document

    Dear Experts,
    while making payment for a vendor through F-58 for multiple invoices, the system grouping the invoices on Business Area basis and giving the line items.
    For example there are 2 invoices for 5000 and 6000 in one BA and another 2 for 4000 and 9000 in second BA, the system is generating the entry as follows
    Vendor  A/c Dr   BA1  11000
    Vendor A/c  Dr   BA2  13000
    Bank    A/c  Cr            24000
    I want the system to generate separate line item for each invoice instead of 2. How do i do it?
    But this is not happening when i am making partial payment and in that case it is generating 4 line items.
    regards
    Suresh

    Thanks for the reply
    Checked it but still it is working in the same way.
    It is a requirement for the client, is there anyway to do it?
    Regards
    Suresh

  • Table for line item in F-47 Display Document - Down Payment

    Hi,
    Can anyone please tell me from which table can I pick the values for line items. I'm developing a report in smartforms for down payment request. For header items I found out that the values are stored in table - BKPF.
    Please help..
    Regards,
    Sriram

    Hi,
    Go to Logical database through SE36 and give KDF for vendor and DDF for customer. You will get the details of tables there.
    Regards
    shankar

  • Single line item for multiple line item payment.

    Hi
    I have booked the 3 vendor invoices (in FB60) for a single vendor. Now today i paid (with F-53) all the three invoices together. One payment document number was generated.
    However when i saw the vendor line item, i saw that three debit line items was generated for the clearing the open invoices (i..e 3 credit line items). so when i say vendor line item report, there were total 6 cleared line items (3 for credit i.e invoice and 3 for debit i.e. payments)
    But is it possible to get  single debit line item for all the three invoices cleared. If yes, please let me know how i can get it.
    If i will have one single line item for payment, vendor report would be simpler. Please help

    Hi,
    1. If you do payment through F-53, then each invoice have separate payment line item. This is not avoidable. If you do payment through F110, then you can group the line items for payment, so there only one payment line item for many number of invoices.
    2. While clearing through F-44, system is generating automatic line items because, there are exchange rate fluctuations. You can't avoid these line items, as these automatic line items only match Debit and Credit amounts in order to post the document.
    Rgds
    Murali. N

  • Mass change of payment in customer line item for all open line item.

    Hello,
    We have updated the new payment as per the new agreement with customer in customer master. We want this new payment term should also be updated in all the open invoices which are not cleared. Is there are way we can do the mass change in Payment term as the open line item in the customer where line item are more than 50. Please let me know the transaction code for the mass change of payment term in Customer account balances.
    Thanks and Regards,
    Rajesh Kumar Mantri

    Hi
    you can find the way to change the payment terms
    first check weather the payment term field is having change option in your document change rules in the line item for you customers.
    Financial Accounting (New)Financial Accounting Global Settings (New)DocumentRules for Changing DocumentsDocument Change Rules, Line Item
    if the payment term BSEG-ZTERM(payment term) is there for your customer and having deselcted check box for changing document you cannot change payment term for your company code.
    This can done client level or company code level.
    if the payterm  can be changed you do changes to payment terms mass level.
    Thanks
    ANJI

  • No control line for line item - error while posting bd to accounting

    Hi all,
    Billing document showing err "no control line for line item" while posting to accounting doc.Sales document is complete no in completion logs.
    Previous errr: g/l missing for line item" in order incompletion after maintaining company code for customer, then refresh the g/l missing for line item is no more logs and showing the error "no control line for line item" while posting bd to accts.
    Please help
    Regards
    anush

    Hello Anush,
    if the company data of the payer was not created when the sales order has been created, then the system could not create the correct records in table VBREVK. Once the company data has been maintained the VBREVK records could be corrected by re-saving the sales, but only if no billing document exists.
    In your case you already created the billing document.
    Please try these step:
    1. reverse billing document
    2. run VA02 add a blank char to PO number, save
    3. create new billing document
    Best regards,
    Ivano.

  • Missing Line items for CO-PA "BAPi_ACC_DOCUMENT_POST"

    Hi Every one,
    I am facing a problem while posting the documents using the standard "BAPI_ACC_DOCUMENT_POST". Problem is, if I have a multiple line items to be posted, BAPI is posting only a part of them and throwing the other documents into error with an error message "Missing Line items for CO-PA" or "inconsistency between a document field and prof. segment number" .
    Program is handling the errors in another internal table and displaying them on output report.
    When we re-run the program with same parameters, it is posting the some part of the residue and throwing some documents into error. So to clear out all the documents I need to run the Program for multiple times.
    Any one can help me out in solving this Problem.

    Hello Prashanth ,
    there are 2 structures I think you should fill
    CRITERIA (ref structure BAPIACKEC9 )
    VALUEFIELD( ref STRUCTURE  BAPIACKEV9) in  BAPi_ACC_DOCUMENT_POST
    hope this helps...

Maybe you are looking for