Code optimization - Urgent

Hi All,
I have called the function module - 'CS_BOM_EXPL_MAT_V2' with respective parameters. Following the function call, i have written these lines, to display each material & the corresponding field from MARC. There is no syntax error, but the execution of this query takes a very long time, i had to terminate the execution.
May i know what could be the reason for this?
Code
IF SY-SUBRC EQ 0.
  LOOP AT IL_STBX INTO HL_STBX.
  WL_MATNR = HL_STBX-IDNRK.
    SELECT SINGLE WEBAZ FROM MARC INTO WL_WEBAZ
      WHERE MATNR EQ HL_STBX-IDNRK.
  ENDLOOP.
Note: I have declared the DATA as mentioned below.
DATA :
     IL_STBX        TYPE TABLE OF STPOX,
     HL_STBX      TYPE STPOX.
REFRESH :
     IL_STBX[].
CLEAR
     HL_STBX.
Await your inputs.
Vivek

Hi,
I believe i have made a fundamental error & that is the reason the program is going on a infinite loop. I just checked with the debugger, the program enters the 'Record Processing' section, reads the function module explodes the BOM, reads info from MARC table, upto this point it is ok. But what is happening is, the execution of the program does not stop after reading the BOM once, it keeps re-reading the BOM & that is why it is on an infinite loop.
Can you let me know how i can limit the execution of this program to read the BOM only once.
Hope i was able to put across the problem. Await your inputs.
Vivek

Similar Messages

  • Optimizing the # of threads to do code optimization

    Hi:
    Is the number of threads used in the server to perform the code optimization tuneable? Cust has a large app and server startup is VERY long (1hour+)
    vs 15 mins with -Xnoopt) due to optimization processing. Can the # threads used for this be increased via some start switch?
    thx.
    /W

    Try with -XXoptthreads, reference here:
    http://download.oracle.com/docs/cd/E13150_01/jrockit_jvm/jrockit/jrdocs/refman/optionXX.html#wp1024195
    I believe the default is 1, try using 2 instead. More than that probably won't help much unless it's a large server (many CPUs).
    Henrik

  • Code optimization - how can I optimize ?

    Basically i_mara has 19,000 records and it loops for all recors as coded.
    The program is taking much time when i_mch1 has 300,000 records(approximately 40 minutes).
    But in case i_mch1 had 18,000 records, it is fast.
    Below is the code:
    FORM output_itab4_normal .
      FIELD-SYMBOLS : <lwa_makt_maktx> TYPE tt_makt_maktx,
                      <lwa_prfrq>      TYPE tt_prfrq,
                      <lwa_mch1>       TYPE tt_mch1,
                      <lwa_mvke>       TYPE tt_mvke.
      LOOP AT i_mara INTO wa_mara.
        READ TABLE i_mch1 WITH KEY matnr = wa_mara-matnr
                   ASSIGNING <lwa_mch1>.
        IF sy-subrc = 0.
    *-----For Recurring Inspection, go to marc table.
          READ TABLE  i_prfrq  WITH KEY matnr = wa_mara-matnr
                   ASSIGNING <lwa_prfrq>.
          IF sy-subrc = 0.
            wa_final_itab-prfrq = <lwa_prfrq>-prfrq.
            READ TABLE i_mvke WITH KEY matnr = wa_mara-matnr
                      ASSIGNING <lwa_mvke>.
            IF sy-subrc = 0.
              wa_final_itab-mvgr1 = <lwa_mvke>-mvgr1.
            ENDIF.
    *-------For material description, go to makt table.
            READ TABLE i_makt_maktx  WITH KEY matnr = wa_mara-matnr
                       ASSIGNING <lwa_makt_maktx>.
            IF sy-subrc = 0.
              wa_final_itab-maktx = <lwa_makt_maktx>-maktx.
            ENDIF.
            wa_final_itab-matnr = wa_mara-matnr.
            wa_final_itab-matkl = wa_mara-matkl.
            wa_final_itab-bismt = wa_mara-bismt.
            wa_final_itab-zzbismt = wa_mara-zzbismt.
            wa_final_itab-mtart = wa_mara-mtart.
            wa_final_itab-mhdhb = wa_mara-mhdhb.
            wa_final_itab-zzshtdaysdom = wa_mara-zzshtdaysdom.
            APPEND wa_final_itab TO i_final_itab.
            CLEAR : wa_final_itab, wa_mara.
          ENDIF.          " IF sy-subrc = 0.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    " OUTPUT_ITAB4_NORMAL
    Please help me .  Thanks in advance.

    Hi,
    You can refer to the following likns:
    Code optimization
    code optimization
    Code Optimization
    or
    you can try this coding too As this avoids any looping and hence improve performance
    Create another temporary internal table  ie. i_final_temp.
    then do the following:
    referesh i_final_temp.
    append lines of i_final to i_fianl_temp.
    delete i_final_temp where v_box ne 'X'
    describe table i_final_temp lines v_counter.
    Thank You.
    Regards,
    Dhanalakshmi L

  • Labview Code Optimization

    Hi masters, nice to cyber with you agian.
    I have just come back from NI DAY and I have heard there about Labview Code
    Optimization.
    I think this is really very interesting so I would like to learn more about
    this but, where?
    Do you know any good site ?
    Maybe Greg could help?
    Thanks in advance!
    Francisco Javier Fernandez Luna
    Ingeniero Tec. Industrial en Electronica.
    Tel: 619 81 98 31
    [email protected]
    ó [email protected]
    Would you like your answer in spanish? Please, let me know.
    Si prefiere que conteste a sus preguntas en español, por favor, hagamelo
    saber.
    "Let's make things better" (PHILIPS)

    > I have just come back from NI DAY and I have heard there about Labview Code
    > Optimization.
    > I think this is really very interesting so I would like to learn more about
    > this but, where?
    > Do you know any good site ?
    > Maybe Greg could help?
    >
    I did a presentation at NIWeek that covers some common performance
    problems and has some VIs that show how different techniques compare.
    Goto to
    ftp://ftp.ni.com/support/niweek/software_track/
    and you can find the Optimization presentation, or at least the VIs
    used. I'm on a Mac; so I'm not certain what is in there.
    The Optimization presentation isn't strictly focused on code speed, and
    spends more time on things like panel appearance, but it does cover
    performance to a certain extent. It tries to cover some of the mo
    st
    common issues. The performance chapter in the User manual, used to be
    chapter 29, covers the issue pretty well too. Finally, there are some
    low level Tech Notes somewhere on the NI web site.
    If you have specific questions, post them away.
    Greg McKaskle

  • Tax code error - Urgent

    Hi ,
    While releasing billing doc to accounting we are getting error " Tax statement item missing for tax code R1".
    Message no. FF805
    Diagnosis
    No tax item exists for tax code R1 in a G/L account item. A possible cause is an incorrect transfer of parameters by the application to the Accounting interface.
    Procedure
    Enter an OSS message
    Please let me know how to resolve this as it is urgent.
    Regards
    Ravi Kumar

    Hi
    check 0b40 settings
    Cheers
    Muralidhar

  • Default GL Assignment to Tax Code -  Very Urgent

    Dear Friends,
    When I am doing the T. Code MIRO, the Service tax receivables and Education cess receivables are automatically coming in the accounting entry.
    The entry is as follows :
    GR / IR A/c                    Dr     10500
    Service Tax Receivables          Dr         315
    Education Cess Receivables          Dr             6. 30
         To Vendor Account                         10821.30
    Actually this is Service vendor transaction. So, I did the following transactions in MM.
    1.     Created  Purchase order u2013 I gave Tax code as S6 in that.
    2.     Created Service sheet through T. Code u2013 ML81N u2013 in this I gave the cost center and GL A/c ( GL A/c is --  Lease Rentals )
    3.     Invoice Posting through T.Codeu2013MIRO u2013 in this also mentioned the Tax Code-S6
    Note : As per MM Consultant we should not do the MIGO because this is service vendor and when we release the service sheet then automatically MIGO entry will post.
    So, in the above 3 transactions ( MM ), Any where I did not mentioned the Service tax recv and Education cess recv GL accounts manually.
    Our client is following the CIN u2013 TAX INN procedure.
    Account keys u2013 ESA and ESE are updating in the above transaction.
    I checked the following T. Codes for automatic assignment of GL accounts to the Tax Code.
    1.     OBYC
    2.     OB40
    3.     OBQ3
    4.     FTXP
    5.     FV 11 & 12 & 13
    6.     OKB9
    7.     Validations and Substitutions
    8.     User Exists
    9.     spro u2013 Logistics general u2013 Tax on goods movement u2013 India u2013
    10.     FBKP
    11.     OB28, OBBH , OBCN , GGB0, GBB1 , GBX2.3
    So, In all the above T. Codes I did not find any assignment of GL Accounts to the above said Tax Code u2013 S6.
    Now  problem is My client is saying that the 2 GL accounts i.e. Service tax recv and Education cess recv GL accounts should not effect when they use Tax Code S6.
    I am not able to find where these GL accounts are assigned to the Tax Code u2013 S6.
    SO , KINDLY EXPLAIN ME WHERE THESE 2 GL ACCOUNTS ARE ASSIGNED TO THE TAX CODE .
    Its very urgent, looking forward for  an early and  positive reply.
    Thanking You,
    Regards,
    K. S. Sai Kumar
    09930870886
    Hyderabad.

    Dear All,
    I checked the following T. Codes for automatic assignment of GL accounts to the Tax Code.
    1. OBYC
    2. OB40
    3. OBQ3
    4. FTXP
    5. FV 11 & 12 & 13
    6. OKB9
    7. Validations and Substitutions
    8. User Exists
    9. spro u2013 Logistics general u2013 Tax on goods movement u2013 India u2013
    10. FBKP
    11. OB28, OBBH , OBCN , GGB0, GBB1 , GBX2.3
    So, In all the above T. Codes I did not find any assignment of GL Accounts to the above said Tax Code u2013 S6.
    Thanking You,
    Regards,
    K. S.Sai Kumar

  • Code Optimization for handling large volume of data

    Hi All,
    We are facing a problem when executing a report... lot of time is taken to execute..... Many a times the program is terminated with a dump that "Timeout :Program terminated because of endless loop".
    the internal table which has to looped has more than 8.5 lac records...
    and for each run of loop there are two read and one select statement (unavoidable)...,,
    (We have followed almost all the optimization techniques,,,,)
    Please suggest if you have any idea as to ... what can be done in such situation....
    Thanks and Regards,
    Sushil Hadge.

    Hi Martin,
    Following is the piece of code.....
    SELECT bukrs gpart hkont waers
          FROM dfkkop
          INTO TABLE it_dfkkop
          WHERE bukrs = p_bukrs AND bldat IN so_bldat AND hkont IN so_hkont.
    SORT it_dfkkop BY gpart.
    Loop at it_dfkkop into wa_dfkkop.
    <Read statement>
    <Read Statement>
    ON CHANGE OF wa_dfkkop-gpart.
    SELECT gpart hkont waers betrw FROM dfkkop INTO TABLE it_subtot WHERE hkont = wa_dfkkop-hkont AND gpart = wa_dfkkop-gpart.
          IF it_subtot IS NOT INITIAL.
            LOOP AT it_subtot INTO wa_subtot.
              v_sum = v_sum + wa_subtot-betrw.
            ENDLOOP.
         Endif. 
    Endon.
    Endloop.
    Please suggest if this can be improved in some way....
    Thanks ,
    Sushil
    Edited by: Sushil Hadge on Jun 4, 2008 3:12 PM

  • Regaring code ,its urgent

    hi,
    i had amde dis code for displaying the changes made on material in purticular month,70% report is working fine but problem is dat when i want to see the deatils of changes made to it ,it is not displaying all records,i.e. if dere are 5 changes made to a purticular materail den it is displaying only 3 ,but i want to show all of dem .
    plzzz help me out as it is very urgent to me and help will be definately rewrded.
    dis is my report code.plzz try to help me:-
    REPORT ZNEW01 no standard page heading LINE-SIZE 310.
    TABLES: CDHDR,CDPOS.
    DATA: BEGIN OF ITAB OCCURS 0,
          OBJECTCLAS LIKE CDHDR-OBJECTCLAS,
          OBJECTID LIKE CDHDR-OBJECTID,
          USERNAME LIKE CDHDR-USERNAME,
          UDATE LIKE CDHDR-UDATE,
          UTIME LIKE CDHDR-UTIME,
          TCODE LIKE CDHDR-TCODE,
          CHANGE_IND LIKE CDHDR-CHANGE_IND,
          END OF ITAB.
    DATA: BEGIN OF ITAB1 OCCURS 0,
          OBJECTCLAS LIKE CDPOS-OBJECTCLAS,
          OBJECTID LIKE CDPOS-OBJECTID,
          FNAME LIKE CDPOS-FNAME,
          CHNGIND LIKE CDPOS-CHNGIND,
          VALUE_OLD LIKE CDPOS-VALUE_OLD,
          VALUE_NEW LIKE CDPOS-VALUE_NEW,
          END OF ITAB1.
    SELECT-OPTIONS: M_DATE FOR CDHDR-UDATE,
                    U_ID FOR CDHDR-CHANGE_IND.
    SELECT BOBJECTCLAS BOBJECTID BUSERNAME BUDATE BUTIME BTCODE B~CHANGE_IND INTO
    TABLE ITAB
    FROM CDHDR AS B WHERE B~OBJECTCLAS = 'MATERIAL' AND UDATE IN M_DATE AND CHANGE_IND IN U_ID.
    Check not itab[] is initial.
    SELECT OBJECTCLAS OBJECTID FNAME CHNGIND VALUE_OLD VALUE_NEW INTO TABLE
    ITAB1 FROM CDPOS
    FOR ALL ENTRIES IN ITAB WHERE OBJECTID = itab-objectid and objectclas = ITAB-OBJECTCLAS .
    ULINE.
    LOOP AT ITAB.
    WRITE:/ ITAB-OBJECTID,22 ITAB-USERNAME,ITAB-UDATE,ITAB-UTIME,ITAB-TCODE.
    LOOP AT ITAB1 WHERE OBJECTCLAS = ITAB-OBJECTCLAS AND OBJECTID = ITAB-OBJECTID.
    WRITE: 60 ITAB1-FNAME,ITAB1-CHNGIND,ITAB1-VALUE_OLD(40),ITAB1-VALUE_NEW(40).
    ENDLOOP.
    ENDLOOP.

    Hi,
      As you are using FOR ALL ENTRIES to fetch itab1, it will remove the duplicate entries.
    SELECT OBJECTCLAS OBJECTID FNAME CHNGIND VALUE_OLD VALUE_NEW INTO TABLE
    ITAB1 FROM CDPOS
    FOR ALL ENTRIES IN ITAB WHERE OBJECTID = itab-objectid and objectclas = ITAB-OBJECTCLAS .
    ex:  new_value   old_value
            10              20
             20             30
             30             10
             10             20
             20             30
      In the output you will get only 3 records. i.e., first 3 records.
    rest of the code is looking fine. This may be the problem.
    Instead of using FOR ALL ENTRIES, fetch data for each record.

  • CODE PLEASE URGENT

    HI GEMS,
    PLEASE SEND ME THE CODE PLEASE ITS URGENT.
    The retrieval logic is to be used only for displaying the accounting and assessment year
    1) Accounting Year: GJAHR-(GJAHR+1)
    Assessment Year GJAHR1) – (GJAHR2)
    2) Get the following details from BSIS/BSAS
    BSIS/BSAS – BELNR
    BSIS/BSAS – DMBTR
    BSIS/BSAS – SHKZG
    Where
    BSIS/BSAS – GJAHR = P_GJAHR
    BSIS/BSAS – HKONT = (334551, 499001, 402001, 402002, 403000) and store them in an internal table INTAB1
    Summate the BSIS/BSAS –DMBTR and depict it in the first line of the table
    3) For the documents contained in the INTAB1 table check whether there are any line items posted to HKONT’s =(260501,260502,260503) and store them in an internal table INTAB2
    If yes then get the following fields from BSIS/BSAS table
    BSIS/BSAS – BELNR
    BSIS/BSAS – DMBTR
    BSIS/BSAS – SHKZG
    Where
    BELNR = INTAB2-BELNR
    GJAHR = P_GJAHR
    HKONT = (260501, 260502 and, 260503)
    SHKZG = “H”.
    Summate the BSIS/BSAS – DMBTR and depict against second line item and fourth line.
    4) Subtract line1 and line2 and depict against the 3 line.
    5) Subtract the DMBTR of 4th line from the 2nd line DMBTR and depict against the 5th line item.

    select BELNR DMBTR SHKZG
    from BSIS
    into itab
    Where
    GJAHR = P_GJAHR and
    HKONT in (334551, 499001, 402001, 402002, 403000).
    data s1 type i value 0.
    loop at itab.
    s1 = s1 + itab-dmbtr.
    endloop.
    Read itab where index = 1.
    itab-dmbtr = s1.
    append itab.
    clear s1.
    If itab1[] is not initial.
    select BELNR DMBTR SHKZG
    from BSIS
    into itab2
    Where
    BELNR = INTAB2-BELNR and
    GJAHR = P_GJAHR and
    HKONT in (260501, 260502 , 260503) and
    SHKZG = “H”.
    endif.
    data s2 type i value 0.
    loop at itab2.
    s2 = s2 + itab2-dmbtr.
    endloop.
    read itab2 where index =2.
    itab2-dmbtr = s2.
    append itab2.
    read itab2 where index =4.
    itab2-dmbtr = s2.
    append itab2.
    clear s2.

  • Code optimization

    Can anyone please tell me how to optimize this section in order to make it run faster? It gets extreamly slow with the increase in array size.
    Thanks in advance!
    Attachments:
    pleaseHelpSection.vi ‏30 KB

    First of all, you need a FOR loop, not a while loop. Now you can use autoindexing on the two input arrays, eliminating the index array functions and the comparison operation. The "# found" is not even needed! .
    Your problem is that the final array size is not known before your loop starts....
    ...BUT you can calculate it by calculating it in a seperate loop beforehand! NOW you can initialize the final array size and use "replace array element" as shown.
    (Attached is a simple example, please verify operation with some real data. It might need a tweak or two. )
    How big do your arrays get?
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    pleaseHelpSectionMOD.vi ‏34 KB

  • Hi pls respond my code its urgent

    hi,
    my prblm is in this program i used bapi function module for upload excel data.
    bapi_incominginvoice_park.
    in my output park number showing increasing for each item.
    so i need parknumber it should be same for all items.
    i am sending my code pls check this.
    *& Report  ZBAPI_MIRO
    && Developed By : ESWAR
    *& Created Date : 29.10.2007
    *& Requested By : GANESH(MM)
    *& SAP Area     : MM
    *& Output       : Excel format,Using BDC for Tcode MIRO
    REPORT  ZBAPI_MIRO.
    DATA: BEGIN OF INTERN OCCURS 0.
            INCLUDE STRUCTURE  ALSMEX_TABLINE.
    DATA: END OF INTERN.
    DATA : IT_INTERN LIKE INTERN OCCURS 0 WITH HEADER LINE.
      No of columns
    DATA: BEGIN OF DATA_TAB OCCURS 0,
          VALUE_0001(10), "DOC.TYPE
          VALUE_0002(10), "DOC DATE
          VALUE_0003(10), " PSTNG.DATE
        VALUE_0003(10), " GROSS_AMNT
          VALUE_0004(10), " REF_DOC_NO
          VALUE_0005(10),  "BLINE_DATE
          VALUE_0006(10),  "HEADER_TXT
          VALUE_0007(10),  "INVOICE_DOC_ITEM
          VALUE_0008(10),  "PO_NUMBER
          VALUE_0009(10), " PO_ITEM
          VALUE_0010(10),  "TAX_CODE
          VALUE_0011(11), "ITEM_AMOUNT
          VALUE_0012(10),  "SHEET_NO
          VALUE_0013(10),  "ITEM_TEXT
          VALUE_0014(10),  "SHEET_ITEM
          END OF DATA_TAB.
    DATA : BEGIN OF IT_DATA OCCURS 0,
         invoice_ind like  BAPI_INCINV_CREATE_HEADER-invoice_ind,
          doc_type    like  BAPI_INCINV_CREATE_HEADER-doc_type,
          doc_date    like  BAPI_INCINV_CREATE_HEADER-doc_date,
         pstng_date  like  BAPI_INCINV_CREATE_HEADER-pstng_date,
         comp_code   like  BAPI_INCINV_CREATE_HEADER-comp_code,
         currency    like  BAPI_INCINV_CREATE_HEADER-currency,
         gross_amount like  BAPI_INCINV_CREATE_HEADER-gross_amount,
         calc_tax_ind like  BAPI_INCINV_CREATE_HEADER-calc_tax_ind,
        REF_DOC_NO LIKE BAPI_INCINV_CREATE_HEADER-REF_DOC_NO,
          bline_date like  BAPI_INCINV_CREATE_HEADER-bline_date,
          header_txt like  BAPI_INCINV_CREATE_HEADER-header_txt,
        invoice_doc_item like BAPI_INCINV_CREATE_ITEM-invoice_doc_item,
        po_number like    BAPI_INCINV_CREATE_ITEM-po_number,
        po_item like    BAPI_INCINV_CREATE_ITEM-po_item,
        tax_code like    BAPI_INCINV_CREATE_ITEM-tax_code,
        item_amount like    BAPI_INCINV_CREATE_ITEM-ITEM_AMOUNT,
        sheet_no like    BAPI_INCINV_CREATE_ITEM-sheet_no,
        item_text like    BAPI_INCINV_CREATE_ITEM-item_text,
        sheet_item like    BAPI_INCINV_CREATE_ITEM-sheet_item,
          END OF IT_DATA.
         DATA : BEGIN OF IT_CHAR OCCURS 0,
           IND(6) TYPE N,     ""Index for comparison
           CHARN LIKE RCTMS-MNAME, "CHAR NAME
           CHARV LIKE RCTMS-MWERT, "CHAR VALUE
          END OF IT_CHAR.
          DATA: BEGIN OF it_msg OCCURS 0,
            po_number LIKE BAPI_INCINV_CREATE_ITEM-po_number,
            po_item like BAPI_INCINV_CREATE_ITEM-po_item,
            message(20),
            message1(90),
            mblnr     TYPE mkpf-mblnr,
          END OF it_msg.
    DATA : W_DATA LIKE LINE OF IT_DATA.
    DATA : W_CHAR LIKE LINE OF IT_CHAR.
    DATA: T_EXCELFILE TYPE ALSMEX_TABLINE OCCURS 0 WITH HEADER LINE.
    FIELD-SYMBOLS : <L_FS> .
    DATA : W_INTERN   LIKE LINE OF INTERN,
           W_INTERN1  LIKE LINE OF IT_INTERN,
          W_DATA_TAB LIKE LINE OF DATA_TAB.
      DATA: TIND(4) TYPE N.
    DATA: ZWFELD(19),ZWFELD1(19).
    FIELD-SYMBOLS: <FS1>,<FS2>.
    DATA : G_MODE(1),G_UPDATE(1).
    DATA :   G_FLG(1).
    DATA : TOT_REC(6) TYPE N,
           DUP_REC(6) TYPE N,
           UPL_REC(6) TYPE N.
        DATA:  WA_DATA LIKE LINE OF IT_DATA,
                WA_DATA1 LIKE WA_DATA.
       DATA:WA_HEADER LIKE BAPI_INCINV_CREATE_HEADER,
            WA_INVOICEDOCNUMBER  TYPE BAPI_INCINV_FLD-INV_DOC_NO,
            IT_ITEM LIKE   BAPI_INCINV_CREATE_ITEM OCCURS 0 WITH HEADER LINE,
            IT_RETURN LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE.
    DATA:BEGIN OF IT_MBLNR OCCURS 0,
           MBLNR LIKE MKPF-MBLNR,
          MJAHR LIKE MKPF-MJAHR,
       END OF IT_MBLNR.
    *& Selection screen
    SELECTION-SCREEN BEGIN OF BLOCK BLK WITH FRAME TITLE TEXT-001.
    PARAMETERS:  P_FILE   LIKE RLGRAP-FILENAME OBLIGATORY.
    SELECTION-SCREEN END  OF BLOCK BLK.
    *& AT SELECTION-SCREEN
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
      PERFORM GET_FILE.
    *& Start of selection
    START-OF-SELECTION.
      PERFORM GET_BDC_DATA.
      PERFORM PROCESS_BDC_DATA.
      PERFORM BDC_UPLOAD.
      PERFORM display_log.
    *&      Form  GET_FILE
    FORM GET_FILE .
    *F4-HELP FILE
      CALL FUNCTION 'F4_FILENAME'
       EXPORTING
         PROGRAM_NAME        = SYST-CPROG
      DYNPRO_NUMBER       = SYST-DYNNR
      FIELD_NAME          = ' '
       IMPORTING
         FILE_NAME           = P_FILE.
    ENDFORM.                    " GET_FILE
    FORM GET_BDC_DATA .
      DATA : WRK_FLG(1).
      DATA : GIDX LIKE SY-TABIX.
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          FILENAME                = P_FILE
          I_BEGIN_COL             = '1'
          I_BEGIN_ROW             = '1'
          I_END_COL               = '250'
          I_END_ROW               = '50000'
        TABLES
          INTERN                  = INTERN
        EXCEPTIONS
          INCONSISTENT_PARAMETERS = 1
          UPLOAD_OLE              = 2
          OTHERS                  = 3.
      IF SY-SUBRC <> 0.
        WRITE:/ 'Upload Error ', SY-SUBRC.
      ELSE.
        SORT INTERN BY ROW COL.
        LOOP AT INTERN.
          TIND = INTERN-COL.
          CONCATENATE 'DATA_TAB-VALUE_' TIND INTO ZWFELD.
          ASSIGN (ZWFELD) TO <FS1>.
          <FS1> = INTERN-VALUE.
          AT END OF ROW.
            APPEND DATA_TAB.
            CLEAR:IT_CHAR,DATA_TAB.
          ENDAT.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    " GET_BDC_DATA
    *&      Form  PROCESS_BDC_DATA
    FORM PROCESS_BDC_DATA .
      DATA : WRK_IND(6) TYPE N.
      DATA : WRK_ROW TYPE I,
             GIDX LIKE SY-TABIX.
      IF NOT DATA_TAB[] IS INITIAL.
        LOOP AT DATA_TAB INTO W_DATA_TAB.
          WRK_ROW = SY-TABIX.
         IT_DATA-DOC_TYPE    = W_DATA_TAB-VALUE_0001.
          IT_DATA-DOC_DATE    = W_DATA_TAB-VALUE_0002.
          IT_DATA-PSTNG_DATE    = W_DATA_TAB-VALUE_0003.
          it_data-ref_doc_no   = w_data_tab-value_0004.
         IT_DATA-GROSS_AMOUNT    = W_DATA_TAB-VALUE_0004.
          IT_DATA-BLINE_DATE     = W_DATA_TAB-VALUE_0005.
          IT_DATA-HEADER_TXT      = W_DATA_TAB-VALUE_0006.
          IT_DATA-INVOICE_DOC_ITEM = W_DATA_TAB-VALUE_0007.
          IT_DATA-PO_NUMBER      = W_DATA_TAB-VALUE_0008.
          IT_DATA-PO_ITEM     = W_DATA_TAB-VALUE_0009.
          IT_DATA-TAX_CODE     = W_DATA_TAB-VALUE_0010.
          IT_DATA-ITEM_AMOUNT     = W_DATA_TAB-VALUE_0011.
          IT_DATA-SHEET_NO   = W_DATA_TAB-VALUE_0012.
          IT_DATA-ITEM_TEXT  = W_DATA_TAB-VALUE_0013.
          IT_DATA-SHEET_ITEM  = W_DATA_TAB-VALUE_0014.
          APPEND IT_DATA.
        ENDLOOP.
      ENDIF.
    ENDFORM.
    FORM BDC_UPLOAD.
    DATA:LW_DATE(10).
    DELETE ADJACENT DUPLICATES FROM it_data.
    LOOP AT IT_DATA INTO WA_DATA1.
    WA_DATA = WA_DATA1.
    While program finds the header record, post the previous entries
      if      WA_data-DOC_TYPE   NE ' '
         AND  wa_data-doc_date NE ' '
          AND wa_data-pstng_date NE ' '
          AND WA_data-REF_DOC_NO NE ' '
          AND WA_data-BLINE_DATE NE ' '
          AND WA_data-HEADER_TXT NE ' ' .
                  WA_HEADER-INVOICE_IND = 'X'.
                  WA_HEADER-COMP_CODE           = 'TSKY'.
                  WA_HEADER-CURRENCY            = 'INR'.
                  WA_HEADER-CALC_TAX_IND        = 'X'.
          IF sy-tabix NE 1.
    update
            PERFORM f0301_exe_bapi TABLES it_item USING wa_header.
            REFRESH it_item.
            CLEAR: it_item, wa_header.
          ENDIF.
    *CONCATENATE WA_DATA-PSTNG_DATE+4(4)
                WA_DATA-PSTNG_DATE+2(2)
                WA_DATA-PSTNG_DATE+0(2) INTO LW_DATE.
                WA_HEADER-DOC_DATE = LW_DATE.
                WA_HEADER-PSTNG_DATE = LW_DATE.
              wa_header-doc_type = wa_data-doc_type.
             wa_header-doc_date  =  WA_DATA-DOC_DATE.
           wa_header-pstng_date =  WA_DATA-PSTNG_DATE.
           WA_HEADER-REF_DOC_NO  = WA_DATA-REF_DOC_NO.
           WA_HEADER-BLINE_DATE =  WA_DATA-BLINE_DATE.
           WA_HEADER-HEADER_TXT =  WA_DATA-HEADER_TXT.
          ENDIF.
          IT_item-INVOICE_DOC_ITEM = WA_DATA-INVOICE_DOC_ITEM.
          IT_item-PO_NUMBER = WA_DATA-PO_NUMBER.
          IT_item-PO_ITEM = WA_DATA-PO_ITEM.
          IT_item-TAX_CODE = WA_DATA-TAX_CODE.
          IT_item-ITEM_AMOUNT = WA_DATA-ITEM_AMOUNT.
          IT_item-SHEET_NO = WA_DATA-SHEET_NO.
          IT_item-ITEM_TEXT = WA_DATA-ITEM_TEXT.
          IT_item-SHEET_ITEM = WA_DATA-SHEET_ITEM.
          APPEND it_item.
        CLEAR it_item.
      ENDLOOP.
      PERFORM f0301_exe_bapi TABLES it_item USING wa_header.
    ENDFORM.                    " f0200_UPDATE
       FORM f0301_exe_bapi  TABLES   p_it_item STRUCTURE it_item
                         USING    p_wa_header.
         CALL FUNCTION 'BAPI_INCOMINGINVOICE_PARK'
          EXPORTING
            headerdata                = wa_header
          ADDRESSDATA               =
         IMPORTING
           INVOICEDOCNUMBER          = WA_INVOICEDOCNUMBER
          FISCALYEAR                = lc_gjahr
          tables
            itemdata                  = it_item
          ACCOUNTINGDATA            =
          GLACCOUNTDATA             =
          MATERIALDATA              =
          TAXDATA                   =
          WITHTAXDATA               =
          VENDORITEMSPLITDATA       =
            return                    = it_return.
            READ TABLE it_return INDEX 1.
      READ TABLE it_item INDEX 1.
      IF it_return-type EQ 'E'.
        MOVE it_item-po_number   TO it_msg-po_number.
       move it_item-po_item to it_msg-po_itm.
        MOVE 'Discrepancy in PO' TO it_msg-message.
        MOVE it_return-message to it_msg-message1.
        APPEND it_msg.
        CLEAR it_msg.
        clear it_return.
      ELSE.
        MOVE it_item-po_number   TO it_msg-po_number.
       move it_item-po_item to it_msg-po_item.
        MOVE 'Successfully parked' TO it_msg-message.
       MOVE  WA_INVOICEDOCNUMBER TO it_msg-mblnr.
        APPEND it_msg.
        CLEAR: it_msg, WA_INVOICEDOCNUMBER.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
      ENDIF.
    ENDFORM.                    "f0301_exe_bapi
    FORM display_log .
    Display the log
      WRITE :  '10 Po_number',  25 'Message',  55 'Error message' ,135 'ParkedDocumentNumber'.
      ULINE.
      LOOP AT it_msg.
        WRITE : /10 it_msg-po_number,
              25 it_msg-message,
              55 it_msg-message1,
              135 it_msg-mblnr.
              ULINE.
      ENDLOOP.
    ENDFORM.                    " display_log

    hi,
    my prblm is in this program i used bapi function module for upload excel data.
    bapi_incominginvoice_park.
    in my output park number showing increasing for each item.
    so i need parknumber it should be same for all items.
    i am sending my code pls check this.
    *& Report  ZBAPI_MIRO
    && Developed By : ESWAR
    *& Created Date : 29.10.2007
    *& Requested By : GANESH(MM)
    *& SAP Area     : MM
    *& Output       : Excel format,Using BDC for Tcode MIRO
    REPORT  ZBAPI_MIRO.
    DATA: BEGIN OF INTERN OCCURS 0.
            INCLUDE STRUCTURE  ALSMEX_TABLINE.
    DATA: END OF INTERN.
    DATA : IT_INTERN LIKE INTERN OCCURS 0 WITH HEADER LINE.
      No of columns
    DATA: BEGIN OF DATA_TAB OCCURS 0,
          VALUE_0001(10), "DOC.TYPE
          VALUE_0002(10), "DOC DATE
          VALUE_0003(10), " PSTNG.DATE
        VALUE_0003(10), " GROSS_AMNT
          VALUE_0004(10), " REF_DOC_NO
          VALUE_0005(10),  "BLINE_DATE
          VALUE_0006(10),  "HEADER_TXT
          VALUE_0007(10),  "INVOICE_DOC_ITEM
          VALUE_0008(10),  "PO_NUMBER
          VALUE_0009(10), " PO_ITEM
          VALUE_0010(10),  "TAX_CODE
          VALUE_0011(11), "ITEM_AMOUNT
          VALUE_0012(10),  "SHEET_NO
          VALUE_0013(10),  "ITEM_TEXT
          VALUE_0014(10),  "SHEET_ITEM
          END OF DATA_TAB.
    DATA : BEGIN OF IT_DATA OCCURS 0,
         invoice_ind like  BAPI_INCINV_CREATE_HEADER-invoice_ind,
          doc_type    like  BAPI_INCINV_CREATE_HEADER-doc_type,
          doc_date    like  BAPI_INCINV_CREATE_HEADER-doc_date,
         pstng_date  like  BAPI_INCINV_CREATE_HEADER-pstng_date,
         comp_code   like  BAPI_INCINV_CREATE_HEADER-comp_code,
         currency    like  BAPI_INCINV_CREATE_HEADER-currency,
         gross_amount like  BAPI_INCINV_CREATE_HEADER-gross_amount,
         calc_tax_ind like  BAPI_INCINV_CREATE_HEADER-calc_tax_ind,
        REF_DOC_NO LIKE BAPI_INCINV_CREATE_HEADER-REF_DOC_NO,
          bline_date like  BAPI_INCINV_CREATE_HEADER-bline_date,
          header_txt like  BAPI_INCINV_CREATE_HEADER-header_txt,
        invoice_doc_item like BAPI_INCINV_CREATE_ITEM-invoice_doc_item,
        po_number like    BAPI_INCINV_CREATE_ITEM-po_number,
        po_item like    BAPI_INCINV_CREATE_ITEM-po_item,
        tax_code like    BAPI_INCINV_CREATE_ITEM-tax_code,
        item_amount like    BAPI_INCINV_CREATE_ITEM-ITEM_AMOUNT,
        sheet_no like    BAPI_INCINV_CREATE_ITEM-sheet_no,
        item_text like    BAPI_INCINV_CREATE_ITEM-item_text,
        sheet_item like    BAPI_INCINV_CREATE_ITEM-sheet_item,
          END OF IT_DATA.
         DATA : BEGIN OF IT_CHAR OCCURS 0,
           IND(6) TYPE N,     ""Index for comparison
           CHARN LIKE RCTMS-MNAME, "CHAR NAME
           CHARV LIKE RCTMS-MWERT, "CHAR VALUE
          END OF IT_CHAR.
          DATA: BEGIN OF it_msg OCCURS 0,
            po_number LIKE BAPI_INCINV_CREATE_ITEM-po_number,
            po_item like BAPI_INCINV_CREATE_ITEM-po_item,
            message(20),
            message1(90),
            mblnr     TYPE mkpf-mblnr,
          END OF it_msg.
    DATA : W_DATA LIKE LINE OF IT_DATA.
    DATA : W_CHAR LIKE LINE OF IT_CHAR.
    DATA: T_EXCELFILE TYPE ALSMEX_TABLINE OCCURS 0 WITH HEADER LINE.
    FIELD-SYMBOLS : <L_FS> .
    DATA : W_INTERN   LIKE LINE OF INTERN,
           W_INTERN1  LIKE LINE OF IT_INTERN,
          W_DATA_TAB LIKE LINE OF DATA_TAB.
      DATA: TIND(4) TYPE N.
    DATA: ZWFELD(19),ZWFELD1(19).
    FIELD-SYMBOLS: <FS1>,<FS2>.
    DATA : G_MODE(1),G_UPDATE(1).
    DATA :   G_FLG(1).
    DATA : TOT_REC(6) TYPE N,
           DUP_REC(6) TYPE N,
           UPL_REC(6) TYPE N.
        DATA:  WA_DATA LIKE LINE OF IT_DATA,
                WA_DATA1 LIKE WA_DATA.
       DATA:WA_HEADER LIKE BAPI_INCINV_CREATE_HEADER,
            WA_INVOICEDOCNUMBER  TYPE BAPI_INCINV_FLD-INV_DOC_NO,
            IT_ITEM LIKE   BAPI_INCINV_CREATE_ITEM OCCURS 0 WITH HEADER LINE,
            IT_RETURN LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE.
    DATA:BEGIN OF IT_MBLNR OCCURS 0,
           MBLNR LIKE MKPF-MBLNR,
          MJAHR LIKE MKPF-MJAHR,
       END OF IT_MBLNR.
    *& Selection screen
    SELECTION-SCREEN BEGIN OF BLOCK BLK WITH FRAME TITLE TEXT-001.
    PARAMETERS:  P_FILE   LIKE RLGRAP-FILENAME OBLIGATORY.
    SELECTION-SCREEN END  OF BLOCK BLK.
    *& AT SELECTION-SCREEN
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
      PERFORM GET_FILE.
    *& Start of selection
    START-OF-SELECTION.
      PERFORM GET_BDC_DATA.
      PERFORM PROCESS_BDC_DATA.
      PERFORM BDC_UPLOAD.
      PERFORM display_log.
    *&      Form  GET_FILE
    FORM GET_FILE .
    *F4-HELP FILE
      CALL FUNCTION 'F4_FILENAME'
       EXPORTING
         PROGRAM_NAME        = SYST-CPROG
      DYNPRO_NUMBER       = SYST-DYNNR
      FIELD_NAME          = ' '
       IMPORTING
         FILE_NAME           = P_FILE.
    ENDFORM.                    " GET_FILE
    FORM GET_BDC_DATA .
      DATA : WRK_FLG(1).
      DATA : GIDX LIKE SY-TABIX.
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          FILENAME                = P_FILE
          I_BEGIN_COL             = '1'
          I_BEGIN_ROW             = '1'
          I_END_COL               = '250'
          I_END_ROW               = '50000'
        TABLES
          INTERN                  = INTERN
        EXCEPTIONS
          INCONSISTENT_PARAMETERS = 1
          UPLOAD_OLE              = 2
          OTHERS                  = 3.
      IF SY-SUBRC <> 0.
        WRITE:/ 'Upload Error ', SY-SUBRC.
      ELSE.
        SORT INTERN BY ROW COL.
        LOOP AT INTERN.
          TIND = INTERN-COL.
          CONCATENATE 'DATA_TAB-VALUE_' TIND INTO ZWFELD.
          ASSIGN (ZWFELD) TO <FS1>.
          <FS1> = INTERN-VALUE.
          AT END OF ROW.
            APPEND DATA_TAB.
            CLEAR:IT_CHAR,DATA_TAB.
          ENDAT.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    " GET_BDC_DATA
    *&      Form  PROCESS_BDC_DATA
    FORM PROCESS_BDC_DATA .
      DATA : WRK_IND(6) TYPE N.
      DATA : WRK_ROW TYPE I,
             GIDX LIKE SY-TABIX.
      IF NOT DATA_TAB[] IS INITIAL.
        LOOP AT DATA_TAB INTO W_DATA_TAB.
          WRK_ROW = SY-TABIX.
         IT_DATA-DOC_TYPE    = W_DATA_TAB-VALUE_0001.
          IT_DATA-DOC_DATE    = W_DATA_TAB-VALUE_0002.
          IT_DATA-PSTNG_DATE    = W_DATA_TAB-VALUE_0003.
          it_data-ref_doc_no   = w_data_tab-value_0004.
         IT_DATA-GROSS_AMOUNT    = W_DATA_TAB-VALUE_0004.
          IT_DATA-BLINE_DATE     = W_DATA_TAB-VALUE_0005.
          IT_DATA-HEADER_TXT      = W_DATA_TAB-VALUE_0006.
          IT_DATA-INVOICE_DOC_ITEM = W_DATA_TAB-VALUE_0007.
          IT_DATA-PO_NUMBER      = W_DATA_TAB-VALUE_0008.
          IT_DATA-PO_ITEM     = W_DATA_TAB-VALUE_0009.
          IT_DATA-TAX_CODE     = W_DATA_TAB-VALUE_0010.
          IT_DATA-ITEM_AMOUNT     = W_DATA_TAB-VALUE_0011.
          IT_DATA-SHEET_NO   = W_DATA_TAB-VALUE_0012.
          IT_DATA-ITEM_TEXT  = W_DATA_TAB-VALUE_0013.
          IT_DATA-SHEET_ITEM  = W_DATA_TAB-VALUE_0014.
          APPEND IT_DATA.
        ENDLOOP.
      ENDIF.
    ENDFORM.
    FORM BDC_UPLOAD.
    DATA:LW_DATE(10).
    DELETE ADJACENT DUPLICATES FROM it_data.
    LOOP AT IT_DATA INTO WA_DATA1.
    WA_DATA = WA_DATA1.
    While program finds the header record, post the previous entries
      if      WA_data-DOC_TYPE   NE ' '
         AND  wa_data-doc_date NE ' '
          AND wa_data-pstng_date NE ' '
          AND WA_data-REF_DOC_NO NE ' '
          AND WA_data-BLINE_DATE NE ' '
          AND WA_data-HEADER_TXT NE ' ' .
                  WA_HEADER-INVOICE_IND = 'X'.
                  WA_HEADER-COMP_CODE           = 'TSKY'.
                  WA_HEADER-CURRENCY            = 'INR'.
                  WA_HEADER-CALC_TAX_IND        = 'X'.
          IF sy-tabix NE 1.
    update
            PERFORM f0301_exe_bapi TABLES it_item USING wa_header.
            REFRESH it_item.
            CLEAR: it_item, wa_header.
          ENDIF.
    *CONCATENATE WA_DATA-PSTNG_DATE+4(4)
                WA_DATA-PSTNG_DATE+2(2)
                WA_DATA-PSTNG_DATE+0(2) INTO LW_DATE.
                WA_HEADER-DOC_DATE = LW_DATE.
                WA_HEADER-PSTNG_DATE = LW_DATE.
              wa_header-doc_type = wa_data-doc_type.
             wa_header-doc_date  =  WA_DATA-DOC_DATE.
           wa_header-pstng_date =  WA_DATA-PSTNG_DATE.
           WA_HEADER-REF_DOC_NO  = WA_DATA-REF_DOC_NO.
           WA_HEADER-BLINE_DATE =  WA_DATA-BLINE_DATE.
           WA_HEADER-HEADER_TXT =  WA_DATA-HEADER_TXT.
          ENDIF.
          IT_item-INVOICE_DOC_ITEM = WA_DATA-INVOICE_DOC_ITEM.
          IT_item-PO_NUMBER = WA_DATA-PO_NUMBER.
          IT_item-PO_ITEM = WA_DATA-PO_ITEM.
          IT_item-TAX_CODE = WA_DATA-TAX_CODE.
          IT_item-ITEM_AMOUNT = WA_DATA-ITEM_AMOUNT.
          IT_item-SHEET_NO = WA_DATA-SHEET_NO.
          IT_item-ITEM_TEXT = WA_DATA-ITEM_TEXT.
          IT_item-SHEET_ITEM = WA_DATA-SHEET_ITEM.
          APPEND it_item.
        CLEAR it_item.
      ENDLOOP.
      PERFORM f0301_exe_bapi TABLES it_item USING wa_header.
    ENDFORM.                    " f0200_UPDATE
       FORM f0301_exe_bapi  TABLES   p_it_item STRUCTURE it_item
                         USING    p_wa_header.
         CALL FUNCTION 'BAPI_INCOMINGINVOICE_PARK'
          EXPORTING
            headerdata                = wa_header
          ADDRESSDATA               =
         IMPORTING
           INVOICEDOCNUMBER          = WA_INVOICEDOCNUMBER
          FISCALYEAR                = lc_gjahr
          tables
            itemdata                  = it_item
          ACCOUNTINGDATA            =
          GLACCOUNTDATA             =
          MATERIALDATA              =
          TAXDATA                   =
          WITHTAXDATA               =
          VENDORITEMSPLITDATA       =
            return                    = it_return.
            READ TABLE it_return INDEX 1.
      READ TABLE it_item INDEX 1.
      IF it_return-type EQ 'E'.
        MOVE it_item-po_number   TO it_msg-po_number.
       move it_item-po_item to it_msg-po_itm.
        MOVE 'Discrepancy in PO' TO it_msg-message.
        MOVE it_return-message to it_msg-message1.
        APPEND it_msg.
        CLEAR it_msg.
        clear it_return.
      ELSE.
        MOVE it_item-po_number   TO it_msg-po_number.
       move it_item-po_item to it_msg-po_item.
        MOVE 'Successfully parked' TO it_msg-message.
       MOVE  WA_INVOICEDOCNUMBER TO it_msg-mblnr.
        APPEND it_msg.
        CLEAR: it_msg, WA_INVOICEDOCNUMBER.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
      ENDIF.
    ENDFORM.                    "f0301_exe_bapi
    FORM display_log .
    Display the log
      WRITE :  '10 Po_number',  25 'Message',  55 'Error message' ,135 'ParkedDocumentNumber'.
      ULINE.
      LOOP AT it_msg.
        WRITE : /10 it_msg-po_number,
              25 it_msg-message,
              55 it_msg-message1,
              135 it_msg-mblnr.
              ULINE.
      ENDLOOP.
    ENDFORM.                    " display_log

  • Transport control program tp ended with error code 0212 | URGENT

    Hi All,
             We are trying to import requests in our PRD system. As soon as we select the request and try to import it , we get the error "Transport control program tp ended with error code 0212".
    This is tp version 305.12.42 (release 46D) for ANY database            
    /usr/sap/trans/cofiles/K915883.<SID> for transport: <SID>K915883: Permissio
    HALT 20070222114323                                                    
    ERROR: /usr/sap/trans/cofiles/K915883.<SID> : cant open                  
    : Permission denied                                                    
    ERROR: EXIT(16) -> process ID is: 6878                                 
    tp returncode summary:                                                 
    TOOLS: Highest return code of single steps was: 16                     
    ERRORS: Highest tp internal error was: 0212                            
    Output from tools called by tp:                                        
    This is R3trans version 6.05 (release 46D - 18.10.01 - 11:30:00).      
    R3trans finished (0000).                                                                               
    When i checked the transport tool and rfc destinations, everything was successful.
    When i tried to do tp connect -
    23> tp connect <SID> pf=/usr/sap/tran/bin/TP_DOMAIN_<SID>.PFL
    This is tp version 305.12.42 (release 46D) for ANY database
    E-/usr/sap/tran/bin/TP_DOMAIN_<SID>.PFL could not be opened.
    EXIT
    tp returncode summary:
    TOOLS: Highest return code of single steps was: 0
    ERRORS: Highest tp internal error was: 0212
    tp finished with return code: 212
    meaning:
      could not access file as supposed (see SLOG for more details)
    We are having SAP 4.6C with DB -Oracle and OS HP-UX.
    Please let me know whow to rectifiy the issue. The situation here is getting worse.
    Regards,
    NK

    Hi Ruchit, Sorry for the delay. Here is the file you wanted -
    steic25q:root>ls
    DOMAIN.CFG          TPPARAM.bak         TP_DOMAIN_ID1.PFL   TP_DOMAIN_IQ1.PFL
    TMS_TEST.IS1        TPPRAMA0918         TP_DOMAIN_ID1.orig  nik.dev_evt
    TPPARAM             TP_DOMAIN_ID1.BAK   TP_DOMAIN_IP1.BAK
    steic25q:root>more TP_DOMAIN_ID1.PFL
    #TMS:0078:DOMAIN_ID1
    Caution !
    This file was generated by the Transport Management System.
    Do not change this file using a text editor.
    For more information, refer to the online documentation of the
    Transaction STMS.
    If this file was destroyed, it can be regenerated in the TMS.
    To do this, log on to the domain controller (system ID1) and call
    transaction STMS. In the System Overview, you can distribute the TMS
    configuration. This regenerates the file.
    STMS -> Overview -> Systems -> Extras -> Distribute TMS configugration
    TRANSDIR            = /usr/sap/trans
    DU1/CTC             = 1
    DU1/DUMMY           = 1
    DU1/NBUFFORM        = 1
    DU1/TP_VERSION      = 266
    DU2/CTC             = 1
    DU2/DUMMY           = 1
    DU2/NBUFFORM        = 1
    DU2/TP_VERSION      = 266
    ID1/CTC             = 0
    ID1/DBHOST          = steic24q
    ID1/DBLIBPATH       = /usr/sap/ID1/SYS/exe/run
    ID1/DBNAME          = ID1
    ID1/DBSWPATH        = /oracle/ID1/817_64
    ID1/DBTYPE          = ora
    ID1/NBUFFORM        = 1
    ID1/TP_VERSION      = 266
    IP1/CTC             = 0
    IP1/DBHOST          = steic25q
    IP1/DBLIBPATH       = /usr/sap/IP1/SYS/exe/run
    IP1/DBNAME          = IP1
    IP1/DBSWPATH        = /oracle/IP1/817_64
    IP1/DBTYPE          = ora
    IP1/NBUFFORM        = 1
    IP1/TP_VERSION      = 266
    IQ1/CTC             = 1
    IQ1/DBHOST          = cbnysap2
    IQ1/DBLIBPATH       = /usr/sap/IQ1/SYS/exe/run
    IQ1/DBNAME          = IQ1
    IQ1/DBSWPATH        = /oracle/IP1/817_64
    IQ1/DBTYPE          = ora
    IQ1/NBUFFORM        = 1
    IQ1/TP_VERSION      = 266
    TRN/CTC             = 1
    TRN/DUMMY           = 1
    TRN/NBUFFORM        = 1
    TRN/TP_VERSION      = 266
    steic25q:root>

  • -Support package-Test import---Ended with return code:  === 8 ===(Urgent)

    Dear all, using -
    >   SAP ECC 6.0 with IS - AFS 6.0
    Environment  -- Win2k3 with Orc 10.2
    Kernel              700 - 75
    Spam/Saint -     70026
    R3trans -d         <0000>
    STMS is very consistent.
    Met all the pre-requisites when applying Support packs &  going succesfull
    but
    While applying   
    Sapk-60004inafs CRT with sapkh 60009,10,11 in
    Test_import phase it is showing the following error for
    sapkh 60010.
    Test import
    Transport request   : SAPKH60010
    System              : MBD
    tp path             : tp
    Version and release: 370.00.09 700
    R3TRPROGJ_1IRUTZN was repaired in this system
    R3TRPROGJ_1IRUTZN was repaired in this system
    Test import
    End date and time : 20080410100230
    Ended with return code:  ===> 8 <===
    When im runing with 700-75 is it possoble to import latest TP
    <SAR tp_145-20001354.sar TP  145 Info 3317 30.01.2008 >
    in to existing kernel. plaese coment on this as i think it's a TP error.
    please also advice me in different areas.
    Cheers,
    Rahul

    HI thanx a lot ,
    It the same procedure i did & checked your message indicating the same steps .
    Yes ,standard object is repaired in  system & im not aware of that
    & even it is not shown that it is recorded to work bench change request when i started applying the support pack.
    I did the same went to SE03 selected the object .
    Selected lock overview
    Identified the change request & released it.
    I got one more doubt what happens when i set the object to repair flag.
    Cheers ,
    Rahul

  • Item Codes-Automatic(urgent)

    Hi All,
    I want to define Item Code as Default i.e In SAP How we are getting the Default numbering for eg.1,2,3,4.........I want in the same way for the Item Code.IS IT POSSIBLE through Query based FMS or any other way??
    Thanks in Advance.
    mona

    Dear Mona,
    In order to resolve the issue, please do the following steps :-
    1. Create a Initial Item code I0000 manually in the application.
    2. Save the following query :-
    Select max(Itemtype)
    + cast(substring( max(Itemcode), 2, len(max(Itemcode)))
    + 1 as nvarchar(10)) from OITM                                              
    Where Itemtype = $[OITM.Itemtype]
    3. Create a formatted search based on the above query and assign it to the itemcode field. (Open Item master in add mode )
    4. Then select refresh the formatted search regularly with the Item description change.
    5. Then Go to item master data in add mode put something in item code field and then type the correct item description and click tab.
        Now your Itemcode field will display as "I0001".
    Regards,
    Rakesh Pati
    SAP Business One Forum Team

  • Code generation(urgent!!!)

    I'm writing an application to accept user input of variables and automatically generate some code with this user defined variables added to the code.Does anyone have any ideas about how i can do this?

    Mail me at [email protected]
    I have a little app that I am working on that does just this.

Maybe you are looking for

  • Web gallery watermark/copyright

    I searched for this topic, but didn't find it. I'm wondering if its possible to customize the way the copyright/watermark appears on the images in the web galleries, with respect to font size, opacity and position. As they appear now, they are small

  • Assigning Apps to Multiple, not all, Spaces

    Yo, So I know how to move and assign applications to certain spaces. My question, however, is whether an application can be assigned to multiple, but not all, spaces. For example, I would like iTunes to be in spaces 1,3, and 5 but not in 2,4 or 6. As

  • Error adding a SCOM Alert Connector

    I have a SCOM 2012 SP1 and SCSM 2012 SP1 environment in production. I have had a working CI connector for some time, but we decided to try to add an alert connector to the mix. At the point where I provide credentials for SCOM I get the following war

  • Multiple Mailadapters for one mailbox

    Hello, we are receiving messages into one emailbox from several senders. (same directory on an IMPA server, but it is not possible to use different folders) We want to have different mailadapters to know in SXMB_MONI which party is sending the messag

  • Undo Time Machine "Delete all backups of..."

    At some point I told Time Machine to get rid of backups of a particular file using the "Delete all backups of ..." option. Time Machine duly deleted the backups of the file and stopped making new ones. I've since changed my mind but I can't figure ou