Include ZXRSAU01 doubt

Hi
It possible to call statment
"Delete from ZTABLE"
from the inside of Include ZXRSAU01?
I need such statement:
" when '2LIS_11_VAITM'.
   DELETE from ZTABLE.
   include ZXRSAU01_2LIS_11_VAITM."
THX
Adam

THX Siggi
for your suggestion.
One additional question.
It possible to check data package counter like this?
*---STARTCODE
DATA: S_COUNTER_DATAPAKID LIKE SY-TABIX.
case i_datasource.
   when '2LIS_11_VAITM'.
    IF S_COUNTER_DATAPAKID = 0.
    DELETE from ZTABLE'.
    COMMIT WORK.
    ENDIF.
    include ZXRSAU01_2LIS_11_VAITM.
*---ENDCODE
Adam

Similar Messages

  • I have include file doubt

    Hi Everybody,
    I have a doubt for include file.
    Here is the doubt,
    <!-#include file="test.html"->
    What is the working functionality the above code.
    Please tell me, if any one know the answer

    what include you are talking about
    [Include Directive|http://java.sun.com/products/jsp/tags/11/syntaxref11.fm6.html]
    or
    [<jsp:include>|http://java.sun.com/products/jsp/tags/11/syntaxref1112.html]

  • How to enhance the cube to include 0CS_TRN_QTY

    Hi Gurus
    In 2004S what are the steps to enhance the field, please help me.
    How to enhance the cube to include 0CS_TRN_QTY, this field is coming from GL Totals table? this is  new table included to 2004S.
    please help me
    Thanks
    lalit

    Hi Lalit,
    1) Go to Rsa6 and select the DS that belongs to your particular cube , and double click on it and note down the ES name .It is
    2) Go to Se11 and keep the ES name at DATATYPE and clcik on Display. and then Click on Append structure Button.
    3) Give the techinica name to AS in the immedaite screen and then give description in other screen and enter the zzfields that you want to add. Finally activate the Append Structure.
    4) aggin goto RSA6 and enter into change mode for the DS , and then remove tick mark for newly added fields aginst Hide only .
    5) Replicate the DS into BIW.
    6) give th ccoding for these newly added fields in CMOD.
    7) in CMOD , you need to use already existing project. If there is no project existing,then create new one . While creating take RSAP0001 as Enhance ment assignement.
    8) you have to code the ABAP lines in EXIT_SAPLRSAP_001 component and in the include ZXRSAU01.
    9) Donot forget the activation of Project and include after every modifications.
    Regards,
    Lakshman.G

  • Include program in Enhacements help me plz

    Hi All
    While we are enhancing the DS. We will write a logic in ZXRSAU01 to populate the data into those fields. Another thing is that we also write a include program at BW side like EXIT_SAPLR0_001 i had small query regarding this  why we write this include program in the BW side whats the use, can any thru some light on this please.
    Thanks & Regards
    KK

    Hi KK,
        To populate fields in R3 you are using that include ZXRSAU01 ( Here you use FM EXIT_SAPLRSAP_001 to arrive the include) this is in R3.
    You dont need to write any exit code for populating the fields, it is enough to do in R3.
        But in BW side you are using Exit Fm for several situations like,
         1. Virtual characteristics
         2. To populate User Exit variables ... ( EXIT_SAPLRR0_001)
    I think you clear now.
    rgrds,
    V.Sen

  • How to delete the old code in the EXIT_SAPLRSAP_001

    Hi All,
    In R3 system, I wrote an exit for 2LIS_11_VAHDR  by using T-code CMOD in the function exit EXIT_SAPLRSAP_001 and the code does not meet my requirement today i want to delete the code and i will write the fresh one. now my problem is i am not able to delete the code can any body suggest me how to delete the old code.
    and can we create new project and can we assign to the Enhancement RSAP0001.
    Can anybody suggest me in this
    Thanks in advance......
    Narendra

    Hi Narendra,
    You can put the code in comments, if you don't want to use the old code..You can delete also..But be sure that code belongs to you only..
    SE38>zxrsau01>change-->find out your data source
    Comment(Or can delete) the code starting from WHEN '2LIS_11_VAHDR'. to the end of the code that you have written..
    If you really want to delete the assignment of RSAP0001 to your old project>goto CMOD>your project name>change>delete assigment
    Then create a new project and assign the enhancement RSAP0001 to your new project and write the code in Include 'ZXRSAU01'..
    Hope it helps
    Thanks
    Teja

  • BWREMOTE background job canceled in sap r/3 system

    Hi my friends,
    Thanks for your help ahead.
    Today I checked the background job in SAP R/3 created by BWREMOTE via SM37. It showed me some jobs had been canceled.
    I displayed its log, the detail message is:
    ==========================================
    Step 001 started (program SBIE0001, variant &0000000083494, user name BWREMOTE)
    DATASOURCE = ZQM_NOT_SHFGRP
    Call up of customer enhancement BW_BTE_CALL_BW204010_E (BTE) with 1,593 records
    Result of customer enhancement: 1,593 records
    Call up of customer enhancement EXIT_SAPLRSAP_001 (CMOD) with 1,593 records
    ABAP/4 processor: SAPSQL_INVALID_FIELDNAME
    Job cancelled
    ==========================================
    Then I displayed the "Long Text" of the job log. It is
    One of the field names in the SELECT clause was not recognized.
    Error analysis
    The SELECT clause was specified in an internal table at runtime.
    It contains the field name "TPR00", but this does not occur in any of
    the database tables listed in the FROM clause.
    Information on where termination occurred
    The termination occurred in the ABAP/4 program "SAPLXRSA " in
    "EXIT_SAPLRSAP_001".
    The main program was "SBIE0001 ".
    Source code extract
    008840 concatenate 'TPR'
    008850 day_temp+6(2)
    008860 ' = '
    008870 ' ''' zshift '''' into
    008880 cond .
    008890 append cond to itab .
    008900 select schkz into i_not_shfgrp-zzschkz from t552a
    008910 where zeity = '2'
    008920 and mofid = 'CN'
    008930 and mosid = '28'
    008940 and ( schkz = 'SFTA' or
    008950 schkz = 'SFTB' or
    008960 schkz = 'SFTC' or
    008970 schkz = 'SFTD' )
    008980 and kjahr = day_temp+0(4)
    008990 and monat = day_temp+4(2)
    > and (itab) .
    009010 endselect.
    I guess that there is not a field named TPR00 in table t552a.
    Next, I opened the 'project management of sap enhancement' via CMOD, entering the project name and chosing 'Display'.
    Then Double click the Components 'EXIT_SAPLRSAP_001', we can see the function module 'EXIT_SAPLRSAP_001'. In the source codes, there is an include program, it is 'INCLUDE ZXRSAU01.'.
    Then, I double clicked the Include program and find the position program terminated. The source codes are:
    ZQM_NOT_SHFGRP *
    when 'ZQM_NOT_SHFGRP'.
    loop at c_t_data into i_not_shfgrp .
    l_tabix = sy-tabix .
    clear :mbatch ,zshift,cond ,zfield, zcharg, day_temp .
    refresh itab.
    if i_not_shfgrp-ausvn is initial.
    else.
    aa = '080000'.
    bb = '160000'.
    cc = '235959'.
    day_temp = i_not_shfgrp-ausvn.
    if i_not_shfgrp-auztv ge aa and
    i_not_shfgrp-auztv lt bb .
    zshift = 'MSHF' .
    elseif i_not_shfgrp-auztv ge bb and
    i_not_shfgrp-auztv le cc .
    zshift = 'LSHF'.
    else .
    zshift = 'NSHF'.
    day_temp = i_not_shfgrp-ausvn - 1.
    endif.
    concatenate 'TPR'
    day_temp+6(2)
    ' = '
    ' ''' zshift '''' into
    cond .
    append cond to itab .
    select schkz into i_not_shfgrp-zzschkz from t552a
    where zeity = '2'
    and mofid = 'CN'
    and mosid = '28'
    and ( schkz = 'SFTA' or
    schkz = 'SFTB' or
    schkz = 'SFTC' or
    schkz = 'SFTD' )
    and kjahr = day_temp+0(4)
    and monat = day_temp+4(2)
    and (itab) .
    endselect.
    endif.
    I found that we got a TPR00 during concatenation. In other words, day_temp+6(2) = 00. But I think it is impossible. I can not explain this.
    Any ideas, my friends. Many thanks.

    select schkz into i_not_shfgrp-zzschkz from t552a
    where zeity = '2'
    and mofid = 'CN'
    and mosid = '28'
    and ( schkz = 'SFTA' or
    schkz = 'SFTB' or
    schkz = 'SFTC' or
    schkz = 'SFTD' )
    and kjahr = day_temp+0(4)
    and monat = day_temp+4(2)
    <b>and (itab) .</b>  => doesn't make sense?!
    endselect.
    endif.
    it seems something got deleted between 'and' and '(itab)'... so, you'll have to recheck the requirements for your select to fill the 'and' statement further.
    so, it should look like
    and monat = day_temp+4(2)
    and <b><some kind of condition that needs to be fulfilled></b>.
    endselect.
    <b><some logic to fill a line in your internal table></b>.
    append cond to itab.
    endif.
    obviously <some kind of condition that needs to be fulfilled> needs to be replaced by a real condition
    and <some logic to fill a line in your internal table> needs to be replaced by some kind of formula
    I assume something like (otherwise it would be really weird to select that field):
    cond = i_not_shfgrp-zzschkz.
    or a formula using the i_not_shfgrp-zzschkz field.
    It would also be a lot better to replace your select ... endselect by a select single as you'll be selecting 1 record only anyways.
    Message was edited by:
            RafB

  • Syntax error in program "SAPLXRSA " -SENT

    Hi Guys,
    I have done user exit in R/3 datasource when I do the test extraction using RSA3 and geting the data without any error. I've transport the requet to Test Box and tried to do the extraction in TestBox and getting the below SYNTAX Error message. Kindly advise it's very URGET. Thanks in advance.
    ShrtText
    Syntax error in program "SAPLXRSA ".
    What happened?
    Error in ABAP application program.
    The current ABAP program "SAPLRSAP" had to be terminated because one of the
    statements could not be executed.
    This is probably due to an error in the ABAP program.
    In program "SAPLXRSA ", the following syntax error occurred
    in the Include "ZXRSAU01 " in line 21:
    "Field "ZOXPRO0043" is unknown. It is neither in one of the specified t"
    "ables nor defined by a "DATA" statement. "DATA" statement."
    Author and last person to change the Include are:
    Author "SAPCHEOLENG "
    Last changed by "CCEV200 "
    What can you do?
    Please eliminate the error by performing a syntax check
    (or an extended program check) on the program "SAPLXRSA ".
    You can also perform the syntax check from the ABAP/4 Editor.
    If the problem persists, proceed as follows:
    Print out the error message (using the "Print" function)
    and make a note of the actions and input that caused the
    error.
    To resolve the problem, contact your SAP system administrator.
    You can use transaction ST22 (ABAP Dump Analysis) to view and administer
    termination messages, especially those beyond their normal deletion
    date.
    is especially useful if you want to keep a particular message.
    Error analysis
    In program "SAPLXRSA ", the following syntax error occurred:
    "Field "ZOXPRO0043" is unknown. It is neither in one of the specified t"
    "ables nor defined by a "DATA" statement. "DATA" statement."
    How to correct the error
    Probably the only way to eliminate the error is to correct the program.
    If you cannot solve the problem yourself and you wish to send
    an error message to SAP, include the following documents:
    1. A printout of the problem description (short dump)
    To obtain this, select in the current display "System->List->
    Save->Local File (unconverted)".
    2. A suitable printout of the system log
    To obtain this, call the system log through transaction SM21.
    Limit the time interval to 10 minutes before and 5 minutes
    after the short dump. In the display, then select the function
    "System->List->Save->Local File (unconverted)".
    3. If the programs are your own programs or modified SAP programs,
    supply the source code.
    To do this, select the Editor function "Further Utilities->
    Upload/Download->Download".
    4. Details regarding the conditions under which the error occurred
    or which actions and input led to the error.
    System environment
    SAP Release.............. "640"
    Application server....... "hawk"
    Network address.......... "137.132.12.22"
    Operating system......... "HP-UX"
    Release.................. "B.11.23"
    Hardware type............ "ia64"
    Character length......... 8 Bits
    Pointer length........... 64 Bits
    Work process number...... 0
    Short dump setting....... "full"
    Database server.......... "hawk"
    Database type............ "ORACLE"
    Database name............ "QAS"
    Database owner........... "SAPR3"
    Character set............ "en_US.iso88591"
    SAP kernel............... "640"
    Created on............... "Oct 16 2006 20:35:55"
    Created in............... "HP-UX B.11.23 U ia64"
    Database version......... "OCI_920 "
    Patch level.............. "153"
    Patch text............... " "
    Supported environment....
    Database................. "ORACLE 9.2.0.., ORACLE 10.1.0.., ORACLE
    10.2.0.."
    SAP database version..... "640"
    Operating system......... "HP-UX B.11"
    Memory usage.............
    Roll..................... 16128
    EM....................... 12569760
    Heap..................... 0
    Page..................... 65536
    MM Used.................. 1716768
    MM Free.................. 2470608
    SAP Release.............. "640"
    User and Transaction
    Client.............. 220
    User................ "CCEENGG"
    Language key........ "E"
    Transaction......... "RSA3 "
    Program............. "SAPLRSAP"
    Screen.............. "SAPMSSY0 1000"
    Screen line......... 6
    Information on where terminated
    The termination occurred in the ABAP program "SAPLRSAP" in
    "CALL_DATA_CUSTOMER_FUNCTION".
    The main program was "RSFHGEN2 ".
    The termination occurred in line 96 of the source code of the (Include)
    program "LRSAPF06"
    of the source code of program "LRSAPF06" (when calling the editor 960).
    Source Code Extract
    Line
    SourceCde
    66
    CALL FUNCTION BW_BTE_CALL_BW204010_E
    67
    EXPORTING
    68
    I_DATASOURCE = L_DATASOURCE
    69
    I_UPDMODE    = P_UPDMODE
    70
    TABLES
    71
    I_T_SELECT   = P_T_SELECT
    72
    I_T_FIELDS   = P_T_FIELDS
    73
    C_T_DATA     = P_T_DATA
    74
    C_T_MESSAGES = L_T_MESSAGES
    75
    EXCEPTIONS
    76
    OTHERS       = 1.
    77
    DESCRIBE TABLE P_T_DATA LINES L_LINES.
    78
    MESSAGE S408 WITH L_LINES.
    79
    Handle BTE-Exit error messages
    80
    IF SY-SUBRC <> 0.
    81
    P_SUBRC = SY-SUBRC.
    82
    IF 1 = 2. MESSAGE E021 WITH ''. ENDIF.
    83
    MESSAGE_WRITE 'E' 'R3' '021' 'BW_BTE_CALL_BW204010_E' '' '' ''.
    84
    ENDIF.
    85
    IF NOT L_T_MESSAGES IS INITIAL.
    86
    PERFORM WRITE_BTE_EXIT_MESSAGES TABLES   L_T_MESSAGES
    87
    CHANGING P_SUBRC.
    88
    ENDIF.
    89
    ENDIF.
    90
    ENDIF.
    91
    92
    Call Customer-Exit
    93
    DESCRIBE TABLE P_T_DATA LINES L_LINES.
    94
    MESSAGE S407 WITH 'EXIT_SAPLRSAP_001' 'CMOD' L_LINES.
    95
    CLEAR SY-SUBRC.
    >>>>>
    CALL CUSTOMER-FUNCTION '001'
    97
    EXPORTING
    98
    I_DATASOURCE             = L_DATASOURCE
    99
    I_ISOURCE                = L_12B_SOURCE
    100
    I_UPDMODE                = P_UPDMODE
    101
    TABLES
    102
    I_T_SELECT               = P_T_SELECT
    103
    I_T_FIELDS               = P_T_FIELDS
    104
    C_T_DATA                 = P_T_DATA
    105
    C_T_MESSAGES             = L_T_MESSAGES
    106
    EXCEPTIONS
    107
    RSAP_CUSTOMER_EXIT_ERROR = 1
    108
    OTHERS                   = 2.
    109
    DESCRIBE TABLE P_T_DATA LINES L_LINES.
    110
    MESSAGE S408 WITH L_LINES.
    111
    112
    Handle Customer-Exit error messages
    113
    IF SY-SUBRC <> 0.
    114
    P_SUBRC = SY-SUBRC.
    115
    IF 1 = 2. MESSAGE E020 WITH ''. ENDIF.
    Contents of system fields
    Name
    Val.
    SY-SUBRC
    0
    SY-INDEX
    1
    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
    Report for the extractor call
    SY-MSGTY
    S
    SY-MSGID
    R3
    SY-MSGNO
    407
    SY-MSGV1
    EXIT_SAPLRSAP_001
    SY-MSGV2
    CMOD
    SY-MSGV3
    100
    SY-MSGV4
    Active Calls/Events
    No.   Ty.          Program                             Include                             Line
    Name
    5 FUNCTION     SAPLRSAP                            LRSAPF06                               96
    CALL_DATA_CUSTOMER_FUNCTION
    4 FORM         SAPLRSAP                            LRSAPF06                               96
    CALL_DATA_CUSTOMER_FUNCTION
    3 FORM         GP3PDR0GQDXJ0ZOA35DPGNCU80M         GP3PDR0GQDXJ0ZOA35DPGNCU80M           274
    PROCESS_DATA_PACKAGE
    2 FORM         GP3PDR0GQDXJ0ZOA35DPGNCU80M         GP3PDR0GQDXJ0ZOA35DPGNCU80M           170
    DATA_TRANSFER
    1 EVENT        RSFHGEN2                            RSFHGEN2                               59
    START-OF-SELECTION

    Hello Raja,
    I think some objects should still lying in the dev. server which are yet to be transported, also try to deactivate and reactivate the project for user exit for BW and transport it .
    Also manually request can be created for transporting object "ZOXPRO0043" into quality environment and transport it .
    Let us know the output for the same.
    Hope that helps.
    Regards
    Kapadia
    ***Assigning points is the way to say thanks in SDN.***

  • BW enhancement -- plz advice

    Hi,
    While doing the enhancement for BW using standard function module EXIT_SAPLRSAP_001 and INCLUDE ZXRSAU01 is it advisable to use the function module.
    I mean if the extra field required by BW is derived using a Function Module then does it hamper performance against pulling it from a table…
    Friends please advice…
    Thanks,
    sam

    Hi Sam,
    While extracting data from R/3 to BW that is the user-exit which will get triggered when you are extracting master data, that is SAP suggested User exit for enhancing the datasource for master data.
    Reward Points if this helps,
    Satish

  • Keep getting this error when I run a program   UC_OBJECTS_NOT_CONVERTIBLE

    I created a project via CMOD for a modification to a BW extractor.  It is pretty simple coding but when I try and execute the extractor via RSA3 I get the following error.  I've attached the code as well and it is something with line 17.  can you please help
    Short text
        Data objects in Unicode programs cannot be converted.
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "SAPLXRSA" had to be terminated because
        come across a statement that unfortunately cannot be executed.
    Error analysis
        The statement
           "MOVE src TO dst"
        requires that the operands "dst" and "src" are convertible.
        Since this statement is in a Unicode program, the special conver
        rules for Unicode programs apply.
        In this case, these rules were violated.
    Trigger Location of Runtime Error
        Program                                 SAPLXRSA
        Include                                 ZXRSAU01
        Row                                     17
        Module type                             (FUNCTION)
        Module Name                             EXIT_SAPLRSAP_001
    Source Code Extract
    Line  SourceCde
        1 *&----
        2 *&  Include           ZXRSAU01
        3 *&----
        4
        5 TABLES: VTTK.
        6 DATA: L_MCCOMVTTS LIKE MCCOMVTTS,
        7       L_TABIX LIKE SY-TABIX.
        8
        9
       10
       11 CASE I_DATASOURCE.
       12
       13  WHEN '2LIS_08TRTLP'.
       14
       15 *FIND TDLNR & VSART IN THE SHIPMENT HEADER TABLE
       16
    >>>>>  LOOP AT C_T_DATA INTO L_MCCOMVTTS.
       18   L_TABIX = SY-tabix.
       19   SELECT SINGLE * FROM VTTK WHERE TKNUM = L_MCCOMVTTS-TKNUM.
       20
       21 *FILL FIELDS WITH DATA FROM VTTK(SHIPMENT HEADER TABLE)
       22   IF SY-SUBRC = 0.
       23    L_MCCOMVTTS-Z_TDLNR = VTTK-TDLNR.
       24    L_MCCOMVTTS-Z_VSART = VTTK-VSART.
       25    MODIFY C_T_DATA FROM L_MCCOMVTTS INDEX L_TABIX.
       26   ENDIF.
       27  ENDLOOP.
       28 ENDCASE.

    ra you sure the
    table C_T_DATA and the work area L_MCCOMVTTS have the smae fileds with same data element .
    i think somewhere ther is adifference that why systerm is umable to populate the table data in to work area..
    <b>i have observed that C_T_DATA is not defined any format..
    Make sure u have the same structure for the work area as well</b>
    Please Close this thread.. when u r problem ise solved
    Reward if Helpful
    Regards
    Naresh Reddy K
    Message was edited by:
            Naresh Reddy

  • Error while extracting data from Generic VBAK Table

    Hi,
    When i am extracting data from VBAK using generic extraction via tavle, i am, getting the error "Syntax error in program "SAPLXRSA ""
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "SAPLRSAP" had to be terminated because it has
        come across a statement that unfortunately cannot be executed.
        The following syntax error occurred in program "SAPLXRSA " in include "ZXRSAU01
         " in
        line 159:
        "The type of the database table and work area (or internal table) "L_ST"
        "R_CE1IDEA" are not Unicode convertible. ."
    Please help me out in fixing this,
    Thansk,

    do you have an user-exit? if yes, post the code....
    did you try regenerating the entire stuff (ds, structure,...)...there might be a mismatch between the structures of datasource and the generated extraction program....
    M.

  • Inventory Management - BADI

    Good day,
    Currently the Inventory Management extractors(2LIS_03_BF, 2LIS_03_BX, 2LIS_03_UM) only extracts Local Currency. We would like to extract the values in Group Currency as well. Doing currency translations is not an option for several business reasons. We have to have the Group currency as it appears in the Material Ledger. I debugged the standard extractor for Inventory management and noticed that the extractor caters for a BAdI(Business Add In). Can anyone please give me an indication where I can look for this BAdI. I looked on SPRO on R/3 and there is a list of BAdI's under BW, but I don't know which one to use and how to use it. I would appreciate help in this regard.
    Thank you.
    Regards.
    Verushca Hunter

    Hi dear and welcome on board !
    I think you have to fill your additional field in the usual exit provided for customer enhancement (RSAP0001) in CMOD transaction, EXIT_SAPLRSAP_001 in the include ZXRSAU01...
    Otherwise you can go fot the new RSU5_SAPI_BADI...
    Hope it helps!
    Bye,
    ROberto
    ...and please don't forget to reward the answers...it's THE way to say thanks here !

  • Line Item numbers out of sequence in C_T_DATA

    We are using several different data sources within include ZXRSAU01.
    For one of them, we have assigned a custom structure ZOXNRD0112 to C_T_DATA which contains two different fields for Line Item number. One of these fields is based on FAGLFLEXA-DOCLN and the other is based on BSEG-BUZEI.
    The values in these two fields should agree on each record contained within C_T_DATA, but occasionally we get a situation where they do not. BUZEI is always correct when compared to the Billing Document, but DOCLN will be out of sequence.
    For example:
    DOCLN BUZEI
    000001 001
    000003 002
    000002 003
    DOCLN & BUZEI both arrive already populated in the C_T_DATA table.
    We simply use the values as keys to read FAGLFLEXA and BSEG, the values in DOCLN & BUZEI themselves are not derived.
    They are there when entering the user exit ZXRSAU01, and they are still there when processing leaves ZXRSAU01.
    I donu2019t have a lot of experience in BI, and am not familiar with how C_T_DATA receives itu2019s data.
    Iu2019m trying to look back further in the processing to find where C_T_DATA is populated and draw some conclusions from that. I have asked a couple of our FI people to examine the documents involved to see what could be going on there.
    We are on ECC 6.0, and BI version 7.0.
    Has anyone out there run into this kind of problem before?

    Hello Dan,
    Welcome to SDN!
    The program ZXRSAU01 is an exit program for transactional DataSource extraction. Whenever the DataSource pulls data from ECC, it usually divides the data into several data packages, and for every package it will comes to that program. The internal table C_T_DATA contains all records of the data package.
    We don't use sequence to link data together, but use fields mappings. For example, I want to read FAGLFLEXA-DOCLN, I first need to find a key field say XXXX which exist both in C_T_DATA and FAGLFLEXA. Then use below statement to read FAGLFLEXA:
    loop at c_t_table into ls_structurename.
    select single DOCLN
        from FAGLFLEXA
        into ls_structurename-docln
      where XXXX = ls_structurename-XXXX.
      modify c_t_table from ls_structurename.
    endloop.
    With the code we don't need to worry about sequence. And it works for either full loading or delta loading.
    Please let us know if you have any questions.
    Regards,
    Frank

  • How to enhance 2LIS_02_SCL with Conditions

    Dear Gurus,
    (PLEASE.... THIS ONE IS REALLY AN URGENT ISSUR)
    I have a situation here, where i have to enhance my Purchasing Data Data Source(2LIS_02_SCL) with the conditions from  MIRO. 
    Here in our project at the time of creating a PO they enter the Freight value and the Condition thpe along with the Transporter.  But all the above said data is tentative it may be changed at the time of MIGO which is also not a permanent one.  But what ever the data entered at the time of MIRO(Invoice Verification) is the final one.  so i have to pick the data from this transaction.  If anyone went across this situation please suggest me what should i do to enhance my data source with this data.
    Here i have to extract the Transporter, Station, Freight Value, Condition type.  Please tell me the table information also.  If the information i provided is not enough please feel free to ask for more.
    IF THERE IS ANY OSS NOTE WHICH CAN SOLVE MY PROBLEM PLEASE FORWARD THAT TO MY YAHOO ID.
           [email protected]
    Thanks in advance
    Mohan Kumar

    Hi Mohan,
    Please go through the steps.
    1) SE11, Type your ES in Data type ,and click on display
    2) Click on append structure , create the new append structure and add the new fileds,Then activate it.
    3) RSA6,select your Generic DS,enter into data source screen with change option. Make sure that the "fiel only" and "hide" options are unticked for newly added ields.and then generate the DS(menu option).
    4) Replicate the DS.
    5) Write the code in CMOD for newlu added fields.
    Procedure:-
    the enhancement depends on the type of datasource. Mostly you identify the extract structure and add your fields using a append structure. Once enhanced, you need to generate the datasource again. Then goto transaction cmod, create or choose a project, add enhancement rsap0001 and add your coding in exit...001 for transactional data, exit...002 for master data, exit...003 for texts and exit...004 for hierarchies.
    after the extract structure displayed, click 'append structure', and system will propose the append structure name 'z....', accept it and in next screen add you new field name as zz.... and activate the structure.
    double click component exit..01, double click zxrsau01, system will give something 'sap reserved' which actually just warning, quite tricky, just press 'enter' then it will go to next screen for program include zxrsau01.
    here you put the code like following :
    data : l_s_[structurename] like [extractstructure name],
    l_tabix like sy-tabix.
    case i_datasource.
    when 'your datasource name'.
    loop at c_t_data into l_s_[structurename]
    l_tabix = sy-tabix.
    fill the new field
    select ... into l_zz...
    where ....
    l_s_[structurename]-[new field name, zz....] = l_zz...
    modify c_t_data from l_s_[structurename] index l_tabix.
    endloop.
    I hope it would help you.
    Regard's
    Prasad

  • LPA changes are not reflected fully in 2LIS_02_SCL

    The changes done to scheduling agreement, schedule lines are not reflecting in 2LIS_02_SCL, and there by resulting errors in delta update in BI system.
    For example
         LPA     RM     SCL     Quantity                                    (2LIS_02_SCL)
    ODS(A)      3001             15          800
    ODS(C)     3001     X     15          300
         3001          15          800
    PSA       3001     X     15          400
            3001             15          900
    As we are using the Update type Addition,
    From PSA, it is clear that the change is 500; this change got reflected in ODS properly.
    But when I compare ODS data with EKET data,
    LPA     SCL     ODS(Active)          EKET
    3001     15     800               900
    As you can see wrong validation results between BI & R3
    I am missing the below  changes happened to SCL in the extractor
         3001     X     15          300     
         3001          15          400
    The missing above entry is resulting errors.
    Does anybody know how the EKET line changes can be tracked?
    How to check the V3 Update, we checked the program: RMBWV302
    Does anybody have idea where to track this error.
    Note: the above case is happening to only a for few documents
    Regards,
    NK.A
    Message was edited by:
            nandakumar a

    Hi Renjith,
    Thanks for the reply. Can you please let me know few more answers to the below points.
    As the datasource 2LIS_02_SCL does not takes this event into account (only MA, MB, MC and MD), this field is not passed to BW (you can see the events per datasource in transaction LBWE)
    You are referring to posting of the Material Ledger posting right ? Can you please give some more information about MA MB MC MD as I have verified in LBWE and could not find anything about it except that its picking that GLMNG value from MCEKET table.
    Renjith, Please update your views on the below query. I am not able to get any answers from anyone on this query. I appreciate your reply.
    In my opinion you would be able to fill it in the customer-exit of LIS (EXIT_SAPLEINS_001) or BW (EXIT_SAPLRSAP_001)
    If I add a zfield to the SCL DS and then populate that field with the code in the include ZXRSAU01 , EXIT_SAPLRSAP_001 in that going to help.
    Do I have to verify the events MA MB MC and MD while populating this zfield or I can just do a direct lookup on EKET
    select single * from EKET
    where EBELN = l_MC02M_0SCL-EBELN
    and EBELP = l_MC02M_0SCL-EBELP
    and ETENR = l_MC02M_0SCL-ETENR will do ?
    So when ever the ds fields are getting populated in the org DS ...it will find this zfield in the same structure and will fill this field. Is that going to fix it ? I have also found couple of SAP Notes on the same issue and do you think implementing those notes will fix the problem without the zfield or code.
    Could you please check out these notes 100690 and 431145. Please suggest.
    Thanks,
    Daniel

  • FM for R3 tran data enhancement

    Hello
    Can somebody remind me FM for R3 tran data enhancement?
    Thanks

    It's user exit EXIT_SAPLR_SAP_001 - include ZXRSAU01.
    Have a look at this:
    http://www.ko-india.com/content/weblogs/weblog_custom_fields_1.pdf
    Hope it helps.
    Regards

Maybe you are looking for

  • Password expire date back to 2011 from 2012  after assigned  a user profile

    Friends, I created a profile test as COMPOSITE_LIMIT UNLIMITED SESSIONS_PER_USER UNLIMITED CPU_PER_SESSION UNLIMITED CPU_PER_CALL UNLIMITED LOGICAL_READS_PER_SESSION UNLIMITED LOGICAL_READS_PER_CALL UNLIMITED IDLE_TIME 60 CONNECT_TIME UNLIMITED PRIVA

  • How to get photos in calendar Source section

    I'm putting a calendar together and didn't choose all photos before starting the layouts. Now that I'm in the middle of the project, how do I get additional photos into the unplaced photo section allocated for them. If I open the library, the calenda

  • Tracking a stolen Iphone 2G

    Is there a way to track a stolen 2G Iphone? My daughters 2G was stolen today and I m wondering if through GPS there is a way to locate her phone. I have a 3G, which I think might help in locating hers. Greatly appreciate any help. Thanks and Happy Ne

  • How to display Dynamic Message in Message Pool.

    HI All, I want to display the Error Message in Message Pool Dynamically. By creating only one Message in Message Pool of Type Error. I.E If user leaves the First Name and Last Name Field Blank then Error Message Should appear as: Please Enter First N

  • How can I batch resize images to a file size of 1 meg?

    I'm not the most technically literate mac user and would gratefully receive any help please. I have been asked to reduce lots of images of various large file sizes and dimensions to 1 meg. I am using Photoshop CS4 and am aware of the 'Image Processor