Substitute in Line Item Test (BSEG-GSBER)

Dear all,
I have some questions here. For example, in tcode MIRO, we entered the required information. When click on simulate, there will be another line item for Tax Input lines.
One of my requirement is, PICK the Business Area field (GSBER) data for the Vendor line item and update in the Taxes lines with this data in GSBER field, I would like to copy the Vendor line item text (BSEG-GSBER) to the TAX INPUT(BSEG-GSBER), means different line item.
I will copy the value of the field BSEG-GSBER on the condition WHERE BSEG-KOART = 'K'.
Now i got the business area  but my QUESTION is HOW to paste this business area on the line items based on the condition WHERE BSEG-BUZID = 'T' in the structure i.e. before saving the table BSEG.
When i click save for park documents, the tax input text needs to be saved too. So when i view in tcode FB03, the Tax input text will also have the same value as the vendor line item text. As well as after i post the documents, the Tax Input text should also be there.
The main point is, the vendor line item and the Tax input line item are different. I want to copy vendor line item business area into tax input line business area i.e. different line item text into different line item text.
Can anyone guide me into this?
Thanks a lot. Appreciate it!

Hello Sir,
             As you said I changed EXIT-PARAM to C_EXIT_PARAM_CLASS, but after changing this debugger is not triggering. When I'm using CLASS  my EXIT name is not coming in GGB1. Please suggest me where I've to make changes.
Below is my code....
   exits-name  = 'U197'.
   exits-param = c_exit_param_class.
   exits-title = 'Enhancement For Business Area In Miro'.
   append exits.
form u197 using bool_data type gb002_015
           changing b_result.
   lt_data-bseg[] = bool_data-bseg[].
   read table lt_data-bseg[] into ls_bseg with key koart = 'K'.
      if sy-subrc eq 0.
       v_gsber = ls_bseg-gsber.
     endif.
if sy-tcode = 'MIRO'.
loop at lt_data-bseg[] into ls_bseg where koart ne 'K'.
       if ls_bseg-gsber = v_gsber.
       else.
         b_result = b_false.
       endif.
endloop.
       clear ls_bseg.
endif.
Thanks in Advance.
Regards,
Hardik B

Similar Messages

  • Abap query to select a line item # from bseg on basis of following pattern:

    Hello,
    I want to retrieve the line item # from bseg which has the following pattern,
    account type = S
    AND
    gl account starting from 135***** , 136***** , 137*****
    , 138***** , 139*****
    hope i am comprehendable. How do i go on writing the query,
    Thanks..
    Shehryar

    Hi Shehryar,
    This will fetch records with GL A/C starting with <b>13</b> only , if you want 14 and others also write sepearate conditions using <b>LIKE</b> statements.
    REPORT zztest.
    DATA : itab TYPE STANDARD TABLE OF bseg WITH HEADER LINE.
    SELECT * FROM bseg INTO TABLE itab WHERE <b>koart = 'S'
    AND
    hkont LIKE '13%'</b>.
    This will take a lot of DB time for fetching the records, try to include Key Fields(BUKRS and GJAHR .. if possible others).
    Regards,
    Arun Sambargi.
    Regards

  • User Exit / BADI Update new line item in BSEG in MIGO/MB1B Transaction

    Hi All,
    I Require a BADI or user exit in MIGO transaction from which i can add or change the BSEG line item before Posting the FI document.
    Regards,
    Madhukar Shetty

    Hi Asik,
    Thanks for the the reply, but can tell any other badi or exit from where i can add/append a new line item in the accounting document getting posted from MIGO or MB1B.
    Regards,
    Madhukar Shetty

  • Substitute at line item level for F-32 (or FB1D) to change profit center

    Hi I’m Liz,
    I started to write a substitution for F-32 transaction code for clearing with write off reason codes.  I trying to substitute if Profit center = 14xxx then substitute profit center 141xx for only P&L GL accounts.  If I simulate the substitution step and enter in GL account, Doc Type and profit center it selects the correct profit center.  When I try to post an entry with the trace turn on it shows the profit center field blank so no substitution is determined.  The reason for the substitution is my company is going through a reorg where certain profit center will be locked to post.  The issue is some Account Receivable posting hold the profit centers that are planning to be locked.  I have created a validation rule which will allow only certain User ID to post with the locked  profit center (to allow clearing open items posting) to balance sheet accounts.  My company has document splitting turned on. 
    Any help would be greatly appreciated. 
    Thanks

    Hi Liz,
    I´ve got the similar problem like you wrote. 
    My client had a reorg project behind and locked the old profit centers. For the reason of clearing open items and FX valuation those locked profit centers need either to be  re-locked or the posting need to be posted to the new profit centers by using substition. Could you please kindly advicehow did you solved this problem?
    OR maybe someone else can help?
    Many thanks in advance.

  • Gurus...Need help....extract data from BKPF header table and BSEG line item

    Gurus,
    I have to write the logic to fetch data from bkpf and bseg. Need help on how can i do that..
    I have to get bukrs  belnr gjahr ldgrp from BKPF for a given date and company code. For all these documents, then i have to get the line items from BSEG if the ldgrp is I1 or SPACE.
    If the ldgrp is not I1 or SPACE then i have to fetch the records from BSEG_ADD and then generate a ALV report with all the data including the data that was fetched from BKPF.
    So, it wil be a combined ALV report that displays header as well as LINE item data together...
    Can u please help me with the code...I am not sure how can everything go all together in one internal table....Becoz once its there in one table then only a ALV list can be generated.......
    Cheers:
    Sam

    hi Sam, this may be of some similar thing.
    Use this program, I got this prog from a source and we added a small conditional check in the program which checks document numbers in BSEG and also comapres in BKPF and sees if the output from BSEG falls under the posting data range specified in the initial selection.
    Now just so you know, this output is kinda messed up, so you will have to play with it in Excel to extract the document numbers, if that is what you want.
    ============================
    PROGRAM....... ZFI_BSEG_DOWNLOAD
    TITLE......... Download BSEG
    PROGRAM TYPE.. Download
    ======================================================================
    GENERAL DOCUMENTATION AND COMMENTS
    <...>
    ======================================================================
    ASSOCIATED PROGRAMS
    <Program>..... <Description>
    ======================================================================
    CHANGE HISTORY
    Date By Ticket Description
    REPORT zfi_bseg_download.
    TABLES: bseg, bkpf.
    TYPES: BEGIN OF ty_output,
    line(6000) TYPE c,
    END OF ty_output.
    TYPES: ty_tab_output TYPE TABLE OF ty_output,
    ty_tab_nametab TYPE TABLE OF x031l.
    CONSTANTS: c_delimiter(04) TYPE c VALUE '"%%"',
    c_records TYPE i VALUE 10000.
    SELECTION-SCREEN
    SELECT-OPTIONS: p_bukrs FOR bseg-bukrs,
    p_belnr FOR bseg-belnr,
    p_buzei FOR bseg-buzei,
    p_gjahr FOR bseg-gjahr,
    p_budat for bkpf-budat.
    SELECTION-SCREEN SKIP.
    PARAMETERS: p_file LIKE rlgrap-filename OBLIGATORY.
    SELECTION-SCREEN SKIP.
    PARAMETERS: p_append AS CHECKBOX DEFAULT 'X'.
    START-OF-SELECTION
    START-OF-SELECTION.
    PERFORM get_records.
    *& Form get_records
    FORM get_records.
    DATA: l_cursor TYPE cursor,
    lt_bseg TYPE TABLE OF bseg,
    ls_bseg LIKE LINE OF lt_bseg,
    lt_output TYPE ty_tab_output,
    ls_output LIKE LINE OF lt_output,
    lt_nametab TYPE ty_tab_nametab,
    ls_nametab LIKE LINE OF lt_nametab,
    l_field(30) TYPE c,
    l_output(50) TYPE c,
    l_date(10) TYPE c,
    l_len TYPE i.
    FIELD-SYMBOLS: <field>.
    IF p_append NE space.
    OPEN DATASET p_file FOR APPENDING IN TEXT MODE.
    ELSE.
    OPEN DATASET p_file FOR OUTPUT IN TEXT MODE.
    ENDIF.
    Retrieve BSEF fieldnames and data types
    PERFORM get_fields CHANGING lt_nametab.
    OPEN CURSOR l_cursor FOR
    SELECT * FROM bseg
    WHERE bukrs IN p_bukrs
    AND belnr IN p_belnr
    AND buzei IN p_buzei
    AND gjahr IN p_gjahr.
    Write out fieldnames
    IF p_append IS INITIAL.
    LOOP AT lt_nametab INTO ls_nametab.
    CONCATENATE ls_output ls_nametab-fieldname
    INTO ls_output SEPARATED BY c_delimiter.
    ENDLOOP.
    IF ls_output+0(4) = c_delimiter.
    SHIFT ls_output LEFT BY 4 PLACES.
    ENDIF.
    l_len = strlen( ls_output ).
    TRANSFER ls_output TO p_file LENGTH l_len.
    ENDIF.
    Process BSEG records
    DO.
    CLEAR lt_bseg.
    FETCH NEXT CURSOR l_cursor
    INTO TABLE lt_bseg
    PACKAGE SIZE c_records.
    IF sy-subrc 0.
    EXIT.
    ENDIF.
    LOOP AT lt_bseg INTO ls_bseg.
    SELECT single * FROM BKPF
    WHERE BUKRS = ls_bseg-BUKRS
    AND BELNR = ls_bseg-BELNR
    AND GJAHR = ls_bseg-GJAHR
    AND BUDAT in p_budat.
    if syst-subrc 0.
    continue.
    endif.
    CLEAR ls_output.
    Process individual fields of BSEG record
    LOOP AT lt_nametab INTO ls_nametab.
    CONCATENATE 'LS_BSEG-' ls_nametab-fieldname INTO l_field.
    ASSIGN (l_field) TO <field>.
    CLEAR l_output.
    Process by field data types
    CASE ls_nametab-exid.
    WHEN 'C' OR 'N' OR 'I'.
    Character, Numeric & Integer
    l_output = <field>.
    WHEN 'D'.
    Dates
    WRITE <field> TO l_date DD/MM/YYYY.
    l_output = l_date.
    WHEN 'P'.
    Packed decimals
    WRITE <field> TO l_output.
    WHEN OTHERS.
    MESSAGE a000(zs) WITH 'Data type error - ' ls_nametab-exid.
    ENDCASE.
    SHIFT l_output LEFT DELETING LEADING space.
    CONCATENATE ls_output l_output
    INTO ls_output SEPARATED BY c_delimiter.
    ENDLOOP.
    IF ls_output+0(4) = c_delimiter.
    SHIFT ls_output LEFT BY 4 PLACES.
    ENDIF.
    l_len = strlen( ls_output ).
    TRANSFER ls_output TO p_file LENGTH l_len.
    ENDLOOP.
    IF sy-subrc = 0.
    ENDIF.
    ENDDO.
    CLOSE CURSOR l_cursor.
    CLOSE DATASET p_file.
    ENDFORM. " get_records
    *& Form get_fields
    FORM get_fields CHANGING pt_nametab TYPE ty_tab_nametab.
    CALL FUNCTION 'RFC_GET_NAMETAB'
    EXPORTING
    tabname = 'BSEG'
    TABLES
    nametab = pt_nametab
    EXCEPTIONS
    table_not_active = 1
    OTHERS = 2.
    IF sy-subrc 0.
    ENDIF.
    ENDFORM. " get_fields
    hope this helps.
    cheers,
    Hema.

  • Check/Validate Line item Amount against Credit Balance of Customer in FBL5N

    Hi ,
    I need to Check/Validate Line item Amount BSEG -WRBTR (Screen 301, Prg. SAPMF05A ) in F-02 against Credit Balance of Customer in FBL5N.If amount entered in F-02 with posting key 01 and same company code is greater than total credit balance with customer ,then i need to pop up error message.
    I have tried this with GGB0 using my own exit incl & including ZRGGBR000 in neccesay customization.Still not working.
    Pls suggest a solutiion for this
    Regds,
    abhee
    Edited by: abheesawant on Jul 29, 2010 6:59 AM

    HI,
    To trigger user exit form pool (ZRGGBR000) you need to do setting in OB28 and activate it.
    Regards,
    Sri

  • Line item display problem from table

    Hi experts......
    I am strucked up in my report  with a problem ,
    document no.(BELNR)  for corresponding bkpf has four line item  in BSEG table,
    BUZEI                      GJAHR  BUZEI   KOART  DMBTR           HKONT                                            
    9000000078     2006     1     S    200,600.00        0000500100     
    9000000078     2006     2     S    24,072.00          0000301500     
    9000000078     2006     3     S    481.00               0000300450     
    9000000078     2006     4     D    225,153.00        0000209800     
    My requiremet is that
    ========================
    when it goes inside the loop
    i want to display the belnr where Hkont  = '000500100'
    and koart = 'D', that will be 001 line item (buzei) and  0004 Buzei in this case.
    ie my output should be like
    ============================
    GROSS        NET
    200,600.00  225,153.00
    If i specify  and hkont = '000500100'and koart = 'D'. its not getting inside the select itself
    if i select without the where condition and hkont = '000500100'and koart = 'D' its going inside...
    Can you please help me out....
    My codings
    elect bukrs belnr  gjahr xref1 xref2  kunnr  buzei dmbtr hkont koart from bseg into corresponding fields of table it_bseg
                                              for all entries in it_bkpf
                                               where  bukrs = it_bkpf-bukrs
                                                      and belnr = it_bkpf-belnr
                                                      and gjahr = it_bkpf-gjahr
                                                      and hkont = '000500100'
                                                      and koart = 'D'.
    loop at it_bseg into wa_bseg .
       wa_final-kunnr = wa_bseg-kunnr.
       wa_final-xref1 = wa_bseg-xref1.
       wa_final-xref2 = wa_bseg-xref2.
        wa_final-DMbtr = wa_bseg-dmbtr.

    hi ...
    thanx a lot fo your reply,....
    thats wat i thought and was trying to do so.....
    and modified...can you please look in to the code....
    but wa_final-gross = wa_amount-dmbtr.
         wa_final-net = wa_amount-dmbtr.
    value is not getting populated ....i dont know the reason
    IF it_bseg[] is not initial.
    select  bukrs belnr gjahr dmbtr from bseg into corresponding fields of table it_amount
                                    for all entries in it_bseg
                                     where bukrs = it_bseg-bukrs
                                     and belnr = it_bseg-belnr.
    endif.
    if it_amount[] is not initial.
    select  kunnr  name1 LOCCO from kna1 into corresponding fields of table it_kna1
                                          for all entries in it_bseg
                                            where  kunnr = it_bseg-kunnr and
                                                   locco = pr_locco.
    endif.
    sort it_bseg by belnr.
    loop at it_bseg into wa_bseg .
       wa_final-kunnr = wa_bseg-kunnr.
       wa_final-xref1 = wa_bseg-xref1.
       wa_final-xref2 = wa_bseg-xref2.
    read table it_amount into wa_amount  with key belnr = bseg-belnr.
    if sy-subrc = 0.
    if wa_bseg-hkont = '000500100'.
    wa_final-gross = wa_amount-dmbtr.
    endif.
    if wa_bseg-koart = 'D'.
    wa_final-net = wa_amount-dmbtr.
    Endif.
    at end of belnr.
    Endat.
    Endif.

  • FB60 - Substitution rule to generate Text in automatic generated line item

    Hello SAP genious,
    While we post vendor invoice ( FB60) and customer invoice (FB70), at this time along with Dr and Cr line items one automatic additional line item is getting generated this is based on Tax type which you select while making invoice.
    now, I want to show some text in this automatically created line items. This might be possible by creating some substitution rule but i am not sure.
    and if it is possible through substitution rule then what could be my prerequisite, and check would be..?????
    can you please tell how can i get Text in this additional line item getting created due to VAT tax code.
    Thanks a Lot for your input.
    your reply will be rewarded with points.
    Thanks
    Jignesh

    Thanks for all your replies.
    I Want the field BSEG- KOBEZ i.e description field in the accounting doc of the offsetting entry to be replaced in the GL account  text field.
    Ex :
    PK    Account        Description                  Amount           Text
    31    100000         Furniture  Vendor             50             Sales
    40    1999             Inter Compy                     50             Furniture Vendor
    I want the description of offsetting entry vendor description i.e Furniture vendor (field BSEG-KOBEZ) to be replaced in GL line item text BSEG-SGTXT.
    I cant find the field BSEG- KOBEZ while i search in the substituion to replace in Text field.
    How do i write in substitution to say that the offsetting entry description should be in text field of GL account.

  • Line items in a document entry

    Hi,
    there is restriction on line items for per document entry - i.e. 999.
    i would like to know if there is any update on the restriction in the enhancement packs.. or is it still 999.
    thank you
    - Vedavatee

    Check WIKI http://wiki.sdn.sap.com/wiki/display/ERPFI/Systemlimitationof999lineitemsperFIdocument
    Which Says
    Purpose
    The purpose of this WIKI is to explain a system limitation which does not allow you to have more than 999 line items per FI document, and also provide you with workarounds you can use to post your document.
    Overview
    When you are posting an FI document which has more than 999 line items, the system will issue an error message. This is due to the fact that the line item number field (BUZEI) in the BSEG table consists of 3 characters only and therefore the system cannot read more than 999 line items in the FI document.  There are some workarounds which can be done so that your document will be successfully posted in the system.
    System Limitation
    The FI document has more than 999 lines, the system issues error F5 807 ("Number of items in document is too large") or F5 727 ("Maximum number of items in FI reached"), and posting is not possible.
    There are no immediate plans to expand the number of line items beyond the current limit (999 lines per document). This is because the line item number (BSEG-BUZEI) field length is defined as 3 numeric positions (leading to a maximum possible number of 999 line items). The SAP development group is aware of this functionality change request, but the change is significant since BSEG is a cluster table which is used in numerous R/3 programs.
    Srinivas

  • Maximum number of line items in PO/SA....

    Hi,
    1.
    What is the limitation on maximum number of line items in a PO/schedulling agreement/Contract.
    2.
    Also what is the maximum permissible number of lines in a single accounting document possible.As far as I know there is a limitation of counter 999 meaning if an aaccounting document is generated after GR then it will only allow max 999 lines.
    Is there any other way to avoid this.Because in my case I have for several line items in PO and several pricing conditions with separate GL account.Now when I do GR and if a PO has many line items with about 4 to 5 conditions then for each line item there would be minimum 6-7 entries.
    How can this best be handled in SAP.
    I was being adviced to split the GR but is there any better way or is there any option like summerised acounting document ?
    Please suggest as this is most critical for me.
    Thanks in advance
    Regards,
    manOO

    Hi,
    There is no limitation in PO.  But if you want, you can use following user exit;
    <b>EXIT_SAPMM06E_012</b>
    With regard to Maximum Number of items: There is a limit of (999) line items which can be posted per FI document. This is because the line item number (BSEG-BUZEI) field length is defined as (3) numeric positions, i.e., (999) line items.
    The most commonly used workarounds are as follows:
    (1) Implement FI summarization (per note 36353).
    (2) Cancel the original billing document and split it into smaller documents using different payment terms but actually with the same terms, in case of invoice verification.
    This will avoid the (999) line item limit for FI postings. Please also have a look at the note 117708 and 77161.
    Bye,
    Muralidhara

  • FI_ITEMS_MASS_CHANGE failing to update all items of BSEG

    Hi All,
    I am facing problem using FM FI_ITEMS_MASS_CHANGE while updating multiple line items of BSEGfor text and assignment.The program is posting FI document by calling transaction FB05. The requirement is to update all the itmes of clearing document with predefined text , assignment which is coming from excel.
    The program currently gets the clearing doc number from FB05; gets the BSEG table entries and loops the items one by one. For every loop of BSEG the FM FI_ITEMS_MASS_CHANGE is called to update text and assignment fields in corresponding item of BSEG.So expectedly all the items should be updated with the text , asignment.
    But problems is that only first item is updated and rest are not updated. I have added wait time of 5 seconds to avoid locking of tables in case if any. But still the change is not working. The results after wait time additon are inconsistent. In developemnt the changes worked for 7-8 items while  it failed in quality even for only 2 items.
    The FM possibly calls FB02 internally. Is there any locking happening?
    Anybody has any suggestion?
    Thanks in Advance.
    Regards,
    Chirdip

    Hi,
    I am also facing the same problem while updating ZUONR filed in BSEG.
    FI_ITEMS_MASS_CHANGE is not updating all the line items in bseg. I called the FM inside loop-endloop at item table.
    Still few items(randomly) are updating in first executuion of my program. Few in 2nd execution an so on.
    I tried using COMMIT WORK and WAIT statements after calling the FM, but of no use!!
    Please suggest is there any other way to update all the items in a single execution??
    Otherwise do I have to go for BDC on FB02 ??
    Thanks,
    Sagar

  • Change Rules for Line item

    Hi,
    I have customized the change rules for Line item.
    Still the system not allowing to make changes to that particular field? Can any one tell me, whats the reason for the same.
    Following Field is made as changeable for the line item.
    BSEG-VBUND             Trading partner.
    The above field is available in More data Tab or additional data tab while making entry or display of document.
    Thanks,
    Lalatendu

    Hi,
    That i know, but trading partner was not entered in the GL Master data. Infact some one wrongly entered Trading partner in Customer master and during bank posting system automatically picked Trading partner.
    When thye r trying to clear open items for that GL account , because of that assignment system is not allowing to clear those line item.
    If i can remove that trading partner from document, my problem will be solved.
    Can any one guide me..or if u need more info please let me know.
    Thanks,
    Lalatendu

  • Get Withholding Tax Line Item Using FM

    Hi all,
    Is the any FM that allows me to get withholding tax line item (in table WITH_ITEM) based on the line item in BSEG? What I want from the result is that it will be able to tell me which line item in WITH_ITEM belongs to which line item in BSEG.
    Thanks for helping out.
    Regards,
    Goh Tiam Tjai

    Hello,
    I've found a way to do it, and considering that I could not find the answer in SCN I'll post it.
    I've created a report to show the calculated WHT which would be posted only at the payment moment. Also, in Brazil we work with extended WHT (and not the classic one).
    You will need an ABAP.
    Create a Z function module as copy of ZFI_WT_FB05_CALCULATE_WT.
    This FM has only input parameters, therefore it does not provide you with the calculated WHT as an output (as standard). Knowing this, it is necessary to change it (the FM) by summing all T_WITH_ITEM-WT_QBSHH per accounting document (this table is present in the standard FM).
    You need to provide the logic in order to obtain the parameters, The field which need to be filled are:
    I_AKTYP              =             "H”
    I_DYNCL              =             "Z”
    Table I_POSTAB
    Pick the data below from BKPF/BSEG of the accounting document which needs WHT to be calculated:
    BELNR 
    BUKRS
    GJAHR
    BUZEI
    WAERS
    BUDAT
    BLDAT
    BSCHL
    KOART
    SHKZG
    DMBTR
    WRBTR
    KONKO
    XAKTP = "X"
    XAKTS = "X"
    Table  I_BKPF
    BUKRS
    GJAHR     = year of the system date
    BLART     = KZ
    BLDAT     = system date
    BUDAT     = system date
    MONAT     = period of the system date
    TCODE     = FBZ2
    WAERS
    Then after changing the FM to have T_WITH_ITEM-WT_QBSHH as output, simulate it by inserting the values of the accounting document which has WHT, and check the result, if it is the same as calculated by F-53 or F110.

  • Continuation of line item data to next page in SmartForm

    Hi,
    Currently i had a requirement in SmartForm. Iam displaying the line items from bseg table in main window and totals of credit and debit in the total window which comes under the main window.
    If the line items are more and it continues to next page i want to display the total window and created by window only after all the line items.
    Please try to send ASAP.

    You can print total by reading page numbers.
    Ex: IF <current page> EQ < next page number>
      Print total.
         ENDIF
    Regards,
    Sairam

  • WH  tax line items cleared along with Other line items Message no:8I701

    hI guru,
    When i run J1INCHLN  System givem the error is : Withholding tax line items cleared along with other line items, message no:8I701
    Pleas any one give solution ..
    I also cheked as respective g/l for tds IN FBL3N . All line items are opend.
    Also cheked all selection parameter in J1INCHLN  and FBL3N .is same .
    Why the sys behaviour like this .
    Thanks is andvance
    Milind

    HI,
    he error is occuring in this part of the
    unction Module J_1IEWT_CHALLAN_UPDATE
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    LOOP AT p_t_ausz1.
    Select the cleared line item from bseg table.
       SELECT SINGLE * FROM bseg INTO  p_bseg_tab
                WHERE bukrs = p_t_ausz1-bukrs
                AND   belnr = p_t_ausz1-belnr
                AND   gjahr = p_t_ausz1-gjahr
                AND   buzei = p_t_ausz1-buzei
                AND   ktosl = 'WIT'
                AND   qsskz NE space .
       IF sy-subrc <> 0.
    This is not an ewt clearing transaction relevant for challan update.
         p_no_with_clear = 'X'.
         EXIT.
       ELSE.
         APPEND p_bseg_tab.
       ENDIF.
    ENDLOOP.
    Even if one line item chosen is not of withholding tax entry, system
    should exit by error message.
    DESCRIBE TABLE p_bseg_tab LINES  p_bseg_lines.
    DESCRIBE TABLE p_t_ausz1  LINES  p_with_lines.
       IF p_bseg_lines > 0.
    At least one entry is found in bseg table for challan update.    IF p_with_lines NE p_bseg_lines.
    At least one line chosen by the user is not for challan updation.
          MESSAGE e701(8i).
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.
    This is a clear case,that you are trying to post some documents
    which does not match with the selection parameters.
    I feel the above problem could be due to some document/s (open items of
    the earlier years)are incorrect which is causing the reported problem.
    Kindly run the challan update program for smaller date range so that you
    can find the faulty document.
    Hope this solves your query.
    Reg
    Madhu M

Maybe you are looking for

  • Is there a way of changing photos' dates all at once?

    Hi, I imported a number of photos taken within one week into iPhoto - some of them were assigned a wrong date by my camera which made the last photos the first ones in the folder. I know I can change the photos' dates manually one by one, but is ther

  • Problems restoring new iphone5s with a backup from a 3gs

    I'm trying to transfer contacts, SMS from an iPhone 3GS to a 5s by restoring the 5s from a backup from the 3GS, but I keep getting a message saying the backup is corrupt or not compatible. I've tried upgrading the iOS on both to the latest version (6

  • Scott schema not included in Oracle 12c?

    I just downloaded Oracle 12c however I noticed that there's no scott.sql in the oracle directories.. (/rdbms/admin/scott.sql) Tried downloading scott.sql and add but it wasn't added successfully as I checked for scott username from dba_users as said

  • FM for tracking the changes in materail master

    Hi Experts, I want to track the changes done to a material ( like if there are changes to materail description and materail group etc., ) for a given date. Is there any FM which can take the maerail number as input and give out these details. I know

  • Help with SQL join

    I've got a query where I'm joining several tables. One of the tables (schedule_status) has no rows to match for the join and it's causing no rows to be returned.. What I need for it to happen would be to return a -1 for c_schedulestatusid.. This is w