Dump DBIF_RSQL_INVALID_RSQL inserting the entry in bbp_pdisc

Hi Experts,
In our SRM senario, we are haing differnt backend system which are connected to SRM portal. Each system send the PO to SRM. I am currently facing a ssue with SRM system. When i create the PO in some backend system i am able to see the PO in SRM box. but for other systems PO it is giving the short dump as  DBIF_RSQL_INVALID_RSQL.
On analysis of the dump i found that the error is occuring in the inesrt statemnt while iinserting the data in table bbp_pdisc. in standard program.
I am not sure while this is happing only for few system , Can any one let me know why this is happening ,any inputs on this are really helpful.

hi ,
Please check table bbp_pdisc format  and pass data according 
if there is data type mismatch then it will give dump .
regards
Deepak.

Similar Messages

  • Dump while copying the entries in view cluster

    Hi Experts,
    I am having a scenario where i am getting the dump while copying the entries through the vies cluster.
    I have 2 tables CU00 and CU01. CU01 is depended on CU00.
    CU00- it is having schema which are defined by the user.(SCHEMA-P,DESC)
    CU01- this table is having the different tabs in a tab strip for a each of the user defined schema.(SCHEMA-P,SEQNO-P,TABID)
    the data will be as follows
    In CU00
              SCHEMA1         first schema
              SCHEMA2         second schema
    In CU01
              SCHEMA1         01              TAB1
              SCHEMA1         02              TAB2
              SCHEMA2         01              TAB2
              SCHEMA2         02              TAB3
    I maintained above 2 tables in a view cluster by making  CU00 is the start point and defined the field dependencies as well.
    in the T-code SE54 i tried to copy the existing schema and all its dependencies(means all the dependent entries in the CU01 table also).
    when i pressed the SAVE  button it is going for the dump by saying due to duplicate entries in the table CU01.
    but it should check the consistency and display the error message when i pressed the COPY key.
    I am badly struck up here. Please help me on this issue.
    thanks in advance.

    Hi Gouri,
    CU01 and CU00 both are dictionary tables.
    What I think is, while copying all the dependencies for a particular schema the system ha to check whether the data can be inserted into the child tables or not. I too dont know whether this can be done or not.
    If not, it should display an error message stating that " primary key violation occurs please use different key values..."
    thanks for the reply.

  • How to insert the same location for many calendar-entries?

    Hi!
    I have to insert the same information for "location" into MANY calendar-entries. How can I do that? If it's not possible directly (what I think, because I tried then a sql-example would be great
    Greets, Marcus

    There is a User template in the System folder. I can't remember where, and I don't know how to edit the contents of that user template.
    Perhaps [MacOSXHints will show the way|http://www.macosxhints.com/article.php?story=20011010033851924].

  • How to guarantee that all the inserted data entries are shipped to the...

    How to guarantee that all the inserted data entries are shipped to the correct Coherence caches?
    I successfully created the table Employees, Address and Phone tables and their conresponding Java Classes. I also finished all the JPA and persistence works. Any updated data can persist to the corresponding database tables. Now I want to create the corresponding Coherence caches for these java objects. I want to know how to guarantee that all the inserted data entries are shipped to the correct Coherence caches? For example, guarantee all the employee data entries are added to the Employees caches and all the address data entries are shipped to the Address caches (do not ship the address data entries to the Phone or Employees caches)?
    Thank you

    qkc wrote:
    How to guarantee that all the inserted data entries are shipped to the correct Coherence caches?
    I successfully created the table Employees, Address and Phone tables and their conresponding Java Classes. I also finished all the JPA and persistence works. Any updated data can persist to the corresponding database tables. Now I want to create the corresponding Coherence caches for these java objects. I want to know how to guarantee that all the inserted data entries are shipped to the correct Coherence caches? For example, guarantee all the employee data entries are added to the Employees caches and all the address data entries are shipped to the Address caches (do not ship the address data entries to the Phone or Employees caches)?
    Thank youWhat persistence architecture are you using?
    - Cache stores with JPA/Toplink cache stores?
    - JPA implementation with Coherence used as a cache provider for the JPA engine?
    - TopLink grid?
    - anything else?
    Until you provide this bit of info, don't expect a meaningful answer...
    Best regards,
    Robert

  • Short Dump while INSERTING to a DB Z table

    There is one report that we are running in production. Earlier it was taking about 2hrs to run and now it's taking about 14-15 hours to run after we applied the Support Pack. I must agree that the report is not well written by the previous developers and I have been asked to rewrite it but in the meanwhile, they want to continue running the old one.
    This report deletes all the existing records first and then updates a Z table. Last week when they tried to run the report as batch job it got cancelled after running 22000 secounds and my basis team told me that logs are getting saturated and we need to use Truncate Statement instead of DELETE from table statement and that is what I did but again when they tried running the report in production it got cancelled again and this time after 55000 secs and this time it's getting cancelled in the last step when we are inserting the records back to the table from the internal table.
    So can you please tell me how can I take care of this.
    My Findings:
    1. Report updates a Z table for 700K records which is really not a very big size.
    2. Z table size category is customized for upto 48K to 93K . Does this matter when I try to update 700K records at a time.
    3. There is no foreign key relations in the Z table
    4. I feel that, it could be a basis problem like, memory related. Any light on this?
    5. The program currently uses INSERT statement.Can I try for a success using MODIFY statement. All validations are handled before inserting to remove the duplicates.So I dont see any issues using INSERT statement
    6. Can we use a commit statement after INSERT or MODIFY?
    7. From SAP help, I see that there is a limitation on the number of records can be inserted or modified. Any idea on the number?
    Thanks & Best Regards,
    Kiran Babu Dasari

    Dump:
    Runtime Errors         DBIF_RSQL_SQL_ERROR
    Exception              CX_SY_OPEN_SQL_DB
    Date and Time          01/01/2009 10:17:22
    Short text
    SQL error in the database when accessing a table.
    What can you do?
    Note which actions and input led to the error.
    For further help in handling the problem, contact your SAP administrator
    You can use the ABAP dump analysis transaction ST22 to view and manage
    termination messages, in particular for long term reference.
    How to correct the error
    Database error text........: "SQL0964C The transaction log for the database is
    full. SQLSTATE=57011 row=1"
    Internal call code.........: "[RSQL/INSR/ZTMM_PU_FOR_BW ]"
    Please check the entries in the system log (Transaction SM21).
    If the error occures in a non-modified SAP program, you may be able to
    find an interim solution in an SAP Note.
    If you have access to SAP Notes, carry out a search with the following
    keywords:
    "DBIF_RSQL_SQL_ERROR" "CX_SY_OPEN_SQL_DB"
    "ZPMM_BWLOAD_R_V2" or "ZPMM_BWLOAD_INC02"
    "FILL_ZTMM_PU_FOR_BW"
    If you cannot solve the problem yourself and want to send an error
    notification to SAP, include the following information:
    1. The description of the current problem (short dump)
    To save the description, choose "System->List->Save->Local File
    (Unconverted)".
    2. Corresponding system log
    Display the system log by calling transaction SM21.
    Restrict the time interval to 10 minutes before and five minutes
    after the short dump. Then choose "System->List->Save->Local File
    (Unconverted)".
    3. If the problem occurs in a problem of your own or a modified SAP
    program: The source code of the program
    In the editor, choose "Utilities->More
    Utilities->Upload/Download->Download".
    4. Details about the conditions under which the error occurred or which
    actions and input led to the error.
    The exception must either be prevented, caught within proedure
    "FILL_ZTMM_PU_FOR_BW" "(FORM)", or its possible occurrence must be declared in
    the
    RAISING clause of the procedure.
    To prevent the exception, note the following:
    System environment
    SAP-Release 700
    Application server... "ucerp13"
    Network address...... "192.168.254.23"
    Operating system..... "AIX"
    Release.............. "5.3"
    Hardware type........ "00C4B5BE4C00"
    Character length.... 16 Bits
    Pointer length....... 64 Bits
    Work process number.. 34
    Shortdump setting.... "full"
    Database server... "ucerp10"
    Database type..... "DB6"
    Database name..... "RP1"
    Database user ID.. "SAPRP1"
    Terminal................. " "
    Char.set.... "C"
    SAP kernel....... 700
    created (date)... "Oct 26 2008 20:51:39"
    create on........ "AIX 2 5 005DD9CD4C00"
    Database version. "DB6_81 "
    Patch level. 183
    Patch text.. " "
    Database............. "DB6 08.02., DB6 09."
    SAP database version. 700
    Operating system..... "AIX 1 5, AIX 2 5, AIX 3 5, AIX 1 6"
    Memory consumption
    Roll.... 16192
    EM...... 234631488
    Heap.... 0
    Page.... 24576
    MM Used. 28706288
    MM Free. 197532304
    User and Transaction
    Client.............. 400
    User................ "BATCHUC"
    Language key........ "E"
    Transaction......... " "
    Transactions ID..... "49597E9619C40076E1008000C0A8FE17"
    Program............. "ZPMM_BWLOAD_R_V2"
    Screen.............. "SAPMSSY0 1000"
    Screen line......... 6
    Information on where terminated
    Termination occurred in the ABAP program "ZPMM_BWLOAD_R_V2" - in
    "FILL_ZTMM_PU_FOR_BW".
    The main program was "ZPMM_BWLOAD_R_V2 ".
    In the source code you have the termination point in line 2886
    of the (Include) program "ZPMM_BWLOAD_INC02".
    The program "ZPMM_BWLOAD_R_V2" was started as a background job.
    Job Name....... "ZPMM_BWLOAD_R_V2"
    Job Initiator.. "BATCHSCHED"
    Job Number..... 10261500
    The termination is caused because exception "CX_SY_OPEN_SQL_DB" occurred in
    procedure "FILL_ZTMM_PU_FOR_BW" "(FORM)", but it was neither handled locally
    nor declared
    in the RAISING clause of its signature.
    The procedure is in program "ZPMM_BWLOAD_R_V2 "; its source code begins in line
    2751 of the (Include program "ZPMM_BWLOAD_INC02 ".
    Source Code Extract
    Line
    SourceCde
    2856
    itab_result-rec_no   = recnum.
    2857
    ENDIF.
    2858
    2859
    11/30/05 - Change it back after sorting
    2860
    IF linetype = 'AAA'.
    2861
    itab_result-linetype = 'INI'.
    2862
    ENDIF.
    2863
    itab_result-extractdate = e_sdate.
    2864
    itab_result-mandant     = sy-mandt.
    2865
    MODIFY itab_result INDEX indx.
    2866
    2867
    SELECT SINGLE
    2868
    rec_no
    2869
    ponumber
    2870
    FROM ztmm_pu_for_bw
    2871
    INTO CORRESPONDING FIELDS OF itab_duprec
    2872
    WHERE rec_no     = recnum
    2873
    AND ponumber   = pono
    2874
    AND   linetype = linetype
    2875
    AND   line_no  = lineno
    2876
    AND   changenr = chgno
    2877
    AND   chgind_h = indh
    2878
    AND   chgind_p = indp
    2879
    AND   tblname  = tbl
    2880
    AND   fldname  = fld.
    2881
    IF sy-subrc <> 0.
    2882
    MOVE-CORRESPONDING itab_result TO itab_result_bw.
    2883
    APPEND itab_result_bw.
    2884
    nrecs_results = nrecs_results + 1.
    2885
    >>>>>
    INSERT ztmm_pu_for_bw FROM TABLE itab_result_bw.
    2887
          INSERT zztmm_pu_for_bw FROM TABLE itab_result_bw.
    2888
    2889
    CLEAR itab_result_bw.
    2890
    REFRESH itab_result_bw.
    2891
    ENDIF.
    2892
    ENDLOOP.
    2893
    *change to array insert for performance
    2894
          INSERT ZZTMM_PU_FOR_BW FROM TABLE itab_result_bw.
    2895
    2896
    ENDFORM.                    " fill_ztmm_pu_for_bw
    Contents of system fields
    Name
    Val.
    SY-SUBRC
    4
    SY-INDEX
    0
    SY-TABIX
    1
    SY-DBCNT
    0
    SY-FDPOS
    0
    SY-LSIND
    0
    SY-PAGNO
    0
    SY-LINNO
    1
    SY-COLNO
    1
    SY-PFKEY
    SY-UCOMM
    SY-TITLE
    Load Purchasing Info. for BW Reporting
    SY-MSGTY
    E
    SY-MSGID
    TD
    SY-MSGNO
    600
    SY-MSGV1
    T710-08L04
    SY-MSGV2
    K01
    SY-MSGV3
    EN
    SY-MSGV4
    SY-MODNO
    0
    SY-DATUM
    20081231
    SY-UZEIT
    190013
    SY-XPROG
    SAPCNVE
    SY-XFORM
    CONVERSION_EXIT
    Active Calls/Events
    No.   Ty.          Program                             Include                             Line
    Name
    2 FORM         ZPMM_BWLOAD_R_V2                    ZPMM_BWLOAD_INC02                    2886
    FILL_ZTMM_PU_FOR_BW
    1 EVENT        ZPMM_BWLOAD_R_V2                    ZPMM_BWLOAD_R_V2                      192
    START-OF-SELECTION
    Chosen variables
    Name
    Val.
    No.       2 Ty.          FORM
    Name  FILL_ZTMM_PU_FOR_BW
    SY
    #######ৡ###################A###P#################ż#############################T#######린 u#̀##
    00000000000000000000000000000000000000010000000000000000000000000000000000000000000000FB000000
    000000090000000000000000000000000000000A0000000001000000000000000000000000000000000000F9000300
    0000000E0000000000000000000400050000000B0000000007000000000000000000000000000105000000FB270000
    0000010100000000000000000101010000000000000000040C000000000000000000000000000604000000F005000C
    ITAB_RESULT_BW-WAERS
    USD
    00000
    00000
    55422
    53400
    ITAB_RESULT-WAERS
    USD
    00000
    00000
    55422
    53400
    ITAB_RESULT_BW+5358(10)
    #U#C# #
    0205040202
    0005030000
    ITAB_RESULT+4160(10)
    #U#C# #
    0205040202
    0005030000
    AMTCRCHGPOSREGUA2
    00000000000
    0000000000C
    ITAB_RESULT_BW+5378(572)
    #S#h#i#p#p#i#n#g# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
    0205060607070606060202020202020202020202020202020202020202020202020202020202020202020202020202
    000308090000090E070000000000000000000000000000000000000000000000000000000000000000000000000000
    ITAB_RESULT+4170(572)
    #S#h#i#p#p#i#n#g# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
    0205060607070606060202020202020202020202020202020202020202020202020202020202020202020202020202
    000308090000090E070000000000000000000000000000000000000000000000000000000000000000000000000000
    C_INITIAL
    @0E@
    000000
    000000
    434422
    005000
    ITAB_RESULT_BW-ORT01
    Cincinnati
    00000000000000000000000000000000000
    00000000000000000000000000000000000
    46666666762222222222222222222222222
    39E39EE1490000000000000000000000000
    ITAB_RESULT-ORT01
    Cincinnati
    00000000000000000000000000000000000
    00000000000000000000000000000000000
    46666666762222222222222222222222222
    39E39EE1490000000000000000000000000
    ITAB_RESULT_BW-PSTLZ
    45206
    0000000000
    0000000000
    3333322222
    4520600000
    ITAB_RESULT-PSTLZ
    45206
    0000000000
    0000000000
    3333322222
    4520600000
    ITAB_RESULT_BW-REGIO
    OH
    000
    000
    442
    F80
    ITAB_RESULT-REGIO
    OH
    000
    000
    442
    F80
    ITAB_RESULT_BW-STRAS
    2709 Woodburn Ave.
    00000000000000000000000000000000000
    00000000000000000000000000000000000
    33332566667762476222222222222222222
    270907FF4252E0165E00000000000000000
    ITAB_RESULT-STRAS
    2709 Woodburn Ave.
    00000000000000000000000000000000000
    00000000000000000000000000000000000
    33332566667762476222222222222222222
    270907FF4252E0165E00000000000000000
    %_SPACE
    0
    0
    2
    0
    ITAB_RESULT_BW+6154(4)
    0202
    0000
    ITAB_RESULT+4908(4)
    0202
    0000
    LW_LINES
    164
    000A
    0004
    ITAB_RESULT_BW-TELF1
    961-1122
    0000000000000000
    0000000000000000
    3332333322222222
    961D112200000000
    ITAB_RESULT-TELF1
    961-1122
    0000000000000000
    0000000000000000
    3332333322222222
    961D112200000000
    ITAB_RESULT_BW-LAND1
    US
    000
    000
    552
    530
    ITAB_RESULT-LAND1
    US
    000
    000
    552
    530
    COUNTROCHGNEGCONOVER1K2
    0
    0000
    0000
    ITAB_RESULT_BW+6158(337)
    #0#3#6#0#-#0#0# # # # # # # # # # # # # #M#R#O# #&# #C#o#n#s#t#r#u#c#t#i#o#n#A#t#h#l#e#t#i#c
    0203030303020303020202020202020202020202020405040202020406060707070706070606060407060606070606
    00000306000D0000000000000000000000000000000D020F000600030F0E030402050304090F0E0104080C05040903
    ITAB_RESULT+4950(337)
    #0#3#6#0#-#0#0# # # # # # # # # # # # # #M#R#O# #&# #C#o#n#s#t#r#u#c#t#i#o#n#A#t#h#l#e#t#i#c
    0203030303020303020202020202020202020202020405040202020406060707070706070606060407060606070606
    00000306000D0000000000000000000000000000000D020F000600030F0E030402050304090F0E0104080C05040903
    ITAB_CHGLOG[]
    Table IT_33[587x1576]
    \PROGRAM=ZPMM_BWLOAD_R_V2\DATA=ITAB_CHGLOG[]
    Table reference: 25
    TABH+  0(20) = 070000009070DB38000000000000000000000000
    TABH+ 20(20) = 00000019000000210000024B00000628FFFFFFFF
    TABH+ 40(16) = 040000000000149000082C9401800000
    store        = 0x070000009070DB38
    ext1         = 0x0000000000000000
    shmId        = 0     (0x00000000)
    id           = 25    (0x00000019)
    label        = 33    (0x00000021)
    fill         = 587   (0x0000024B)
    leng         = 1576  (0x00000628)
    loop         = -1    (0xFFFFFFFF)
    xtyp         = TYPE#000095
    occu         = 8     (0x00000008)
    access       = 1     (ItAccessStandard)
    idxKind      = 1     (ItIndexLinear)
    uniKind      = 2     (ItUniqueNon)
    keyKind      = 1     (default)
    cmpMode      = 2     (cmpSingleMcmpR)
    occu0        = 1
    groupCntl    = 0
    rfc          = 0
    unShareable  = 0
    mightBeShared = 0
    sharedWithShmTab = 0
    isShmLockId  = 0
    gcKind       = 0
    isUsed       = 1
    isCtfyAble   = 1
    >>>>> Shareable Table Header Data <<<<<
    tabi         = 0x07000000A0E13E70
    pgHook       = 0x07000000B2EBC728
    idxPtr       = 0x07000000906BA5E0
    shmTabhSet   = 0x0000000000000000
    id           = 32    (0x00000020)
    refCount     = 0     (0x00000000)
    tstRefCount  = 0     (0x00000000)
    lineAdmin    = 1024  (0x00000400)
    lineAlloc    = 592   (0x00000250)
    shmVersId    = 0     (0x00000000)
    shmRefCount  = 469   (0x000001D5)
    >>>>> 1st level extension part <<<<<
    regHook      = Not allocated
    collHook     = Not allocated
    ext2         = Not allocated
    >>>>> 2nd level extension part <<<<<
    tabhBack     = Not allocated
    delta_head   = Not allocated
    pb_func      = Not allocated
    pb_handle    = Not allocated
    ITAB_RESULT_BW+3592(1026)
    0202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202
    0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    ITAB_RESULT+5798(1026)
    0202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202
    0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    ITAB_RESULT_BW-MANDANT
    400
    000
    000
    333
    400
    ITAB_RESULT-MANDANT
    400
    000
    000
    333
    400
    AMTTCCHGPOSREGST2
    00000000000
    0000000000C
    ITAB_RESULT_BW[]
    Table IT_132[1x6760]
    \PROGRAM=ZPMM_BWLOAD_R_V2\DATA=ITAB_RESULT_BW[]
    Table reference: 51
    TABH+  0(20) = 07000000A9A1FEA8000000000000000000000000
    TABH+ 20(20) = 00000033000000840000000100001A68FFFFFFFF
    TABH+ 40(16) = 0400000000003140000224C401800000
    store        = 0x07000000A9A1FEA8
    ext1         = 0x0000000000000000
    shmId        = 0     (0x00000000)
    id           = 51    (0x00000033)
    label        = 132   (0x00000084)
    fill         = 1     (0x00000001)
    leng         = 6760  (0x00001A68)
    loop         = -1    (0xFFFFFFFF)
    xtyp         = TYPE#000248
    occu         = 2     (0x00000002)
    access       = 1     (ItAccessStandard)
    idxKind      = 0     (ItIndexNone)
    uniKind      = 2     (ItUniqueNon)
    keyKind      = 1     (default)
    cmpMode      = 8     (cmpManyEq)
    occu0        = 1
    groupCntl    = 0
    rfc          = 0
    unShareable  = 0
    mightBeShared = 0
    sharedWithShmTab = 0
    isShmLockId  = 0
    gcKind       = 0
    isUsed       = 1
    isCtfyAble   = 1
    >>>>> Shareable Table Header Data <<<<<
    tabi         = 0x07000000A283E980
    pgHook       = 0x0000000000000000
    idxPtr       = 0x0000000000000000
    shmTabhSet   = 0x0000000000000000
    id           = 141   (0x0000008D)
    refCount     = 0     (0x00000000)
    tstRefCount  = 0     (0x00000000)
    lineAdmin    = 2     (0x00000002)
    lineAlloc    = 2     (0x00000002)
    shmVersId    = 0     (0x00000000)
    shmRefCount  = 1     (0x00000001)
    >>>>> 1st level extension part <<<<<
    regHook      = Not allocated
    collHook     = Not allocated
    ext2         = Not allocated
    >>>>> 2nd level extension part <<<<<
    tabhBack     = Not allocated
    delta_head   = Not allocated
    pb_func      = Not allocated
    pb_handle    = Not allocated
    ITAB_RESULT_BW
    400##͒4500034945
    0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    0000030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    3330053333333333222222222222222222222222222222222222222222222222222222222222222222222222222222
    4000024500034945000000000000000000000000000000000000000000000000000000000000000000000000000000
    %_DUMMY$$
    0000
    0000
    2222
    0000
    COUNTTCCHGNEGCONST3
    0
    0000
    0000
    <%_TABLE_ZTMM_PU_FOR_BW>
    AMTTOTAL3
    00000000000
    0000000000C
    No.       1 Ty.          EVENT
    Name  START-OF-SELECTION
    T023T
    000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222
    000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    T024
    0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    2222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222
    0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    T161
    00000                                   00000
    0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    2222222223333322222222222222222222222222222222222333332222222222222222222222222222222222222222
    0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    TWLAD
    000000000000000000000000
    000000000000000000000000
    222222222222222222222222
    000000000000000000000000
    ZTMM_BOA
    0000000000000000
    0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    2222222222222223333333333333333222222222222222222222222222222222222222222222222222222222222222
    0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    ZTMM_PU_FOR_BW
    0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    2220002222222222222222222222222222222222222222222222222222222222222222222222222222222222222222
    0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    ZTPU_DOCTYPE
    0000000000000000000000000000000000
    0000000000000000000000000000000000
    2222222222222222222222222222222222
    0000000000000000000000000000000000
    USR02
    ####0000000000000000             #                        000000000000000000000
    0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    2222222222222220000333333333333333322222222222220222222222222222222222222333333333333333333333
    0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    SSCRFIELDS
    0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    2222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222
    0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    C_BLUESQUAREX
    @3X@
    000000
    000000
    435422
    038000
    Internal notes
    The termination was triggered in function "HandleRsqlErrors"
    of the SAP kernel, in line 786 of the module
    "//bas/700_REL/src/krn/runt/absapsql.c#11".
    The internal operation just processed is "SQLS".
    Internal mode was started at 20081231190002.
    Internal call code.........: "[RSQL/INSR/ZTMM_PU_FOR_BW ]"
    Active Calls in SAP Kernel
    Lines of C Stack in Kernel (Structure Differs on Each Platform)
    => 64 bit R/3 Kernel
    => 64 bit AIX Kernel
    => Heap limit      = unlimited
    => Stack limit     = 4294967296
    => Core limit      = 1073741312
    => File size limit = unlimited
    => Heap address  = 0x0x11c0f5d60
    => Stack address = 0xfffffffffff8040
    => Stack low     =  0xfffffffffff8040
    => Stack high    =  0xffffffffffff800
    => Stack Trace:
         AixStack() at 0x1000c945c
         CTrcStack2() at 0x1000c9554
         rabax_CStackSave__Fv() at 0x1000b3ee0
         ab_rabax() at 0x1000b0628
         ab_rsqlerr__FPCUsiT1P11RS_HEADER94T1Pv() at 0x10058c010
         HandleRsqlErrors__F9RsqlError9CloseMode() at 0x1017f1e94
         SqlsExecuteCall__FUcP11DynCallInfo() at 0x1017efc68
         ab_jsqls__Fv() at 0x1017ea82c
         ab_extri__Fv() at 0x100419ca0
         ab_xevent__FPCUs() at 0x10094e47c
         ab_trigg__Fv() at 0x10094e168
         ab_run() at 0x1011aabb8
         N_ab_run() at 0x100f6edc0
         dynpmcal() at 0x100f6d9c4
         dynppai0() at 0x100f6b2c8
         dynprctl() at 0x100f7375c
         dynpen00() at 0x100f6761c
         Thdynpen00() at 0x1000e3c6c
         TskhLoop() at 0x1000e5b64
         ThStart() at 0x1001000c0
         DpMain() at 0x101301d34
         nlsui_main() at 0x101abea68
    List of ABAP programs affected
    Index
    Typ
    Program
    Group
    Date
    Time
    Size
    Lang.
    0
    Prg
    ZPMM_BWLOAD_R_V2
    0
    12/31/2008
    10:10:08
    409600
    E
    1
    Prg
    SAPMSSY0
    1
    05/30/2008
    12:59:05
    92160
    E
    2
    Prg
    SAPMSSYD
    1
    08/16/2006
    12:06:37
    21504
    E
    3
    Prg
    SAPFSYSCALLS
    1
    09/09/2004
    14:18:32
    7168
    E
    4
    Prg
    RSDBRUNT
    0
    12/13/2008
    02:15:03
    254976
    E
    5
    Prg
    SAPLSPRI
    5
    12/13/2008
    02:14:06
    342016
    E
    6
    Typ
    PRI_PARAMS
    0
    11/02/1998
    09:46:12
    5120
    7
    Typ
    ARC_PARAMS
    0
    08/28/1997
    08:36:28
    6144
    8
    Typ
    PRI_LAYOUT
    0
    11/06/2003
    20:30:04
    2048
    9
    Typ
    PRIPAR_EXT
    0
    05/18/2004
    14:07:03
    3072
    10
    Typ
    PRIPAR_EX2
    0
    11/09/2000
    14:10:39
    2048
    11
    Typ
    PRIPAR_EX3
    0
    05/18/2004
    14:07:03
    5120
    12
    Typ
    TPRI_DEF
    0
    11/09/2000
    14:24:28
    5120
    13
    Typ
    USR01
    0
    05/30/2008
    19:06:47
    4096
    14
    Typ
    TSP1D
    0
    11/15/2000
    17:58:02
    5120
    15
    Prg
    SAPLSPOO
    15
    12/13/2008
    02:14:06
    160768
    E
    16
    Prg
    SAPLRSPOLSTDRV
    16
    12/13/2008
    02:13:54
    58368
    E
    17
    Typ
    TSPOPTIONS
    0
    01/29/1997
    19:13:56
    2048
    18
    Typ
    TSP03
    0
    11/02/1998
    09:57:05
    5120
    19
    Typ
    TSP0A
    0
    11/15/2000
    17:58:02
    6144
    20
    Typ
    TSP03C
    0
    11/21/2003
    11:41:10
    7168
    21
    Typ
    TSP03T
    0
    03/23/1998
    18:21:38
    6144
    22
    Typ
    TSP06A
    0
    11/15/2000
    17:58:02
    7168
    23
    Prg
    SAPCNVE
    23
    09/09/2004
    14:36:10
    8192
    E
    24
    Prg
    SAPLSPOC
    24
    12/13/2008
    02:15:07
    137216
    E
    25
    Typ
    TSP03L
    0
    07/10/1997
    00:46:18
    2048
    26
    Typ
    RSPOCHECK
    0
    08/13/1997
    12:53:10
    4096
    27
    Typ
    TSP03A
    0
    07/10/1997
    00:46:15
    3072
    28
    Prg
    SAPLSPOR
    28
    12/13/2008
    02:15:07
    39936
    E
    29
    Prg
    SAPLSPOB
    29
    05/30/2008
    09:36:14
    67584
    E
    30
    Prg
    SAPLSDEX
    30
    09/09/2004
    14:20:42
    22528
    E
    31
    Typ
    DD07T
    0
    05/30/2008
    00:38:18
    3072
    32
    Typ
    DEVPAR
    0
    12/04/2000
    12:46:11
    3072
    33
    Typ
    RSPOATTR
    0
    11/10/1999
    17:44:19
    2048
    34
    Typ
    RSSCR
    0
    03/30/2005
    10:21:45
    5120
    35
    Prg
    RSDBSPBL
    0
    03/30/2005
    10:21:58
    72704
    E
    36
    Prg
    SAPDB__S
    0
    03/30/2005
    10:22:01
    19456
    E
    37
    Typ
    VARID
    0
    05/12/1997
    16:51:30
    4096
    38
    Typ
    SSCRFIELDS
    0
    05/13/1997
    12:54:26
    5120
    39
    Prg
    %_CSYDB0
    0
    03/30/2005
    10:21:45
    35840
    E
    40
    Prg
    RSDBSPVA
    0
    12/13/2008
    02:15:03
    133120
    E
    41
    Typ
    RSVAMEMKEY
    0
    05/07/1997
    13:07:49
    5120
    42
    Prg
    RSDBSPMC
    0
    08/16/2006
    11:55:58
    79872
    E
    43
    Typ
    DDSHDESCR
    0
    09/03/1997
    03:05:16
    4096
    44
    Typ
    SPPARAMS
    0
    05/07/1997
    13:10:38
    2048
    45
    Prg
    SAPLICON
    45
    05/30/2008
    13:22:44
    27648
    E
    46
    Prg
    %_CICON
    45
    05/30/2008
    13:22:44
    107520
    E
    47
    Typ
    ICONT
    0
    08/16/2006
    11:55:57
    2048
    48
    Prg
    SAPLSABE
    48
    09/09/2004
    14:18:36
    12288
    E
    49
    Prg
    SAPLSECU
    49
    05/30/2008
    11:07:13
    87040
    E
    50
    Typ
    RSSUBINFO
    0
    10/14/1999
    22:01:03
    2048
    51
    Typ
    RSEXFCODE
    0
    08/13/1997
    12:52:57
    2048
    52
    Prg
    SAPLDSYA
    52
    05/30/2008
    12:53:05
    45056
    E
    53
    Prg
    SAPFSDS1
    52
    03/30/2005
    10:22:01
    52224
    E
    54
    Typ
    TDCLD
    0
    11/02/1998
    09:51:35
    6144
    55
    Prg
    SAPLSDOD
    55
    01/25/2006
    10:59:45
    45056
    E
    56
    Typ
    DOKIL
    0
    05/12/1997
    16:46:17
    3072
    57
    Prg
    SAPLLANG
    57
    09/09/2004
    14:18:35
    10240
    E
    58
    Typ
    T002
    0
    05/30/2008
    00:53:58
    2048
    59
    Prg
    SAPFSPOR
    0

  • Facing problem in select statement dump DBIF_RSQL_INVALID_RSQL CX_SY_OPEN_S

    Hi Experts,
    I  am facing the problem in the select statement where it giving the short dump
    DBIF_RSQL_INVALID_RSQL CX_SY_OPEN_S.
    i have searched many forms, but i found that the select option s_matnr have the limitaion 2000 entreis, but i am passing same s_matnr to other select statement with more than 2000 entries but it is not giving me any short dump.
    but i am facing problem with only one select statement where if i  pass select option s_matnr more than 1500 entris also giving short dump.
    my select statement is
    SELECT * FROM bsim                                       
             INTO CORRESPONDING FIELDS OF TABLE g_t_bsim_lean  
               FOR ALL ENTRIES IN t_bwkey   WHERE  bwkey = t_bwkey-bwkey
                                            AND    matnr IN matnr
                                            AND    bwtar IN bwtar
                                            AND    budat >= datum-low.
    in the internal table g_t_bsim_lean internal table contain all the fields of the table bsim with 2 fields from other table.
    Please let me know whether i need to change the select statement or any other solution for this.
    Regards,
    udupi

    my select query is like this:
    DATA: BEGIN OF t_bwkey OCCURS 0,                          "184465
              bwkey LIKE bsim-bwkey,                            "184465
            END OF t_bwkey.                                     "184465
      LOOP AT g_t_organ          WHERE  keytype  =  c_bwkey.
        MOVE g_t_organ-bwkey     TO  t_bwkey-bwkey.
        COLLECT t_bwkey.                                        "184465
      ENDLOOP.                                                  "184465
      READ TABLE t_bwkey INDEX 1.                               "184465
      CHECK sy-subrc = 0.                                       "184465
      SELECT * FROM bsim                                        "n443935
             INTO CORRESPONDING FIELDS OF TABLE g_t_bsim_lean   "n443935
               FOR ALL ENTRIES IN t_bwkey   WHERE  bwkey = t_bwkey-bwkey
                                            AND    matnr IN matnr
                                            AND    bwtar IN bwtar
                                            AND    budat >= datum-low.

  • Dump DBIF_RSQL_INVALID_RSQL

    Dear all
    I am facing a problem related to abap program, when I run the program like zmatlist
    When I give Material Number in selection option ( for example 20000 Material Number )
    In one go then abap report give me the following DUMP
    DBIF_RSQL_INVALID_RSQL
    CX_SY_OPEN_SQL_DB
    And when in give selection option in chunk the that report run fine
    After the dump I check dev_w0 file it shows like that
    *C *** ERROR => max. statement length (65536) exceeded*
    http://dbsloci.c 5759
    C Dumping statement ...
    C 0 | TEXT | 6 | SELECT
    C 1 | TEXT | 4 | T_00
    C 2 | TEXT | 1 | .
    C 3 | IDENTIFIER | 5 | BISMT
    So on
    C 17481 | TEXT | 3 | AND
    C 17482 | TEXT | 4 | T_02
    C 17483 | TEXT | 1 | .
    C 17484 | IDENTIFIER | 5 | WERKS
    C 17485 | TEXT | 1 | =
    C 17486 | MARKER(8588)| 0 | NULL
    C token_cnt=17487, input_cnt=8589, marker_cnt=8589, stmt_length=86128
    B ***LOG BYK=> current SQL statement exceeds a database limit dbtran#5 @ 7261 dbtran 7261
    B dbtran ERROR LOG (hdl_dbsl_error): DbSl 'PRE'
    thankx
    Rayyan

    Hi Shahid,
    Please refer OSS note:
    Note 48230 - Parameters for the SELECT ... FOR ALL ENTRIES statement
    which explains the various option to solve your problem.
    The dump is occuring because of too many inputs(20000 material number) in the select option.
    Please let me know if this helpful, by rating.
    Regards
    Prashanth

  • How to add the entries and how to delete the entries from custom Z-table?

    Hi Experts,
    My requirement is I need to add the entries from program to three custom z-tables . Assume as zabc1,zabc2,zabc3.
    Here how to add the entries from program to Z-table.???
    And one more requirement is I want to provide a deletion checkbox in selection screen . Initial it was unchecked. If I am giving tick mark then the entries should be deleted from above custom Z-tables. this all will done in backgroung job?
    Could you please guide me the logic how to crack this???
    Let me know if you need more Info
    Thanks
    Sanju

    Hi Sanjana,
    What you can do is to use the ABAP keyword INSERT or MODIFY to add or modify records to a given database table. Here are the syntax taken from SAP documentation:
    *Insert Statement
    INSERT dbtab
    Syntax
    INSERT { {INTO target VALUES source }
           | {     target FROM   source } }.
    Effect
    The INSERT statement inserts one or more rows specified in source in the database table specified in target. The two variants with INTO and VALUES or without INTO with FROM behave identically, with the exception that you cannot specify any internal tables in source after VALUES.
    System Fields
    The INSERT statement sets the values of the system fields sy-subrc and sy-dbcnt.
    sy-subrc Meaning
    0 At least one row was inserted.
    4 At least one row could not be inserted, because the database table already contains a row with the same primary key or a unique secondary index.
    The INSERT statement sets sy-dbcnt to the number of rows inserted.
    Note
    The inserted rows are finally included in the table in the next database commit. Up until this point, they can still be removed by a database rollback.
    *Modify Statement
    MODIFY dbtab
    Syntax
    MODIFY target FROM source.
    Effect
    The MODIFY statement inserts one or several lines specified in source in the database table specified in target, or overwrites existing lines.
    System fields
    The MODIFY statement sets the values of the sy-subrc and sy-dbcnt system fields.
    sy-subrc Meaning
    0 At least one line is inserted or changed.
    4 At least one line could not be processed since there is already a line with the same unique name secondary index in the database table.
    The MODIFY statement sets sy-dbcnt to the number of processed lines.
    Note
    The changes are transferred finally to the database table with the next database commit. Up to that point, they can be reversed using a database rollback.
    Hope it helps...
    P.S. Please award points if it helps...

  • Unable to change the entries in SM30

    Hi all,
    In my program i am inserting records using MODIFY DBTAB.
    COMMIT WORK.
    After the prog execution i hv to change the entries in the DBTAB.
    I am unable to change the created records.
    Can u pls explain me what is happening here?
    Thanks in advance
    Praveen

    To be able to use SM30 to modify any data in a database table you need to have a maintenance dialog generated for that table.
    If you have one generated depending on the type of the dialog (maintenance allowed with restrictions) you will still not be able to modify the data.
    If you need to change data through SM30 you should either create (or change to maintenance allowed without restrictions) and regenerate the table maintenance dialog. Make sure that the existing dialog doesn't have any customization to it because that will all be lost after regeneration.
    The other option to change the data is would be through SE16 and debugger or through a program.
    Hope that helps,
    Michael

  • Adding caller with name and number from call list to the contact list only inserts the number and not the name

    I recently bought a BlackBerry Z10 and moved my cell service to Rogers to take advantage of the name display service offered by Rogers (Fido also offers this service).
    Due to the number of calls that I receive from first time clients, I wanted the name display service to help me know who was calling. Evidently it is impossible to add clients to my contact list before they call me so I'm constantly seeing numbers that have no name to help me decide if I want to answer the call.
    When I try to add a caller from my call list to my contact list, only the number gets inserted in the new contact. The name needs to be entered manually.
    I understand and realize that not all call display formats are the same and that it's virtually impossible to parse the first and last names from the name portion of the caller id.
    However, I would like to see BlackBerry add the functionality to insert the name portion of the call entry from the caller list to a "Nickname" entry in the contact list just like it adds the number to a "Home", "Mobile", or "Work" entry in the contact list.
    If a user doesn't have a name display service, there would be no change to how their contacts are added because there is no name variable to copy over.
    Can someone from BlackBerry please let me know if this feature can be added to BB10 and when it can be added? For me it's an obvious feature that should just work.
    I am really enjoying my Z10 but I'm feeling let down that something so logical and helpful is not supported out of the box.
    Regards,
    Marc

    Hey ViciousFerret,
    It appears that you are not aware of the fact that both Rogers and Fido offer name AND number display service (although the name display feature is an add-on service) and have been offering it for many years (since 2006). Here is a link to the name display service description of each provider...
    http://www.fido.ca/web/content/manageyourcalls/calldisplay&lang=en
    http://www.rogers.com/business/on/en/smallbusiness/products/wireless/addons/valuepacks/
    As you can see from the link below, Rogers and Fido have been offering this service since 2006.
    http://www.businesswire.com/news/home/20060914005951/en/Teams-HP-Rogers-Wireless-Fido-Succeed-North
    My BlackBerry Z10 shows both the name and number when someone calls (and the caller is not in my contact list).
    All I would like is for the Z10 (and Q10) to support the addition of the name and number from the caller list to my contact list without me having to type the name. As I mentioned in my original post, to avoid the OS having to parse the first name and last name from the name portion of the caller list entry the name could simply be added to the contact list as a "Nickname". If your provider only has number display, nothing would have to be copied from the name variable in the caller list to the contact list.
    I find it difficult to believe that BlackBerry would not be aware of this name display service since it's been around since 2006 with both Rogers and Fido.
    I hope I have clarified the reasons why I would like to have this feature added to BB10 and how it's surprising that this simple feature is not already a part of the BB10 OS.
    Either way, I don't think this is a difficult feature for the BlackBerry team to add. They're just copying a 2nd variable from the caller list to the contact list.
    I'm surprised that Rogers hasn't asked BlackBerry to add this feature to their phones. I think it would be a popular feature for those who receive a high number of calls from first time callers.
    How can I get this feature request to BlackBerry for their consideration?
    Cheers,
    Marc

  • How to deal with Short dump that restarts the index server?

    Hi ,
    I have been experiencing this problem whenever any exception occurs in my SQL SCRIPT procedure. For instance when there is a situation when I try to insert a value of 50 characters in length to a column with max size of 40 it throws a short dump and restarts the index server. I tried to insert the exception handling code as well but still the problem persists. Is there a way to solve this issue?

    Hi Sudarshan
    crashes are rather generic reactions of the system to virtually any kind of problem that may occur.
    Memory shortage is one of the more common issues in current SAP HANA setups and SAP HANA development is heavily working on handling memory shortage situations more gracefully.
    Massive over allocation of memory, for example by very large intermediate result sets or join result sets typically can be addressed by correcting the query or model that leads to the issue.
    Anyhow, the initial post was not about a memory shortage but about a crash that seemed to have occurred with wrong data type handling.
    These are two very different kinds of problems, so I am not really sure how your comment relates here.
    - Lars

  • Inserting an entry in to a partition in a particular node

    I have the below scenario
    (1) Initiate Cache A with a Map Trigger
    (2) Initiate Cache B
    (3) Insert Entry A into Cache A. This will call the Map Trigger
    (4) I am inserting Entry B into Cache B in the Map Trigger
    I want to keep Entry A and Entry B in the same node. Data affinity would not work on this scenario since Cache A and Cache B are from two different cache services.
    Cache A and Cache B are distributed caches.
    Is there a way I can specify the Entry B to be inserted to the same node that the trigger is running ?
    Thanks
    Dasun.

    Dasun.Weerasinghe wrote:
    I have the below scenario
    (1) Initiate Cache A with a Map Trigger
    (2) Initiate Cache B
    (3) Insert Entry A into Cache A. This will call the Map Trigger
    (4) I am inserting Entry B into Cache B in the Map Trigger
    I want to keep Entry A and Entry B in the same node. Data affinity would not work on this scenario since Cache A and Cache B are from two different cache services.
    Cache A and Cache B are distributed caches.
    Is there a way I can specify the Entry B to be inserted to the same node that the trigger is running ?
    Thanks
    Dasun.Hi Dasun,
    there can be no hard guarantees provided by Coherence to this problem, as Coherence cannot guarantee that you configured it in a way that both cache services are running on exactly the same nodes in storage-enabled way, nor that you configured the same partition count. Also, different lifecycle-related events can happen to the service which could make only one of the services die on a certain node...
    There is a best-effort PartitionAssignmentStrategy implementation (called com.tangosol.net.partition.MirroringAssignmentStrategy) which assumes that configuration is appropriate but even that cannot guarantee that the partition lifecycles are synchronized together, therefore even with that the trigger should not go to the backing map of the other service. Also, if service B is overwhelmed by operations, it would also make service A run slow if service A invoked service B from within the trigger.
    The only safe approach is to use MirroringAssignmentStrategy and offload operations from the trigger to another (single) thread which would carry out operations on service B, which would hopefully be local operations but even if not, it would not break. The usual idempotency concerns of course apply as operations on service A may be re-executed leading to double execution on the trigger A.
    Best regards,
    Robert

  • Is it Necessary to lock the table while accessing the entries from table

    Hi Gurus,
    While optimization of the Program i came through one type of coding is in  inside the Loop of The internal table  which is processing BDC call transcation through updating the Custom table.
    Before processing the BDC, the Custom table has been locked and read the entries from same custom  table ,if the process fails then it waits for another 20 seconds and retrying the same for another time .I could not able to understand the Logic behind this.if it is not the Correct way then i can straight away remove this Part which is very well improve the perfromance of the Object.
    For Your Better Understanding i have attached the Snippet of the Code .Please find the Code and advice me the same .
    +LOOP AT i_stk_req INTO wa_stk_req.+
    +**  Lock is set to '0',meaning that no lock exist.+
        ++v_lock = 0.    "FALSE.++
    ++*   Preparing variable key for locking.++
        ++CLEAR v_key.++
        ++v_key = sy-mandt.++
        ++v_key+3(3) = wa_stk_req-lgnum.++
        ++v_key+6(4) = wa_stk_req-werks.++
        ++v_key+10(18) = wa_stk_req-matnr.++
        ++v_key+28(10) = wa_stk_req-charg.++
    ++*   Try to lock the row for max of 100 times.++
        ++DO 10 TIMES.++
    ++*     this perform sends sy-subrc EQ 1. in case of foreign lock.++
          +PERFORM enqueue_tab IN PROGRAM saplsvix USING 'ZSDT_STK_REQ'  v_key c_e c_e.+
          +IF sy-subrc EQ 0.          "If Enqueue is successful.+
    +**      set lock as TRUE+
            ++v_lock = 1.  "TRUE++
    ++*       selecting the latest entry for the table(Entry might have changed-refer to++
            +SELECT SINGLE *+
                    ++FROM zsdt_stk_req++
                    ++INTO wa_stk_req++
                   ++WHERE lgnum = wa_stk_req-lgnum++
                     ++AND werks = wa_stk_req-werks++
                     ++AND matnr = wa_stk_req-matnr++
                     ++AND charg = wa_stk_req-charg.++
            ++IF sy-subrc NE 0.        "Checking if select statement was successful++
    ++*         Unlock the table row.++
              ++PERFORM enqueue_tab IN PROGRAM saplsvix USING c_table v_key c_e c_d.++
              ++v_lock = 0.            "If unsuccessful.Then we set lock as FALSE.++
              ++EXIT.++
            ++ENDIF.++
            ++EXIT.++
    ++*     If unsuccessful in locking then wait for 1 sec.++
          +ELSE.+
           +WAIT UP TO 20 SECONDS.+
          +ENDIF.+
    +** exit from DO. ENDDO.+
        ++ENDDO.++
    ++*   v_lock will be FALSE if all attempts for lock was unsuccessful or++
    ++*   if there is a problem in select single after lock.++
        ++IF v_lock = 0.++
          ++NEW-PAGE.++
          ++CLEAR v_display.++
          ++CONCATENATE text-004 text-012 wa_stk_req-matnr text-011 wa_stk_req-werks++
                      ++text-019 wa_stk_req-lgnum text-020 wa_stk_req-charg INTO v_display SEPARATED BY space.++
          ++WRITE :/ v_display.++
        ++ENDIF.++
    ++*   Only to process if lock is successful.++
        ++CHECK v_lock NE 0.++
    ++*   If UPDATE IS FALSE that means that no updates need to be done.++
    ++*   So we set v_update as FALSE in its initial state.++
        ++v_update = 0.++
    ++* Begin of Insert Optima App - 053++
      ++SELECT   lgnum++
               ++lqnum++
               ++matnr++
               ++werks++
               ++charg++
               ++lgtyp++
               ++meins++
               ++verme++
               ++lgort++
               ++qplos++
               ++bestq++
          ++FROM lqua++
          ++INTO TABLE i_lqua1++
         ++WHERE lgnum EQ wa_lqua-lgnum++
           ++AND matnr EQ wa_lqua-matnr++
           ++AND werks EQ wa_lqua-werks++
           ++AND charg EQ wa_lqua-charg++
           ++AND bestq EQ wa_lqua-bestq++
           ++AND lgort EQ wa_lqua-lgort++
           ++AND verme GE 0.++
    ++* End of Insert Optima App - 053++
    ++*   IF a requirement still exists.++
        ++IF wa_stk_req-verme > 0.++
          ++LOOP AT i_lqua INTO wa_lqua WHERE bestq  = 'Q'++
                                      ++AND   qplos  NE 0++
                                      ++AND   lgnum  =  wa_stk_req-lgnum++
                                      ++AND   werks  =  wa_stk_req-werks++
                                      ++AND   matnr  =  wa_stk_req-matnr++
                                      ++AND   charg  =  wa_stk_req-charg.++
            ++CLEAR v_target.++
            ++CHECK wa_stk_req-lgtyp = wa_lqua-lgtyp OR wa_stk_req-lgtyp IS INITIAL.++
    ++*       checking if still some stock needs to be transported.++
            ++IF wa_stk_req-verme < 0.++
              ++EXIT.++
            ++ENDIF.++
    ++*       we need to send the entire lot if the stock belongs to quality inspection++
            ++IF wa_stk_req-verme >= wa_lqua-verme.++
              ++IF wa_stk_req-lgort IS INITIAL.++
    ++*           fetch the Storage location value from the two custom tables.++
                ++PERFORM f_fetch_lgort.++
              ++ELSE.++
                ++v_lgort = wa_stk_req-lgort.++
              ++ENDIF.++
    ++*         checking if v_lgort is not initial.++
              ++CHECK NOT v_lgort IS INITIAL.++
    ++*         Calling QAC2++
              ++PERFORM f_qac2.++
    ++*         Checking if Post Good was successful.++
              +IF NOT wa_qamb-mblnr IS INITIAL.+
               +REFRESH i_lqua1.+
                +SELECT   lgnum+
                         +lqnum+
                         +matnr+
                         +werks+
                         +charg+
                         +lgtyp+
                         +meins+
                         +verme+
                         +lgort+
                         +qplos+
                         +bestq+
                    +FROM lqua+
                    +INTO TABLE i_lqua1+
                   +WHERE lgnum EQ wa_lqua-lgnum+
                     +AND matnr EQ wa_lqua-matnr+
                     +AND werks EQ wa_lqua-werks+
                     +AND charg EQ wa_lqua-charg+
                     +AND bestq EQ wa_lqua-bestq+
                     +AND lgort EQ wa_lqua-lgort+
                     +AND verme GE 0.+
                +SORT i_lqua1 BY lgtyp.+
                +CLEAR: wa_lqua1,+
                       +v_position.+
                +READ TABLE i_lqua1 INTO wa_lqua1 WITH KEY lgtyp = wa_lqua-lgtyp.+
                +IF sy-subrc EQ 0.+
                  +v_position = sy-tabix.+
                +ENDIF.+
                +SELECT SINGLE lgnum+
                               +ubnum+
                          +FROM lubu+
                          +INTO wa_lubu+
                          +WHERE lgnum = wa_lqua-lgnum+
                            +AND mblnr = wa_qamb-mblnr.+
                +CLEAR i_bdcdata.+
                +REFRESH i_bdcdata.+
                +REFRESH i_messtab.+
                +CLEAR wa_bdcdata.+
                +wa_bdcdata-program  = 'SAPML03T' .+
                +wa_bdcdata-dynpro   = '0141' .+
                +wa_bdcdata-dynbegin = 'X' .+
                +APPEND wa_bdcdata TO i_bdcdata .+
                +CLEAR wa_bdcdata .+
                +wa_bdcdata-fnam = 'BDC_OKCODE' .+
                +wa_bdcdata-fval = '/00' .+
                +APPEND wa_bdcdata TO i_bdcdata .+
                +CLEAR wa_bdcdata .+
                +wa_bdcdata-fnam = 'LUBU-UBNUM'.+
                +wa_bdcdata-fval = wa_lubu-ubnum.+
                +APPEND wa_bdcdata TO i_bdcdata .+
                +CLEAR wa_bdcdata .+
                +wa_bdcdata-fnam = 'LUBU-LGNUM'.+
                +wa_bdcdata-fval = wa_lqua-lgnum.+
                +APPEND wa_bdcdata TO i_bdcdata .+
                +CLEAR wa_bdcdata .+
                +wa_bdcdata-fnam = 'RL03T-DUNKL'.+
                +wa_bdcdata-fval = 'H'.+
                +APPEND wa_bdcdata TO i_bdcdata .+
                +CLEAR wa_bdcdata.+
                +wa_bdcdata-program  = 'SAPML03T' .+
                +wa_bdcdata-dynpro   = '0143' .+
                +wa_bdcdata-dynbegin = 'X' .+
                +APPEND wa_bdcdata TO i_bdcdata .+
                +CONCATENATE 'RL03T-SELKZ('+
                            +v_position+
                            +')'+
                      +INTO  v_str.+
                +CLEAR wa_bdcdata .+
                +wa_bdcdata-fnam = v_str.+
                +wa_bdcdata-fval = 'X'.+
                +APPEND wa_bdcdata TO i_bdcdata .+
                +CLEAR wa_bdcdata .+
                +wa_bdcdata-fnam = 'BDC_OKCODE' .+
                +wa_bdcdata-fval = 'BU' .+
                +APPEND wa_bdcdata TO i_bdcdata .+
                +CLEAR wa_bdcdata.+
                +wa_bdcdata-program  = 'SAPML03T' .+
                +wa_bdcdata-dynpro   = '0142' .+
                +wa_bdcdata-dynbegin = 'X' .+
                +APPEND wa_bdcdata TO i_bdcdata .+
                +CLEAR wa_bdcdata .+
                +wa_bdcdata-fnam = 'BDC_OKCODE' .+
                +wa_bdcdata-fval = 'BU' .+
                +APPEND wa_bdcdata TO i_bdcdata .+
    +*......changes as per ticket 44206+
    ++*            CLEAR wa_bdcdata .++
    ++*            wa_bdcdata-fnam = 'LQUAU-KZUAP(01)'.++
    ++*            wa_bdcdata-fval = 'X'.++
    ++*            APPEND wa_bdcdata TO i_bdcdata .++
    +*......end of changes as per ticket 44206+
                +CALL TRANSACTION 'LT05' USING i_bdcdata+
                                        +OPTIONS FROM wa_ctu_params+
                                        +MESSAGES INTO i_messtab.+
    Regards,
    Raja

    hi , please check the link below
    [http://help.sap.com/saphelp_nw70/helpdata/en/41/7af4c5a79e11d1950f0000e82de14a/content.htm|http://help.sap.com/saphelp_nw70/helpdata/en/41/7af4c5a79e11d1950f0000e82de14a/content.htm]

  • Delete all the entries in target table when message mapping?

    Hello Gurus,
    I have a requirement in the project. When I do message mapping, I need to delete all the entries in the target table and then insert the new rows. From searching the old posts, I know it is possible without BPM. Can anyone please help me out? I really appreciated it.
    Regards,
    Bai

    Hi Bai,
    Check the below links:
    http://help.sap.com/saphelp_nwpi711/helpdata/en/43/9519abb1146353e10000000a11466f/frameset.htm
    Defining a DELETE Statement 
    http://help.sap.com/saphelp_nwpi711/helpdata/en/44/7b6e85fde93673e10000000a114a6b/content.htm
    Thanks,

  • "the feature you are trying to use is on a RD-ROM or ohter removable disk that is not available insert the 'itunes' disk and click OK

    I've beeing having problems with Itunes since about january, wheneveer i click on itunes the error message reads "The file 'ituneslibrary.itl' cannot be opened because it was created by a newer version on of itunes", yet when i try to updat to itunes 11 or uninstall itunes from my computer i keep on getting a message stating  "the feature you are trying to use is on a RD-ROM or ohter removable disk that is not available insert the 'itunes' disk and click OK" what is the best way to fix this problem?

    yet when i try to updat to itunes 11 or uninstall itunes from my computer i keep on getting a message stating  "the feature you are trying to use is on a RD-ROM or ohter removable disk that is not available insert the 'itunes' disk and click OK"
    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    (2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

Maybe you are looking for

  • Connection Pooling in heavy traffic web-applications

    In a 24x7 web-app used by 3000-10000 concurrent users, what is the realistic number of maxmimum connections one should have defined in the application server's connection pool? The app has no caching mechanism therefore every page is a database hit.

  • Sound Blaster Audigy Drivers and Applications CD-Rom

    Does anyone know where I can get or download?the "Sound Blaster Audigy" "Drivers and applications" CD-rom? I have included a pic below: <img alt="cd-rom" src="http://www.geocities.com/pershingbpa/soundblastercd.jpg" align="left[/img] width="70" heigh

  • How provide reviews and ratings in App Store?

    I have an application I bought on my iPod. I want to go back in and create a review and rate the app but when I look at the app page in iTunes I cannot edit my rating stars and when I select write a review nothing happens. Following instructions foun

  • User modules in my programs

    Does anyone know how to allow a piece of code to be run in a pre-compiled application? By this, I mean that If I have written an application, and only made the class files available, but wish to allow the user to add their own modules to my program,

  • Escape key stopped working in Lion (wired keyboard)

    I upgraded my 27" iMac to Lion a few weeks ago, and over the last week or so I've noticed that the Escape key does not work. At all.  I am using a wired apple  aluminum keyboard with number pad. My problem appears to be system-wide, as none of the us