POS DM enhancement for BI datasource

Hi,
          We have a business requirement to get the invoice number being generated at the POS(Triversity GM) to POS DM via XI.
This invoice number is the combination of (Store noregister noSystem generated number)
When we map this number from POS to POS DM using XI there are some extended fields(place holders) available in BAPI.
Now this data needs to be mapped in POS DM to further provide this data to BI.
Please let us know how this can be done like which datasource and which extract structure needs to be utilised and what are the further steps to be carried to get that same data to be available in BI reporting.
Please explain the steps to configure this.
Thanks and regards,
Srini.

Any answers to the above query. I am also facing a similar issue. can someone throw some light on this.
Thanks

Similar Messages

  • Enhancement to 0MAT_PLANT_ATTR datasource

    I need to enhance 0MAT_PLANT_ATTR datasource with additional fields STPRS, PEINH from MBEW table and WAERS (currency for STPRS) from T001 table. Table T001 and MBEW table have no fields in common. So I took an indirect approach to this.I have a program for enhancing a BW DataSource in R/3. Here is the code:
    types: begin of zty_waers,
    bukrs type bukrs,
    waers type waers,
    bwkey type bwkey,
    end of zty_waers.
    data: zit_waers type standard table of zty_waers,
    wa_waers like line of zit_waers.
    DATA : it_temp type standard table of biw_marc_s,
    wa_temp like line of it_temp,
    S_INDEX TYPE SY-TABIX,
    z_index type sy-tabix.
    DATA : BEGIN OF ITAB_MBEW OCCURS 0,
    MATNR TYPE MATNR,
    BWKEY TYPE BWKEY,
    STPRS TYPE STPRS,
    PEINH type PEINH,
    WAERS type WAERS,
    END OF ITAB_MBEW.
    data: wa_mbew like line of itab_mbew.
    DATA: BEGIN OF ITAB_CEPC OCCURS 0,
    PRCTR LIKE CEPC-PRCTR,
    KOKRS LIKE CEPC-KOKRS,
    DATBI LIKE CEPC-DATBI,
    SEGMENT LIKE CEPC-SEGMENT,
    END OF ITAB_CEPC.
    select abukrs awaers b~bwkey into table zit_waers
    from t001 as a inner join t001k as b on
    abukrs = bbukrs.
    IF NOT I_T_DATA[] IS INITIAL.
    IT_TEMP[] = I_T_DATA[].
    SELECT MATNR BWKEY STPRS PEINH FROM MBEW INTO TABLE ITAB_MBEW FOR ALL ENTRIES IN IT_TEMP
    WHERE MATNR = IT_TEMP-MATNR and BWKEY = IT_TEMP-WERKS.
    SELECT PRCTR KOKRS DATBI SEGMENT FROM CEPC INTO TABLE ITAB_CEPC FOR ALL ENTRIES IN IT_TEMP
    WHERE PRCTR = IT_TEMP-PRCTR AND KOKRS = IT_TEMP-KOKRS AND DATBI = '99991231'.
    ELSE.
    EXIT.
    ENDIF.
    loop at itab_mbew into wa_mbew.
    z_index = sy-tabix.
    read table zit_waers into wa_waers with key bwkey = wa_mbew-bwkey.
    if sy-subrc = 0.
    wa_mbew-waers = wa_waers-waers.
    endif.
    modify itab_mbew from wa_mbew transporting waers.
    endloop.
    sort itab_mbew by matnr.
    loop at i_t_data into wa_temp.
    s_index = sy-tabix.
    Read Table itab_mbew with key matnr = wa_temp-matnr
    into wa_mbew.
    if sy-subrc = 0.
    wa_temp-zzstprs = wa_mbew-stprs.
    wa_temp-zzwaers = wa_mbew-waers.
    wa_temp-zzpeinh = wa_mbew-peinh.
    endif.
    Sort itab_cepc.
    Read Table itab_CEPC
    with key PRCTR = wa_temp-PRCTR
    KOKRS = wa_temp-KOKRS
    binary search.
    if sy-subrc = 0.
    wa_temp-ZZSEGMENT = itab_CEPC-SEGMENT.
    endif.
    modify i_t_data from wa_temp.
    clear wa_temp.
    endloop.
    But when I am testing the datasource for the new fields the data is coming out wrong. For example if I run the extractor checker RSA3 for material number 10000306 and plants 1017 - 1021 i extract 2 entries and the stprs values are same for both plants
    But if I run RSA3 for 1021 alone then i get another value for 1021 plant. This means the STPRS value is getting overwritten for some reason. Debugging of this code is very difficult since there is a form embedded in this program.
    Can anyone tell me wht is wrong with the logic?
    Thanks
    Deepthi

    Hi Deepthi,
    As I see and understand your code,
    the problem area could be :
    sort itab_mbew by matnr.  ***
    Here you are sorting the table by MATNR alone, where as when actuall see that
    the remaining data  would be corresponding to the material only, so when sort
    the table alone with MATNR probably your Plant data would get jumble..
    so, try sorting the table with all the keys you are having in this table..
    and read the table with the max. comibations available or possible..
    you should be able to locate the record right get right data..
    Hope it helps..
    Cheers,
    Pattan.

  • Tolerance Limits: Multiple Invoices for single POs, Single Invoices for Multiple POs

    Hi,
    I'm currently looking at tolerance limit configurations, primarily the DQ (Quantity) and PP (Price) tolerance keys and had a couple of questions where you have the scenario of multiple invoices or multiple POs.
    1. If I had multiple invoices for a single PO, collectively they match the quantity and price on the PO; When I enter the first invoice into SAP it will be well below the lower price and quantity limit of the PO as it is one of multiple invoices to be entered. My question is what happens to the invoices in SAP, do you still post them despite the error message and they are just blocked until collectively the invoices match the quantity/price of the PO?
    2. If I had an invoice that related to multiple POs, when entering the invoice can I link this to multiple POs?

    You don't use user exits or enhancements for this.  Use a data transfer routine and assign it to your item level copy control config.  Spilt keys are controlled by setting the value of VBRK-ZUKRI.  Otherwise, you can use multiple payers or addresses to control it.

  • 0FI_GL_4 failing due to enhancement for 0FI_AR_4

    Hi Gurus,
    I have enhanced the 0FI_AR_4 datasource with additional fields.  Create my function module and assigned it to 00005021 in table TPS31.  This works great for the AR extraction.  But now the GL extraction is failing on this function module.   This is the error message during the execution of extractor for 0FI_GL_4 ==>  'The data object "C_STRUCTURE" has no structure and therefore no component called "VBELN"..    Why would the 0FI_GL_4 extractor call the function module exit for the 0FI_AR_4?   Any help you can provide will be greatly appreciated. 
    Thank you in advance!!
    Andy

    hi
    0FI_GL_4 & 0FI_AR_4 are linked to gather.. hence when u enhance, u need to take care of this..
    read below SAP Note:
    410799

  • Enhancement for VL32N

    Hi,
    In vl32n transaction when we save the particular inbound delivery
    I want to perform material to material transfer posting by triggering MIGO transaction and changing the batch number .
    Can u suggest any enhancement for this requirement?

    Hi,
    Check if any of the following are useful to you:
    V02V0001  Sales area determination for stock transport order
    V02V0002  User exit for storage location determination
    V02V0003  User exit for gate + matl staging area determination (h
    V02V0004  User Exit for Staging Area Determination (Item)
    V50PSTAT  Delivery: Item Status Calculation
    V50Q0001  Delivery Monitor: User Exits for Filling Display Fields
    V50R0001  Collective processing for delivery creation
    V50R0002  Collective processing for delivery creation
    V50R0004  Calculation of Stock for POs for Shipping Due Date List
    V50S0001  User Exits for Delivery Processing
    V53C0001  Rough workload calculation in time per item
    V53C0002  W&S: RWE enhancement - shipping material type/time slot
    V53W0001  User exits for creating picking waves
    VMDE0001  Shipping Interface: Error Handling - Inbound IDoc
    VMDE0002  Shipping Interface: Message PICKSD (Picking, Outbound)
    VMDE0003  Shipping Interface: Message SDPICK (Picking, Inbound)
    VMDE0004  Shipping Interface: Message SDPACK (Packing, Inbound)
    Regards,
    Renjith Michael.

  • Can we enhance 0HE_SLC_MBK_1 - BW datasource to have module as selection

    Hello All,
    Is there any way you can
    have the selection screen enhanced for the Module Booking extractor (0HE_SLC_MBK_1). Currently it has Student number and Busines Partner as options which are not suficient, there are time when we want to do a full load for just particular academic period or particular module so it would be great to have atleast these two options.
    Having Module, Event Package and Academic Period as selection option would work great.
    I tried modifying the extractor in our sandbox by going to RSA6 in change mode and selecting these boxes in the screen but that does not work and I get short dump. Do you have any ideas about this?
    Thanks in advance,
    Kiran.

    Hi Kiran,
    You can enhance it, but you need to modify the coding of the extractor as well. Currently the Extractor is designed in such a way that it reads all the modules for all or a set of students.
    It does this via an OPEN CURSOR statement on the table cmacbpst. You would have to build in the new selection criteria via the RSA6 and then enhance the coding.
    It is a bit odd that you get a short dump when trying to change the extractor. What exactly are you running into? Maybe you should try to activate the extractor again in the RSA6 (mark it and use the pull down menu DataSource --> Activate).
    By the way...you probably cannot have this functionality via the usual customer exit but you would have to make a modification for this to work properly. The customer exit is only accessed AFTER reading all the data specified in the selection criteria.
    Jeroen

  • Enhancement of Standard Datasource in LBWE.

    Hi,
    I am enhancing the standard datasource for additional fields from the extract structure in LBWE. I have selected the fields in maintenance and pushed them into the selection criteria (first column), and saved the daatsource change in a request. but to my surprise the field contents in Selection criteria and pool(Second Column) column are same as of original in R/3 Development server itself.
    I have then redone the activity and then generated datasource followed by deactivation and activation of datasorce, this has collected a workbench and customization request . But when i again open the maintenance screen of the data source it is again same as of original before change.
    I don't understand why this is happen.
    can some one please guide me and guide how to enhance the datasource in the maintenance screen of the datasource.

    Hi,
    Its very simple.
    1. delete setup table and delta queue ( all the clients)
    2. If fields can be added through lbwe maintainance then add other wise create a append structure
       and exit for filling up the value for the fields..
    3. change mode in data source ---> uncheck hide buttuon --> if you want data to be extracted
        using newly added fields plz check selection checkbox..
    4.. Thats it...
    Regards,
    Viren.

  • Enhancing a Standard DataSource

    Hi Everyone,
                  Is there any Resrtiction for enahncing a DataSource? I am enhancing my Standard DataSource 2LIS_11_VAITM with around 12-15 fields.Does the affect the Performance of the Syste. What is the Disadvantages if I do SO. I need to enhance because I need to add Fields from ZTables.
    Thanks and Regards,
    Samir

    Hi Surender,
               What will be the Text DataSource for Remarks field (VBBP-Z006) . I could not identify the Text Datasource for this field.Currently, I am loading, Customer, Plant, Material, Customer Text, Vendor, country, Region Text DataSources.
    But I am not able to identify whether Remarks Field will be getting the Text or Not.Also , I think i need to have Remarks as a Field in DataSource with some Key Value then only it gets theTexts from Master Data. I mean, For Example, For Material, We have to Add 0Material in the Cube and then it gets theTexts from MAterial Text DataSource when we execute the Reports.
    So , In this case, What should be my Approach. Do I need to maintain Remarks as afield in my Cube. Or how should be my approach so that VBBP-Z006(REMARKS- Text ID) is loaded into BI.
    If I need to maintain Remarks as a field with Key Value , then how do I map it.I hope I am clear
    Regards,
    Samir

  • Enhancement of Utilities datasources

    Hi All,
    Am a SAP BI guy and wanna know about the process of dataflow frm Utilities datasources to BI. Plz let me know HOW TO ENHANCE THE EXTRACT STUCTURE/SPECIFIC FIELD AT R/3 FOR UTILITIES DATASOURCES/FIELDS.
    Thanks,
    Jack

    Hi Neelesh,
    Thanks for the info!
    Could you please provide me the information to fill the necessary parameters? Im a little confused when it comes to using more than one datasources.
    Thanks!

  • Enhancing the CRM datasource

    Hi experts,
    i have to enhance the CRM datasource with some additional fields and fill them.
    so far i am succesfull in doing the below.
    1. i have appended the fields to the extractstructure and also regenerated the datasource
    2. and when to the BADI for Messaging Flow for writing the code.
    the problem here is its giving a small popup screen in which it has few implementations given by SAP in which do i need to put the code (i am assuming that its the same as our old exit concept where we use the same exit for all transaction datasoruces just by using the case statement) so in that four which one should i use for putting the code and what others are used for.
    The below are the implementations available when i execute the badi for messaging flow.
    CRM_BTX_EEW_BWA
    CRM_BWA_ENHANCE_EX
    CRM_BWA_ORDER_1
    CRM_CSDR_BWA_MFLOW
    If not a big trouble i will be greatfull if somebody can give me the code sample for getting a field filled from someother table with simple logic.
    thanks and regards
    sreedhar

    Pls chk this link for Crm enhancement
    Enhance standard data sources in CRM
    BWA1 is for all standard crm datsource maintaince
    rsa2 for generic datasource
    BWA5 i think we use this Tcode after RSA5 activation additionally.
    yes(incase of delta)
    BWA7 do we have to use this tcode along with BWA1 for standard datasources also or else only for generic datasource.
    irrespective of the type of dtasource,use it if you want to load delta(you need to delta enable the datasource here)
    So we don't need to put the code as we traditionally do it for R/3 , if we just mapp the fields that would bring the data for these fields.
    as i told in CRM we willwrite code in BADI in case you have done enhancement
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/biw/a-c/customer%20enhancements%20and%20userexits%20in%20bw%20-%20sap%20netweaver%20%20know-how%20network%20webinar.pdf
    also chk this(credit goes to the writer)
    CRm enhancement:
    1. Enhance Extract Structure with the required fields. (Create & include an append structure to the extract structure via transaction RSA6).
    2.a) Release the fields of the append for usage. ( To do this, double click on the Datasource and remove the flags in the column 'Hide Field' for all fields of Append).
    2.b) If the new fields cannot be seen in the extract structure of the transaction BWA1 then change and save the datasource, and then activate it in RSA6.
    3. Define your mappings in BADI (CRM_BWA_MFLOW) to fill these fields.
    Goto SPRO . Follow the path ->SAP Implementation guide ->Implementation with other mySAP components ->Data transfer to the Business Information Warehouse-> Settings for the application specific datasources (CRM)->Settings for BW adapter-> Badi :BW adapter :Enhancement of datasources in messaging flow.
    4. Replicate the new Datasource to BW.
    5. Expand the Communication Structure in BW.
    6. Maintain transfer Rules for the new Datasource.
    7. Activate the trasfer rules and perform the upload.
    Refer to the SAP Note 692195 for more info ......
    send ur mailid, mail u some good step by step- doc abt this.
    *pls assign points,if link is useful*
    Regards
    CSM Reddy

  • Master Data Datasource Enhancement or Custom Datasource

    HAI
    Im implementing the BI7.0 for procurement. We need to the data for VENDOR from XK03(T-code).
    In XK03 , we have some custom defined class and its charateristic values .
    So if i want to use 0vendor then i need to enhance the standard datasource of 0VENDOR.
    So cani enhance the standard datasource or can my abaper create a custome R/3 table and load the vendor details. Then i will create the custom datasource. And load the data into BW.
    Pls tell me how to do this one.
    kumar

    hi,
    why u want take abap helper, if u want u can create ur customet table ur self go to se 11 create table and enter field what u want , and  define lenth and chat type. got o rsa5 create ur data soure and replicate in be side and upload into ur data targets
    u need more than 1 table u can create view  got to se11 create view.
    Thanking u
    suneel.

  • Enhancing CO-PA DataSources

    hi guys,
    i created a COPA datasource and i want to enhance it with 2 more fields.
    In RSA6 i can enhance the extract structure with the new fields, but i'm not able to find the right Enhancement to put under cmod.
    Is it possible to do it?
    Doing it can i have problem during delta extraction?????
    Regards
    Piero

    Hi,
    if you want to populate the additional fields of you COPA extractor you have to use the cmod enhancement for transaction data EXIT_SAPLRSAP_001. This one is for all transaction data extractors and within the coding you have to separate the coding by asking the datasource name, i.e. with a case-statement.
    If you have never used the extraction enhancements in cmod you first have to activate them.
    This enhancement has no impact on the delta mechanism.
    Regards
    Adios

  • Enhancement of the datasource is taking lot of time

    Hi Experts,
    we enhanced the datasource  0employee_attr almost 35 fileds but every thing fine when we are loading it taking almost 20hrs . these reports are using every day .how to reduce the loading time .iam not written any routines i thought its happened in R/3 side because lot of select statement.can any one suggest me on this issue.
    Regards
    sivaraju

    Hi,
    i dont know much about ABAP coding . can you pllz suggest me where i need to put indexes etc.
    TABLES: PA0185,HRP1001,PA0001,PA0588, PA0587, PA0021, PA0006, PA0009, PA0003.
    TABLES: HRMS_BIW_IO_OCCUPANCY.
    TABLES: BWCO_MD_CCTR.
    TABLES: BIW_KNA1_S,KNB1.
    Internal table - Types -- Declaration for COSTCENTER_ATTR
    TYPES : BEGIN OF T_PERNR,
             PERNR TYPE PERSNO,
            END OF T_PERNR.
    DATA : IT_PERNR TYPE STANDARD TABLE OF T_PERNR.
    DATA : VL_COUNT TYPE I.
    data : s_area like pa0001-mstbr.
    Declarations for 0EMPLOYEE_ATTR
    DATA : I_W_DATA LIKE HRMS_BIW_IO_OCCUPANCY,
           I_W_DATA_KOSTL LIKE BWCO_MD_CCTR,
           L_ICNUM TYPE PA0185-ICNUM,
           L_RMBEGDA TYPE PA0185-BEGDA,
           L_RMENDDA TYPE PA0185-ENDDA,
           L_PERNR TYPE PA0001-PERNR,
           L_PERNR1 TYPE PA0001-PERNR,
           L_PLANS TYPE SOBID,
           L_PLANS2 TYPE SOBID,
           L_SUBTY TYPE PA0185-SUBTY,
           L_NAME TYPE PA0001-ENAME,
           L_NAME1 TYPE PA0001-ENAME,
           L_AMOUNT TYPE BETRG,
           L_AMOUNT_OFF TYPE BETRG,
           L_ORGUNITSVP TYPE PA0001-ORGEH,
           L_ICNUM_RM TYPE PA0185-ICNUM,
           L_ICNUM_TIER2 TYPE PA0185-ICNUM,
           L_MSTBR TYPE PA0001-MSTBR,
           L_ICNUM_21 TYPE PA0185-ICNUM,
           L_ICNUM_20 TYPE PA0185-ICNUM,
           L_ICNUM_24 TYPE PA0185-ICNUM,
           L_ICNUM_18 TYPE PA0185-ICNUM,
           L_ISSPL TYPE PA0185-ISSPL,
           L_ESINO LIKE PA0588-ESINO,
           L_EEBAS LIKE PA0587-TSTID,
           I_W_DATA1 LIKE BIW_KNA1_S,
           L_TLFXS LIKE KNB1-TLFXS,
           L_NAME4 LIKE KNA1-NAME4,
    new fields added by pandu
           L_GBDAT TYPE GBDAT,
           L_FAVOR TYPE PAD_VORNA,
           L_NAME2 TYPE PAD_CONAM,
           L_STRAS TYPE PAD_STRAS,
           L_PSTLZ TYPE PSTLZ_HR,
           L_ORT01 TYPE PAD_ORT01,
           L_USRID TYPE SYSID,
           L_XMETXT TYPE     REBDXRO,
           L_BANKL TYPE BANKK,
           L_BANKN TYPE BANKN,
           L_CNAME TYPE ZCNAME,
           L_USRID1 TYPE     SYSID,
           L_MGRID TYPE SOBID,
           L_INCDAT TYPE     BEGDA,
           L_LIFNR TYPE LIFNR,
           L_RDATE TYPE BEGDA,
           L_LWDAY TYPE BEGDA,
           L_REDAT TYPE BEGDA,
           L_SCHKZ TYPE SCHKN,
           L_PRDAT TYPE PRDAT,
           L_ABRDT TYPE LABRD,
           L_ABRSP TYPE ABRSP,
           L_BANKA TYPE BANKA,
           L_SMDAT TYPE BEGDA.
          l_ctc_amt type betrg.
    *endchange
    DATA: BEGIN OF TP_RGDIR OCCURS 0.
            INCLUDE STRUCTURE PC261.
    DATA: END OF TP_RGDIR.
    *Decleration for monthly salary
    DATA : L_PA0008 LIKE PA0008.
    DATA : V_AMOUNT TYPE PAD_AMT7S,
           FLDNAM(30),
           NUM(2) VALUE '01'.
    FIELD-SYMBOLS: <FS> TYPE ANY.
    FIELD-SYMBOLS: <FS1> TYPE ANY.
    CASE I_DATASOURCE.
    *Getting Customer branch in 0customer_attr
        WHEN '0CUSTOMER_ATTR'.
          LOOP AT I_T_DATA.
            MOVE-CORRESPONDING I_T_DATA TO I_W_DATA1 .
    *Getting Customer branch in 0customer_attr
            SELECT SINGLE TLFXS INTO L_TLFXS FROM KNB1 WHERE KUNNR EQ I_W_DATA1-KUNNR.
    *Getting Customer Name4 in 0customer_attr from table KNA1
           SELECT SINGLE NAME4 INTO L_NAME4 FROM KNA1 WHERE KUNNR EQ I_W_DATA1-KUNNR.
            I_W_DATA1-ZZTLFXS = L_TLFXS.
            I_W_DATA1-ZZNAME4 = L_NAME4.
            MODIFY I_T_DATA FROM I_W_DATA1.
             CLEAR L_TLFXS.
             CLEAR L_NAME4.
          ENDLOOP.
    Getting the RM for the employee and SVP using the ICNUM
      WHEN '0EMPLOYEE_ATTR'.
        LOOP AT I_T_DATA INTO I_W_DATA.
          SELECT SINGLE ICNUM INTO L_ICNUM FROM PA0185
                 WHERE PERNR EQ I_W_DATA-PERNR
                 AND SUBTY = '23'
                 AND ENDDA GE SY-DATUM.
    Getting the Joining date of RM
          SELECT SINGLE BEGDA INTO L_RMBEGDA FROM PA0000
                  WHERE PERNR EQ I_W_DATA-PERNR
                  AND MASSN EQ '01'.
    Getting the Resignation Date of RM
          SELECT SINGLE BEGDA INTO L_RMENDDA FROM PA0000
                  WHERE PERNR EQ I_W_DATA-PERNR
                  AND MASSN EQ '14'.
    *Getting the Tier II code and Name
          SELECT SINGLE SOBID INTO L_PLANS FROM HRP1001
                  WHERE OTYPE EQ 'S'
                  AND OBJID EQ I_W_DATA-PLANS
                  AND RSIGN EQ 'A'
                  AND RELAT EQ '002'
                  AND ENDDA GE I_W_DATA-ENDDA
                 AND endda GE sy-datum
                  AND SCLAS EQ 'S'.
                 AND sobid EQ i_w_data-plans.
          SELECT SINGLE PERNR INTO L_PERNR FROM PA0001
                  WHERE ENDDA GE SY-DATUM
                 WHERE endda GE i_w_data-endda
                  AND PLANS EQ L_PLANS.
          SELECT SINGLE ENAME INTO L_NAME FROM PA0001
                  WHERE ENDDA GE SY-DATUM
                  AND PLANS EQ L_PLANS.
    *Getting the TIER II branch
        SELECT SINGLE ICNUM INTO L_ICNUM_TIER2 FROM PA0185
                     WHERE ENDDA GE SY-DATUM
                     AND PERNR EQ L_PERNR
                     AND SUBTY = '05'.
    *Getting the Supervisor/HOD for Employee----
    SELECT SINGLE MSTBR FROM PA0001 INTO L_MSTBR  WHERE PERNR =  I_W_DATA-PERNR AND
                                                   ENDDA GE SY-DATUM.
    *Getting the Employee Product from infotype 185 styp 21.
       SELECT SINGLE ICNUM INTO L_ICNUM_21 FROM PA0185
                   WHERE ENDDA GE SY-DATUM
                   AND PERNR EQ I_W_DATA-PERNR
                   AND SUBTY = '21'.
    *Getting the Employee Branch Discription/Place of issue from infotype 185 styp 05.
       SELECT SINGLE ISSPL INTO L_ISSPL FROM PA0185
                   WHERE ENDDA GE SY-DATUM
                   AND PERNR EQ I_W_DATA-PERNR
                   AND SUBTY = '05'.
    *Getting the Employee Library no/business from infotype 185 styp 18.
       SELECT SINGLE ICNUM INTO L_ICNUM_18 FROM PA0185
                   WHERE ENDDA GE SY-DATUM
                   AND PERNR EQ I_W_DATA-PERNR
                   AND SUBTY = '18'.
    *Getting the Employee Department from infotype 185 styp 20.
       SELECT SINGLE ICNUM INTO L_ICNUM_20 FROM PA0185
                   WHERE ENDDA GE SY-DATUM
                   AND PERNR EQ I_W_DATA-PERNR
                   AND SUBTY = '20'.
    *Getting the Employee RBT Codefrom infotype 185 styp 24.
       SELECT SINGLE ICNUM INTO L_ICNUM_24 FROM PA0185
                   WHERE ENDDA GE SY-DATUM
                   AND PERNR EQ I_W_DATA-PERNR
                   AND SUBTY = '24'.
    *Getting the Employee ESI number from Infotype 588.
      SELECT SINGLE ESINO INTO L_ESINO FROM PA0588
                 WHERE ENDDA GE SY-DATUM
                 AND PERNR EQ I_W_DATA-PERNR.
    *Getting the Employee PF Eligibility no from Infotype 587.
      SELECT SINGLE TSTID INTO L_EEBAS FROM PA0587
                 WHERE ENDDA GE SY-DATUM
                 AND PERNR EQ I_W_DATA-PERNR.
    *Getting the Employee Basic salary amt from Infotype 0008.
        NUM = '01'.
        CLEAR V_AMOUNT.
        SELECT SINGLE * INTO L_PA0008 FROM PA0008 WHERE PERNR EQ I_W_DATA-PERNR
                                                  AND   ENDDA EQ '99991231'.
        DO 30 TIMES.
        IF STRLEN( NUM ) = 1.
          CONCATENATE '0' NUM INTO NUM.
        ENDIF.
        CONCATENATE 'L_PA0008-LGA' NUM INTO FLDNAM.
        ASSIGN (FLDNAM) TO <FS>.
        CONCATENATE 'L_PA0008-BET' NUM INTO FLDNAM.
        ASSIGN (FLDNAM) TO <FS1>.
        IF <FS> = '1000'.
          V_AMOUNT = <FS1>.
        ENDIF.
        CLEAR :  <FS>, <FS1>.
        NUM = NUM + 1.
        ENDDO.
        I_W_DATA-ZZBASPAY  = V_AMOUNT.
       endif.
      HRMS_BIW_IO_OCCUPANCY-ZZMSTBR = s_area.
    select single mstbr into l_mstbr from pa0001
                    where endda GE sy-datum
                    and pernr eq l_pernr.
    *Bringing RM branch
       SELECT SINGLE ICNUM INTO L_ICNUM_RM FROM PA0185
                     WHERE ENDDA GE SY-DATUM
                     AND PERNR EQ I_W_DATA-PERNR
                     AND SUBTY = '05'.
    new code for fields by pandu
    *bringing date-of-birth
      SELECT SINGLE GBDAT INTO L_GBDAT FROM PA0002 WHERE PERNR = I_W_DATA-PERNR.
    bringing fathers name
      SELECT SINGLE FAVOR INTO L_FAVOR FROM PA0021 WHERE PERNR = I_W_DATA-PERNR
                                                     AND SUBTY = '2'.
    bringing address details
      SELECT SINGLE * FROM PA0006 WHERE PERNR = I_W_DATA-PERNR
                                    AND SUBTY = '2'
                                    AND ENDDA GE SY-DATUM.
    L_NAME2 = PA0006-NAME2.
    L_STRAS = PA0006-STRAS.
    L_ORT01 = PA0006-ORT01.
    L_PSTLZ = PA0006-PSTLZ.
    bringing communication dteails
    SELECT SINGLE USRID INTO L_USRID FROM PA0105 WHERE PERNR = I_W_DATA-PERNR
                                                    AND SUBTY = '0010'
                                                    AND ENDDA GE SY-DATUM.
    bringing location details
    SELECT SINGLE XMETXT INTO L_XMETXT FROM PA9005 WHERE PERNR = I_W_DATA-PERNR
                                                     AND ENDDA GE SY-DATUM.
    bringing bank details
      SELECT SINGLE * FROM PA0009 WHERE  PERNR = I_W_DATA-PERNR
                                          AND ENDDA GE SY-DATUM.
      L_BANKN = PA0009-BANKN.
      L_BANKL = PA0009-BANKL.
    bringing the bankname
    SELECT SINGLE BANKA INTO L_BANKA FROM BNKA WHERE BANKL = L_BANKL.
    bringing esop details
    SELECT SINGLE CNAME INTO L_CNAME FROM PA9008 WHERE  PERNR = I_W_DATA-PERNR
                                                    AND ENDDA GE SY-DATUM.
    bringing vendor details
    SELECT SINGLE LIFNR INTO L_LIFNR FROM LFB1 WHERE PERNR = I_W_DATA-PERNR.
    SELECT SINGLE CTC_DATE  INTO L_INCDAT  FROM PB9007 WHERE REPORT = I_W_DATA-PERNR
                                                       AND ENDDA GE SY-DATUM.
    *select single ctc_amt  into l_ctc_amt  from pb9007 where report = i_w_data-pernr
                                                      and endda ge sy-datum.
    *l_incdat = pa9007-ctc_date.
    *l_ctc_amt = pa9007-ctc_amt.
    bringing resignation date
    SELECT SINGLE BEGDA FROM PA0000 INTO L_RDATE WHERE PERNR = I_W_DATA-PERNR
                                                       AND ENDDA GE SY-DATUM
                                                       AND MASSN = '14'.
    to get last working day
    L_LWDAY = L_RDATE - 1.
    to get reentry date
    SELECT SINGLE BEGDA FROM PA0000 INTO L_REDAT WHERE PERNR = I_W_DATA-PERNR
                                                       AND ENDDA GE SY-DATUM
                                                       AND MASSN = '15'.
    bringing workschedule details
    SELECT SINGLE SCHKZ FROM PA0007 INTO L_SCHKZ WHERE PERNR =  I_W_DATA-PERNR
                                                       AND ENDDA GE SY-DATUM.
    bringing payroll status details
    SELECT SINGLE * FROM PA0003 WHERE PERNR = I_W_DATA-PERNR
                                  AND ENDDA GE SY-DATUM.
    L_PRDAT = PA0003-PRDAT.
    L_ABRDT = PA0003-ABRDT.
    L_ABRSP = PA0003-ABRSP.
    bringing paydate
    SELECT SINGLE BEGDA INTO L_SMDAT FROM PA0008 WHERE PERNR = I_W_DATA-PERNR
                                                       AND ENDDA GE SY-DATUM.
    *endadd
    Getting wage type for the salaries calc
          I_W_DATA-ZZRMID = L_ICNUM.
          I_W_DATA-ZZICNUM = L_ICNUM_RM.
          I_W_DATA-ZZRMBEGDA = L_RMBEGDA.
          I_W_DATA-ZZRMENDDA = L_RMENDDA.
          I_W_DATA-ZZEVPID = L_PERNR.
          I_W_DATA-ZZEVPNAME = L_NAME.
         I_W_DATA-ZZORGUTSVP = L_ICNUM_TIER2.
          I_W_DATA-ZZMSTBR = L_MSTBR.
          I_W_DATA-ZZICNUM_21 = L_ICNUM_21.
          I_W_DATA-ZZICNUM_20 = L_ICNUM_20.
          I_W_DATA-ZZICNUM_24 = L_ICNUM_24.
          I_W_DATA-ZZICNUM_18 = L_ICNUM_18.
          I_W_DATA-ZZESINO = L_ESINO.
          I_W_DATA-ZZEEPF1 = L_EEBAS.
          I_W_DATA-ZZISSPL = L_ISSPL.
    code added by pandu
          I_W_DATA-ZZGBDAT = L_GBDAT.
          I_W_DATA-ZZFAVOR = L_FAVOR.
          I_W_DATA-ZZNAME2 = L_NAME2.
          I_W_DATA-ZZORT01 = L_ORT01.
          I_W_DATA-ZZSTRAS = L_STRAS.
          I_W_DATA-ZZPSTLZ = L_PSTLZ.
          I_W_DATA-ZZUSRID = L_USRID.
          I_W_DATA-ZZXMETXT = L_XMETXT.
          I_W_DATA-ZZBANKL = L_BANKL.
          I_W_DATA-ZZBANKN = L_BANKN.
          I_W_DATA-ZZCNAME = L_CNAME.
          I_W_DATA-ZZLIFNR = L_LIFNR.
          I_W_DATA-ZZINCDAT = L_INCDAT.
         i_w_data-zzctc_amt = l_ctc_amt.
          I_W_DATA-ZZRDAT = L_RDATE.
          I_W_DATA-ZZLWDAY = L_LWDAY.
          I_W_DATA-ZZRDAT = L_REDAT.
          I_W_DATA-ZZSCHKZ = L_SCHKZ.
          I_W_DATA-ZZPRDAT = L_PRDAT.
          I_W_DATA-ZZABRDT = L_ABRDT.
          I_W_DATA-ZZABRSP = L_ABRSP.
          I_W_DATA-ZZBANKA = L_BANKA.
          I_W_DATA-ZZSMDAT = L_SMDAT.
    *endchange
    *Getting The details for EVP
          CLEAR L_PERNR.
          CLEAR L_NAME.
          CLEAR L_ICNUM_TIER2.
          CLEAR L_ICNUM_RM.
          CLEAR L_RMBEGDA.
          CLEAR L_RMENDDA.
          CLEAR L_ESINO.
          CLEAR L_EEBAS.
          CLEAR L_ICNUM_21.
          CLEAR L_ICNUM_20.
          CLEAR L_ICNUM_24.
          CLEAR L_ICNUM_18.
          CLEAR L_MSTBR.
          CLEAR L_ISSPL.
          CLEAR L_PLANS.
    *code added by pandu
          CLEAR L_GBDAT.
          CLEAR L_FAVOR.
          CLEAR L_NAME2.
          CLEAR L_ORT01.
          CLEAR L_STRAS.
          CLEAR L_PSTLZ.
          CLEAR L_USRID.
          CLEAR L_XMETXT.
          CLEAR L_BANKN.
          CLEAR L_BANKL.
          CLEAR L_CNAME.
          CLEAR L_LIFNR.
          CLEAR L_RDATE.
          CLEAR L_LWDAY.
          CLEAR L_REDAT.
          CLEAR L_PRDAT.
          CLEAR L_SCHKZ.
          CLEAR L_ABRDT.
          CLEAR L_ABRSP.
          CLEAR L_BANKA.
          CLEAR L_SMDAT.
    *endcode
          SELECT SINGLE SOBID INTO L_PLANS2 FROM HRP1001
                  WHERE OTYPE EQ 'S'
                  AND OBJID EQ L_PLANS
                  AND RSIGN EQ 'A'
                  AND RELAT EQ '002'
                  AND ENDDA GE SY-DATUM
                  AND SCLAS EQ 'S'.
                 AND sobid EQ l_plans.
          SELECT SINGLE PERNR INTO L_PERNR1 FROM PA0001
                  WHERE ENDDA GE SY-DATUM
                  AND PLANS EQ L_PLANS2.
          SELECT SINGLE ENAME INTO L_NAME1 FROM PA0001
                  WHERE ENDDA GE SY-DATUM
                  AND PLANS EQ L_PLANS2.
          I_W_DATA-ZZSRRMEVP = L_PERNR1.
          I_W_DATA-ZZSRRMEVPNAME = L_NAME1.
    *Monthly salary of Rm from PA0008
    NUM = '01'.
    IF I_W_DATA-ENDDA EQ '99991231'.
    CLEAR V_AMOUNT.
    SELECT SINGLE * INTO L_PA0008
    FROM PA0008
    WHERE PERNR EQ I_W_DATA-PERNR
    AND   ENDDA EQ '99991231'.
    DO 30 TIMES.
    IF STRLEN( NUM ) = 1.
    CONCATENATE '0' NUM INTO NUM.
    ENDIF.
    CONCATENATE 'L_PA0008-BET' NUM INTO FLDNAM.
    ASSIGN (FLDNAM) TO <FS>.
    V_AMOUNT = V_AMOUNT + <FS>.
    CLEAR <FS>.
    NUM = NUM + 1.
    ENDDO.
    I_W_DATA-ZZMONSAL     = V_AMOUNT.
    ENDIF.
    Getting salary monthly information
          CLEAR : L_AMOUNT, L_AMOUNT_OFF,L_NAME1.
    *CALL FUNCTION 'ZIBHR_EMP_INCENTIVE'
    EXPORTING
       S_PERNR             = i_w_data-pernr
    IMPORTING
      INCENTIVE           = l_amount
      INCENTIVE_OFF       = l_amount_off
         i_w_data-zzmonsal_off = l_amount_off.
          MODIFY I_T_DATA FROM I_W_DATA.
          CLEAR L_ICNUM.
          CLEAR L_PERNR.
        ENDLOOP.
    COst Center Enhancement for data source
    Getting the employee count for a COST CENTER
      WHEN '0COSTCENTER_ATTR'.
        CLEAR : VL_COUNT.
        LOOP AT I_T_DATA INTO I_W_DATA_KOSTL.
          SELECT PERNR INTO TABLE IT_PERNR  FROM PA0185
                 WHERE ICNUM EQ I_W_DATA_KOSTL-KOSTL
                 AND SUBTY = '05'
                 AND ENDDA EQ '99991231'.
          DESCRIBE TABLE IT_PERNR LINES VL_COUNT.
          MOVE : VL_COUNT TO I_W_DATA_KOSTL-ZZHEADCOUNT.
          MODIFY I_T_DATA FROM I_W_DATA_KOSTL.
          REFRESH : IT_PERNR.
        ENDLOOP.
    ENDCASE.

  • Enhancing 0CRM_SALES_ACT_1 crm Datasource

    guys i have read so many threads here to enhance 0CRM_SALES_ACT_1 crm datasource. i am adding 4 fields to this ds and would like to know how to enhance this. i would like this to delta capability.
    do we have to use4 badi..if so can us send me sample abap code? what is the best practice and procedure

    Hello,
    You can enhance th edatasource from RSA6. Append the fields to the datasource structure and write a abap code in CMOD  for those added fields.
    Also go through the below forum:
    [CRM Extractors - Mapping in BWA1;
    Regards,
    Pratap Sone

  • Enhancement of Master DataSource

    Hi Experts,
    I got to enhance a master data source 0SALESDEAL_ATTR which is based on the view V_KONA_SALESD. Now the field I want to add is not present in the underneath table and hence in view. Also the extract structure being view, system threw pop-up saying CustApp will not be allowed for this DataSource.
    Though I've worked a lot in BW, not sure how to go about it in ECC (R/3). Please help.
    Thanks,
    Yogesh

    Hi Yogesh Kulkarni
    Just have quick look wih the following steps
    Go to RSA6 of R/3 or ECC system  double click on the data source for which your planning to enhance
    again double click on the extract structure name it will take to you the structure there click on the append buttoon which is present in the top right and then select if any strucre is avilable if not then create a new append strcture then include the new fields ZZ* fields do nt foget to place the component which is corrosponding to the field and present in the DB table and then try to activate it . I guess in your case you may be missed up the comopnent type/field type thats why its strucking you up..
    Hope its clear a little..!
    Thanks
    K M R
    **Assigning points is the only way of saying thanks in SDN***
    >
    Yogesh Kulkarni wrote:
    > Hi Andreas,
    >
    > Thanks for useful information. Though I am aware of the steps now, there is still a small doubt. While creating append to the view, it allows me to add the fields which are present in the table underneath the view. It does not allow adding the new field in it. Is it like this only?
    >
    > Regards,
    > Yogesh

Maybe you are looking for