LINE ITEM PROBLEM

hi experts !
There is a Program for displaying domestic sales figures as per
   customer/document type/profit centre wise..
input data for report is
Company code
DOCUMENT TYPE
START DATE & END DATE
FINANCIAL YEAR.
problem is in date when i entered D3 in document type its showing only one line item for a particular document no (FB03)  leaving 1st line item in invoice ,  but when i enter multiple selectios e.g d1, d2 , d3  it shows all line items   and showing correct data. can anybody help me why its showing incorrect data for only one specific doc.no.
i have checked fb03 and its showing correct 2 line items in invoice .
CODE FOR DATA IS
FORM FORM_COLLECT_BKPF.
clear IT_BKPF .
  SELECT BUKRS BELNR GJAHR BLDAT BUDAT BLART XBLNR BKTXT USNAM CPUDT
  CPUTM FROM BKPF
  INTO CORRESPONDING FIELDS OF TABLE IT_BKPF
  WHERE BUKRS = PR_BUKRS
  AND GJAHR = PR_GJAHR
  AND BLART IN SO_BLART
  AND BUDAT IN SO_BUDAT
  AND XREVERSAL = ''
  AND BSTAT = ''.
  IF IT_BKPF[] IS INITIAL.
    MESSAGE E000(ZMSG) WITH 'No records found'.
  ENDIF.
ENDFORM. 
FORM FORM_COLLECT_BSEG .
*clear IT_BKPF .
  SELECT BUKRS BELNR GJAHR HKONT BUZEI DMBTR KUNNR LIFNR BSCHL KOART MENGE
  MWSKZ MWSTS PRCTR FROM BSEG INTO CORRESPONDING FIELDS OF TABLE
  IT_BSEG
  FOR ALL ENTRIES IN IT_BKPF
  WHERE
  BELNR = IT_BKPF-BELNR AND
  BUKRS = PR_BUKRS AND
  GJAHR = PR_GJAHR.
ENDFORM.

hi,
I also faced the same problem, if u r using 4.6,
<b>then instead of IN ,try with</b> <b>BETWEEN</b>
ex :<b> BLART BETWEEN SO_BLART-LOW AND SO_BLART-HIGH.</b>
reply back..
With Rgds,
S.Barani

Similar Messages

  • Line Item Problem in  while  Proforma Invoicing in case of STO

    Hi All,
    The problem is related to Line Item Quantity in Proforma Invoice which is explained with an example -
    When we are doing Outbound Delivery for STO ( Stock Transfer Order ) we have the batch-split function where 2 line generates for a single line item material A in which in the first line no delivery quantity and value gets reflected and in the second line for the same material the delivery quantity gets reflected with batches. Then we save the order and done PGI. After that while doing the proforma invoice there also again the 2 lines appear for the single material A where the first line doesn't contain invoice quantity and value and show as 0pcs.In the second line for the same material it shows the invoice quantity with value. I want to remove this first line for the  same line item from proforma invoice and want the system to generate only one line for the line item containing the invoice quantity.
    Point to be noted that this thing doesn't happen for normal sales cycle done through Sales Order.
    I have also checked with the Item Category NLN where i have tried the Billing relevance N - Pro Forma - no zero quantities (including main batch items) and L - Pro Forma - no zero quantities. Still the same problem is arising.
    What is the problem here and how can it be solved?
    Looking forward to some valuable suggestions
    Thanks & Regards
    Priyanka Mitra

    check for your batch item cateogry,,, maintain the batch item cateogry setting same as it is ther in case of normal sale cycle. or what you can do ,,,copy your batch item cateogry and create a new batch item cateogry for your STO delivery .
    i did it and it is working fine for me. please check the batch item cateogry and matain it the same way.
    cheers

  • FBL3N-Spool Line Items Problem

    Hi Guys,
    The following problem started after upgrade to 5.0.
    After executing tcode FBL3N, I'm able to see the report.
    Problem:
    Now when I go for the print option, in the spool (SP01> 2nd column>TYPE), instead of showing the actual line items it shows messages like " xxxxx archived documents were selected ". This is NOT happening for all the users.
    Is it a basis issue ar related to ABAP only?
    Thanks and Regards,
    Pritam

    hi,
    compare settings of transaction <b>fb00</b> for users
    Andreas

  • Line item problem in FBL3n and FS10n

    Dear ALL FI expert
    In my one G/L account(WIP) I do not see any line item data using FBL3n, FS10n.
    But the transaction is made in period jan ~ march/2009.
    Can anybody tell me why the problem happend?
    Note: Actually I can see last year data and it is okay.
    Thanks & B.Rgds
    Bishnu
    23/04
    Edited by: Bishnu Dey on Apr 23, 2009 11:08 AM

    Hi Bishnu,
    For the said GL, check in FS04, whether the line item mgmt tick was changed?
    If changed do the following:
    Activation of Line item management
    For the same a GL had been created with no tick in 'Line item display'. Documents were posted.
    Now the line item Display is to activated in the above GL.
    For the same for the following process:
    a)Tick the line item display in the GL master and save
    b)The GL has to blocked for posting
    In FS00, Click on the block button and tick the Block for posting button and save.
    c)After the blocking of the GL, go to SE38 and enter RFSEPA01 as the program and press execute
    d)Enter the Company code and the GL
    e)Press Execute.
    Now the line items were generated for the GL. Table BSIS was updated. Unblock the GL for further postings
    Deactivation of line item management
    Now for deactivating line item in a GL the following process should be followed.
    a)Untick the line item display in the GL master and save
    b)Block the GL for postings (as shown in 1.2.1)
    c)Go to SE38 and enter RFSEPA04 as the program and press execute
    d)Enter the Company code and the GL
    e)Execute
    After the execution of the program all the line items of that particular GL will be deleted from BSIS table. Unblock the GL for further postings
    Regards,
    Kiran

  • First Date on sales Order Line item problem

    I am having a problem with understanding why am I getting different First Date at the line Item every time I create an order using VA01.
    Our lead time for order type OR is set to 3 days in the TVAK table and field VLAUF.
    If I go to VA01 and enter a sales order OR, the date should be today's date (04/02/2014) + 3 work days = 04/07/2014 because 04/05/2014 is a Saturday.
    Today when I calculate the order it brings in the first date as 04/05/2014 in some cases.
    But if I put in the Sales Org in the VA01 screen along with the order type OR, the first date comes in as 04/07/2014.
    Can someone please  explain it?

    """""Users may or may not enter the sales org when creating an order"""""
    You cannot create a sales order without the sales organization.....
    Even though you missed system will always redetermine after entering the Sold to party number in sales order from your master data...
    Phanikumar

  • Searh Help line item problem

    The number of line item in our own search help is reduced to some number. i am not able to increase that, even there no possibility to increase. How can i do that?

    hi,
    in search help u have taken a table.. and the number of enteries in table are coming  in search help.
    it depends on number of enteries in table...
    hpe it may help you.
    thanks,
    Sachin

  • 999 line item problem

    Hi
    We are running a batch program for Billing through SD(with 12000 line items),Program is running successfully and creating the sales document but failed in creating FI documents with the error"maximum line item can be 999" only.Is there any way to handle this OTHER THAN SPLITTING AND POSTING.
    thanks.
    henfi

    HI,
    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.
    This will avoid the (999) line item limit for FI postings.
    https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=11162
    https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=111813
    with reference to invoice splitting.
    Regards
    Ravinagh Boni
    Rewards me if it useful

  • Line items are missing during transferring ITS to EBP--tricky problem

    Hi,
    We are using EBP 2.0 version.
    Some shopping carts line items are missing while transferring shopping cart data from ITS to EBP.
    This is happening randomly.we had checked all the shoppping cart related tables in EBP.
    For example in my shooping cart 4 items are there,during transferring shopping cart data from ITS to EBP all 4 items are updating for all the shopping cart related tables except account assignment table.
    In account assignment table for this particular shopping cart only 3 items are updated except first one.
    This is happening randomly for few of the shopping carts that too most of the cases first  item of  the shopping cart was not updating reqacct table(this is account assignment table for shooping cart items).
    I have debugged entire scenario,but i couldn't find the problem.
    any one could you please advise me....why this is happening?whether it is a version problem?
    Thanks,
    Ravi

    Hello Ravi,
    I guess you already checked OSS notes for this.
    Have you checked in the area of ITS ?
    When ITS sends data to EBP, only the actual screen data is sent:
    - item procurement data from basic data
    - item accounting data from accountig tab
    then this data is used to update the SC.
    If you have debugged those 2 screens, you should see what is happening.
    You say that only 3 reqacct lines are updated: does it means that you have the 4 lines previously created, or only 3 ?
    If you change one line item quantity, you should see this updating the reqacct. Same if you go directly in accounting tab.
    Finally, there are two options:
    - this is an ABAP error, so you should catch it in debug
    - this is an infrastrucute error (ITS is not sending the data), so you should get the data sent by ITS in debug mode
    Sometimes in productive environment with an heavy loaded ITS, you can loose some data. Available memory is not enough to fill in correctly ITS session containers.
    Rgds
    Christophe

  • 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

  • Problem:ABAp list to pdf :downaloading single line item instead of multiple

    Hi all,
             my requirement is converting the report output as pdf and download. if user enter multiple vendors, we have to download vendor data based up on vendor as separate pdf file. for this i used NEW PAGE PRINT ON. everything i'm downaloding fine.but my problem is when vendor have multiple line items ,it is downloading only one line item that is lastline item. but i need total line items have to download.I'm pasting my code here. Can Anyone suggest.
    TYPES: BEGIN OF type_data,
           lifnr TYPE ekko-lifnr,
           matnr TYPE lips-matnr,
           vgbel TYPE lips-vgbel,
           vgpos TYPE lips-vgpos,
           mfrgr TYPE lips-mfrgr,
           vbeln TYPE ekes-vbeln,
           erdat TYPE ekes-erdat,
           lfdat TYPE ekes-eindt,
           lgort TYPE lips-lgort,
           verur TYPE ekes-xblnr,
           lfuhr TYPE ekes-uzeit,
           lfimg TYPE lips-lfimg,
           meins TYPE lips-meins,
           posnr TYPE lips-posnr,
           kdmat TYPE lips-kdmat,
           dabmg TYPE ekes-dabmg,
           eindt TYPE eket-eindt,
    * Add by liza DEVK989704
           park TYPE ZPO_PARK-menge,
    * End by liza DEVK989704
           END OF type_data.
    DATA: gt_data TYPE STANDARD TABLE OF type_data.
    DATA: gw_data LIKE LINE OF gt_data.
    Data : BEGIN OF t_data OCCURS 0,
           lifnr like ekko-lifnr,
           matnr like lips-matnr,
           maktx like makt-maktx,
           vgbel like lips-vgbel,
           vgpos(6),      " like lips-vgpos,
           mfrgr like lips-mfrgr,
           vbeln like ekes-vbeln,
           erdat like ekes-erdat,
           lfdat like ekes-eindt,
           lgort like lips-lgort,
           verur like ekes-xblnr,
           lfuhr like ekes-uzeit,
           lfimg(15) type p decimals 0,    "like lips-lfimg,
           meins(3),     " like lips-meins,
           posnr(6),     "like lips-posnr,
           kdmat like lips-kdmat,
           dabmg(15) type p decimals 0,    " like ekes-dabmg,
           menge(15) type p decimals 0,
           eindt like eket-eindt,
           adv(3),
           adrnr type lfa1-adrnr,
           EMAIL type zmamm_dt1002-EMAIL,
    * Add by liza DEVK989704
           PARK(15) type p decimals 0,
    * End by liza DEVK989704
           END OF t_data.
    FORM FM_DOWNLOAD_DATA .
      data: wa_pri_params like pri_params.
    data: w_valid(1).
    data: w_tabix type c.
    data: w_rqident type rspoid.
      data: list_name like PRI_PARAMS-PLIST.
          l_x = 'X'.
      caLL FUNCTION 'GET_PRINT_PARAMETERS'
       EXPORTING
         NO_DIALOG                      = L_X
       IMPORTING
         OUT_PARAMETERS                 = wa_pri_params
         VALID                          = w_VALID
      IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
       wa_pri_params-PAART = 'X_65_80'.
          wa_pri_params-LINSZ = '185'.
    IF w_valid EQ 'X'.
    * WAIT UP TO 1 SECONDS.
    CONCATENATE 'E'
    w_tabix
    sy-datum+4(4)
    sy-uzeit INTO
    wa_pri_params-plist.
    ENDIF.
      DATA: lv_maktx   TYPE makt-maktx,
            lv_adv(01) TYPE c.
      DATA: lv_menge TYPE zomm_t0104m-menge.
    *-- Set titles
      title1 = 'Panasonic HA Air-Conditioning (M) Sdn Bhd, Shah Alam'.
      title2 = '(Formerly Known As Matsushita Industrial Corp. Sdn. Bhd.)'.
      title3 = sy-title.
      IF NOT pa_fax IS INITIAL.
        NEW-PAGE LINE-SIZE 120 LINE-COUNT 44.
        title3 = 'Outstanding shipping notifications by supplier'.
      ENDIF.
      SORT gt_data BY lifnr lfdat matnr vgbel vgpos eindt.
      LOOP AT gt_data INTO gw_data.
    NEW-PAGE PRINT ON NO DIALOG PARAMETERS wa_pri_params.
        AT NEW lifnr.
          NEW-PAGE.
          sy-pagno = 1.
    *-- Get the vendor name
          CLEAR: gv_name1,
                 gv_telf1,
                 gv_telfx.
          SELECT SINGLE name1 telf1 telfx
                 INTO (gv_name1, gv_telf1, gv_telfx)
                 FROM lfa1
                 WHERE lifnr = gw_data-lifnr.
    ENDAT.
    at new matnr.
    *-- Get the material description
          CLEAR lv_maktx.
          SELECT SINGLE maktx INTO lv_maktx
                 FROM makt
                 WHERE matnr = gw_data-matnr
                   AND spras = sy-langu.
    endat.
    *-- If "only pending shipping notifications" is selected, remove all
    *   entries with no pending quantity
        IF gw_data-lfimg LE gw_data-dabmg AND
           pa_pend = 'X'.
          CONTINUE.
        ENDIF.
    *-- Highlight entries where the SN delivery date is before the PO
    *   delivery date
        IF gw_data-lfdat < gw_data-eindt.
          FORMAT INTENSIFIED ON.
          lv_adv = 'X'.
        ELSE.
          FORMAT INTENSIFIED OFF.
          CLEAR lv_adv.
        ENDIF.
        lv_menge = gw_data-lfimg - gw_data-dabmg.
    * Add by liza DEVK989704
        clear: PARKING, T_PARK.
        refresh: T_PARK.
        Select * from ZPO_PARK into T_PARK
        where vbeln = gw_data-vbeln
        and lifnr = gw_data-lifnr
        and matnr =  gw_data-matnr.
          Append T_PARK.
        Endselect.
        Loop at T_PARK.
          PARKING = PARKING + T_PARK-menge.
        Endloop.
        gw_data-park = PARKING.

    IF pa_fax IS INITIAL.
          WRITE:/2(18) gw_data-matnr,
                  (40) lv_maktx,
                       gw_data-vgbel,
                       gw_data-eindt,
                  (04) gw_data-mfrgr,
                  (18) gw_data-verur,
                       gw_data-vbeln,
                       gw_data-lfdat,
                  (07) gw_data-lfimg UNIT gw_data-meins,
                  (07) gw_data-dabmg UNIT gw_data-meins,
                  (07) lv_menge UNIT gw_data-meins,
                       gw_data-lgort,
                       gw_data-erdat,
                  (01) lv_adv,
    * Add by liza DEVK989704
                  (08) gw_data-park.
    * End by liza DEVK989704
        ELSE.
          WRITE:/2(12) gw_data-matnr,
                  (26) lv_maktx,
                       gw_data-vgbel,
                  (16) gw_data-verur,
                       gw_data-vbeln,
                       gw_data-lfdat,
                  (07) gw_data-lfimg UNIT gw_data-meins,
                  (07) gw_data-dabmg UNIT gw_data-meins,
                  (07) lv_menge UNIT gw_data-meins,
                       gw_data-lgort.
        ENDIF.
        PERFORM write_vline.
    *    AT END OF lifnr.
           If pa_dtim NE '000000'.
            ULINE.
            SKIP.
            WRITE:/12 TS_VEND.
            WRITE:/12 TS_ATT.
            WRITE:/12 TS_FROM.
            SKIP.                                               "D01K934099
            WRITE:/12'DELIVERY TIME:',pa_dtim.                  "D01K934099
            SKIP.                                               "D01K934099
            WRITE:/12 TS_TEXT1.
            WRITE:/12 TS_TEXT2.
            WRITE:/12 TS_TEXT3.
            WRITE:/12 TS_TEXT4.
          Else.
            ULINE.
            SKIP.
            WRITE:/12 TS_VEND.
            WRITE:/12 TS_ATT.
            WRITE:/12 TS_FROM.
            WRITE:/12 TS_TEXT1.
            WRITE:/12 TS_TEXT2.
            WRITE:/12 TS_TEXT3.
            WRITE:/12 TS_TEXT4.
          Endif.
        move-corresponding gw_data to t_data.
        move : lv_maktx  to t_data-maktx,
               lv_menge  to t_data-menge,
               lv_adv    to t_data-adv,
    * Add by liza DEVK989704
               parking   to t_data-park.
    * End by liza DEVK989704
        append t_data.
      IF sy-subrc NE 0.
        MESSAGE i999(sa) WITH 'No data found'.
      ENDIF.
    NEW-PAGE PRINT OFF.
    * To fetch the spool number from TSP01 table
      sELECT rqident
    FROM tsp01
    INTO w_rqident
    *UP TO 1 ROWS
    WHERE rq2name = wa_pri_params-plist.
    ENDSELECT.
    * /*--------Convert Spool to PDF-----------/
      IF wa_pri_params-PDEST IS INITIAL.
        wa_pri_params-PDEST = 'LOCL'.
      ENDIF.
      CONCATENATE P_DEST T_DATA-LIFNR '.PDF' INTO G_FILENAME.
      CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
        EXPORTING
          SRC_SPOOLID                    = w_RQIDENT
         NO_DIALOG                      = SPACE
       IMPORTING
         PDF_BYTECOUNT                  = G_BYTECOUNT
       TABLES
         PDF                            = T_PDF
       EXCEPTIONS
         ERR_NO_ABAP_SPOOLJOB           = 1
         ERR_NO_SPOOLJOB                = 2
         ERR_NO_PERMISSION              = 3
         ERR_CONV_NOT_POSSIBLE          = 4
         ERR_BAD_DESTDEVICE             = 5
         USER_CANCELLED                 = 6
         ERR_SPOOLERROR                 = 7
         ERR_TEMSEERROR                 = 8
         ERR_BTCJOB_OPEN_FAILED         = 9
         ERR_BTCJOB_SUBMIT_FAILED       = 10
         ERR_BTCJOB_CLOSE_FAILED        = 11
         OTHERS                         = 12
      IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    *   /*---------download to specified folder--------/
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          BIN_FILESIZE            = G_BYTECOUNT
          FILENAME                = G_FILENAME
          FILETYPE                = 'BIN'
        TABLES
          DATA_TAB                = T_PDF
        EXCEPTIONS
          FILE_WRITE_ERROR        = 1
          NO_BATCH                = 2
          GUI_REFUSE_FILETRANSFER = 3
          INVALID_TYPE            = 4
          NO_AUTHORITY            = 5
          UNKNOWN_ERROR           = 6
          HEADER_NOT_ALLOWED      = 7
          SEPARATOR_NOT_ALLOWED   = 8
          FILESIZE_NOT_ALLOWED    = 9
          HEADER_TOO_LONG         = 10
          DP_ERROR_CREATE         = 11
          DP_ERROR_SEND           = 12
          DP_ERROR_WRITE          = 13
          UNKNOWN_DP_ERROR        = 14
          ACCESS_DENIED           = 15
          DP_OUT_OF_MEMORY        = 16
          DISK_FULL               = 17
          DP_TIMEOUT              = 18
          FILE_NOT_FOUND          = 19
          DATAPROVIDER_EXCEPTION  = 20
          CONTROL_FLUSH_ERROR     = 21
          OTHERS                  = 22.
      IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    endloop.
    ENDFORM.

  • Problem with Line Item display of G/L account

    Hi,
    I am struggling with a typical problem that I have two company codes in two different countries.  I have created a tax account with Open Item management and Line Item display in both the company codes.
    When I am trying to post vendor invoices, taxes are being posted on line item wise in one company code but not doing so in other company code eventhough the attributes of the G/L account are same.
    G/L accounts, tax condition types and account keys are same in both the cases.
    Can any body give me an idea to fix the problem.
    thanks in advance,
    Mallik

    HI,
    check the condition types you've defined for the both of the countries
    sprofin accting-f/a gl sett-tax on sales/pur -basic settings-check cal procd--define cond types
    there is a check box named item condition see whether it is ticked for the another company's condn type.
    because due to this only it takes the condn item wise.
    reward pts if it helps.
    Regards

  • Problem Gr/ir a/c where open line item is not ticked

    In gl master in gr/ir a/c open line item is not ticked and for that when we see the report from fbl1n it's showing in red and the problem is continuing from the implementation year 2009. what will be the simple solution.
    Regards
    abhisekh mandal

    Hi
    Check the link
    Change GL to open item managed
    Regards
    Sanil

  • I have a problem regarding sales order line item with confimed quanity

    Hi Experts,
    I have a problem regarding sales order line item with confimed quanity with '0'  with delivery block but confirming the sales order quantity once the order is released from credit check.
    The situation arises as per the below scenarios.
    Scenario - 1 -  When the sales order has two line item - one line item with confirmed qunaity in the schedule line and for the 2nd line item there is no available stock for the Material xxxxxx.
    Initially the sales order is created for the line item 2 with confirmed quantity = 0, and having the delivery block = 01 for the Material xxxxxx  and the order is set with credit check.  Once the order is relased from the credit check.  The quanity for the item 2 where the confirmed quantity will be = 0 ( Where it is not changing the confirmed quantity)
    Scenario -2-  Updating the order qunaity for the line item 2 as (9Pcs) it will goes to credit check and save the order.
    Maintain the stock for the line item 2 ( 5 Pcs).
    Once the order is released from the credit check.  Then  for the line item 2 the confirm quanity will be seting to 5 Pcs with Delivery blcok 01.
    This should not happen, When the credit check is released even though if it has stock based on the delivery blockl it should set the confirmed quanity to Zero.
    Can you please help me how to solve this issue.
    Looking forward for your reply.
    Thanks and Regards,

    Hi,
    I agree with your point.  In the sales order When the complete delivery check box is enabled where the confimed qty is set to zero, it is fine but when we save the orderr it goes to credit check.  Once we release the order using VKM3 where in the sales order the confimed quantity is setting to 5,  But it should set to Zero quantity.  Quatity should not be get confirmed it should be Zero Quantity. 
    Further in SPRO - customizing in the deliveries blocking reasons - It has a tick mark in the confirmation blcok.  But we dont want to remove the - Confirmation Block tick mark
    Please any one can help me if you have any solution to solve this problem.
    Thanks and Regards.

  • Problem in invoice printout for second line item of the contract.

    Hi,
    There are two line items in the contract. Both with different material and different plants. 1st line item with plant japan, and 2nd line item with plant singapore. But, when i try to take printout for 2nd line item after invoicing it, the address appearing in printout is of Japan instead of singapore.
    Any idea why this happening?
    Please revert back asap.

    Hi Chetan,
    If that is a header output, then there are issues at the design level itself. You have an output as header output and you expect the item level details to be printed in two different printouts.How is this handled in the program. Mostly header outputs are used to print the details abotu all the items in the doucment , not for a specific item. If you want to print a specific item only , then it is always advisable to configure the output as item output.
    Leaving that aside, the problem lies in the code. You may be selecting the item number when you are printing the details of the second item, but for printing address, you are not coding using the item number.
    To prove this test this scenario.
    Create an order with first item belonging to Singapore plant and second item Japan plant.
    Now create the otuput for item1----it will work fine
    Do the same for item2-----Now, the plant address will be of Singapore, while the material belongs to Japan.
    If this happens, it can be safely assumed that problem lies in the code. Do this test and then if the problem is in the program, discuss with your developer, he will rectify the bug for you.
    You can reward me if this solves your problem.

  • Problem with Sourcing for multiple line items SRM 7.0

    Dear All,
    We are in SRM 7.0, extended classic scenerio,
    For sourcing we have selected config "Sourcing is carried out for items without a Assigned source of supply" for all sytems and all product categories
    Our requirement is Catalog items should not go to sourcing, Item with and without assigned source of supply both should go to sourcing and external requirements SC should go to sourcing.
    We have done coding in BADI "DOC SAVE BADI" and "BBP_SRC_DETERMINE" method DETERMINE_SOURCING.
    Now we create SC with line items only using Catalog it is working fine, SC not going to sorcing,
    Create SCfor line items with assigned source of supply only it is working fine, SC going to sourcing,
    and Create SCfor line items without assigned source of supply only it is working fine, SC going to sourcing,
    But problem is with the combination of all items i.e. Catalog, with and w/o assigned source of supply in one SC
    Assigned  source of supply item is not appearing in Sourcing cockpit, and some time catalog items also available for sourcing.
    Please help
    Thanks in Advance
    Vikas
    Edited by: VIKAS CHINCHORE on Oct 4, 2011 11:53 AM
    Any luck?

    Hi
    Please revisit your logic wriiten in this method
    DETERMINE_SOURCING
    Are you checking here sc has item or sc  has supplier or not ( fixed supplier) in the logic? it must be item check.
    As per sap standard , catalog item / fixed source of supply assigned will not venture to cockpit (Sourcing is carried out for items without a Assigned source of supply)

Maybe you are looking for

  • Mini DVI to HDMI hookup not working.

    I just purchased the Mini DVI to HDMI hookup for my MacBook Pro. I plugged it into the HDMI port in my Samsung TV and the blue screen appeared onto my Mac for a second and then it went back to normal. My TV isn't detecting the MacBook and the Mac is

  • External hard drive eject error when computer is asleep

    Having some major problems with my iMac. It seems when the iMac goes to sleep I get an error saying the disk hasn't ejected properly. This is not the first hard drive to do so! Several months ago my Buffalo Drive Station would give me that error ever

  • Error in the Query used in APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERY_B

    Dear All, I am using the following in a PL/SQL Before Header process. Please help me with the following : APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERY_B ('LEASE', 'SELECT LSE_NUM                                                                        

  • Value of NET in Sales order  (Pricing)

    Hi, I have created a Price correction order. Where I put the corrected price and all the calculations happen on the entered corrected price. Like the discounts and taxes. All the calculations in the Pricing is perfect. But the value in Net for the li

  • Activity Type in SAP PM

    Dear Masters, We have a field in order screen "PMActivType" can anybody explain me what is it used for and what is it necessary to define PMactivity types in configuration? Thanks in advance.