2lis_11_vahdr enhancement

Hello,
I am enhancing the 2lis_11_vahdr data source to include Partners fields.
I enhanced the structure - mc11va0hdr and included all the fields and using the user exit under cmod I wrote the code:
TYPES: BEGIN OF TY_VBPA,
           VBELN TYPE VBELN,
           KUNNR TYPE KUNNR,
           PARVW TYPE PARVW,
        END OF TY_VBPA.
*-- Internal Table
DATA :
      Internal Table to hold data from the structure MC11VA0HDR
        T_MC11VA0HDR TYPE TABLE OF MC11VA0HDR,
      Internal table to hold data fetched from the table VBPA
        T_VBPA   TYPE STANDARD TABLE OF TY_VBPA,
*-- Work Area
      Work Area to hold records from the internal table MC11VA0HDR
        W_MC11VA0HDR TYPE MC11VA0HDR,
      Work Area to hold records fetched into the internal table VBPA
        W_VBPA   TYPE TY_VBPA,
WHEN '2LIS_11_VAHDR'.                             "RETRIEVING THE EXTRACTOR
     REFRESH: T_MC11VA0HDR,
              T_VBPA.
     CLEAR: W_VBPA,
            L_TABIX.
     T_MC11VA0HDR[] = C_T_DATA[].
     SELECT VBELN
            KUNNR
            PARVW
       INTO TABLE T_VBPA
       FROM VBPA
       FOR ALL ENTRIES IN T_MC11VA0HDR
       WHERE VBELN = T_MC11VA0HDR-VBELN.
     IF NOT T_VBPA IS INITIAL.
       SORT T_VBPA BY VBELN KUNNR PARVW.
       CLEAR: W_MC11VA0HDR,
              W_VBPA.
       LOOP AT T_MC11VA0HDR INTO W_MC11VA0HDR.
         L_TABIX = SY-TABIX.
         READ TABLE T_VBPA INTO W_VBPA WITH KEY VBELN = W_MC11VA0HDR-VBELN BINARY SEARCH.
         IF SY-SUBRC = 0.                                  "IF READ TABLE IS SUCESSFULL
START OF FILLING THE ZFIELDS CREATED
           CASE W_VBPA-PARVW.
             WHEN 'CR'.                                     "Forwarding Agent
               W_MC11VA0HDR-ZZCR_FRAGNT = W_VBPA-KUNNR.
               MODIFY T_MC11VA0HDR FROM W_MC11VA0HDR INDEX L_TABIX.
             WHEN 'EU'.                                     "End User
               W_MC11VA0HDR-ZZEU_ENDUSR = W_VBPA-KUNNR.
               MODIFY T_MC11VA0HDR FROM W_MC11VA0HDR INDEX L_TABIX.
             WHEN 'Z1'.                                     "Sales Rep
               W_MC11VA0HDR-ZZ1_SLSREP = W_VBPA-KUNNR .
               MODIFY T_MC11VA0HDR FROM W_MC11VA0HDR INDEX L_TABIX.
             WHEN 'Z2'.                                     "Sales Rep-2
               W_MC11VA0HDR-ZZ2_SLSREP = W_VBPA-KUNNR.
               MODIFY T_MC11VA0HDR FROM W_MC11VA0HDR INDEX L_TABIX.
             WHEN 'ZA'.                                     "Agent
               W_MC11VA0HDR-ZZA_AGENT = W_VBPA-KUNNR.
               MODIFY T_MC11VA0HDR FROM W_MC11VA0HDR INDEX L_TABIX.
             WHEN 'ZC'.                                     "Bemis Frt Forwarder
               W_MC11VA0HDR-ZZC_FRTFOR = W_VBPA-KUNNR.
               MODIFY T_MC11VA0HDR FROM W_MC11VA0HDR INDEX L_TABIX.
             WHEN 'ZF'.                                     "Cust Frt Forwarder
               W_MC11VA0HDR-ZZF_CFRTFO = W_VBPA-KUNNR.
               MODIFY T_MC11VA0HDR FROM W_MC11VA0HDR INDEX L_TABIX.
             WHEN 'ZI'.                                     "Intermediate Consign
               W_MC11VA0HDR-ZZI_INTCON = W_VBPA-KUNNR.
               MODIFY T_MC11VA0HDR FROM W_MC11VA0HDR INDEX L_TABIX.
             WHEN 'ZS'.                                     "Customer Service Rep
               W_MC11VA0HDR-ZZS_CSEREP = W_VBPA-KUNNR.
               MODIFY T_MC11VA0HDR FROM W_MC11VA0HDR INDEX L_TABIX.
             WHEN 'ZX'.                                     "Canadian Importer
               W_MC11VA0HDR-ZZX_CANIMP = W_VBPA-KUNNR.
               MODIFY T_MC11VA0HDR FROM W_MC11VA0HDR INDEX L_TABIX.
             WHEN 'SB'.                                     "Special Stock Customer
               W_MC11VA0HDR-ZZSB_SPSTKC = W_VBPA-KUNNR.
               MODIFY T_MC11VA0HDR FROM W_MC11VA0HDR INDEX L_TABIX.
             WHEN OTHERS.
               EXIT.
           ENDCASE.
END OF FILLING THE ZFIELDS CREATED
         ENDIF.                                             "ENDIF   FOR READ TABLE IS SUCESSFULL
         CLEAR: W_MC11VA0HDR,
                L_TABIX,
But I am unable to get any data.
Can anyone please advice what I need to do to get the data.
Thanks for your help.
Regards
Sundar

ENDIF.                                             "ENDIF   FOR READ TABLE IS SUCESSFULL
         CLEAR: W_MC11VA0HDR,
                L_TABIX,
                W_VBPA.
       ENDLOOP.                                             "ENDLOOP FOR T_MC11VA0HDR
     ENDIF.                                             "ENDIF   FOR T_VBPA NOT INITIAL
     REFRESH C_T_DATA.
     C_T_DATA[] = T_MC11VA0HDR[].
     REFRESH: T_MC11VA0HDR,
              T_VBPA.
I apologise that I did not include the last part.
Thanks
Sundar

Similar Messages

  • DS enhancement

    Hello Gurus,
    I am practicing on enhancing datasource for 2lis_11_vahdr.
    I managed to add 2 fields in rsa6 with zztid,zztname. Now i went to LBWE to add those fileds to seletion criteria but its not listed in pool. I think only after selecting here we can do the coding part in cmod.
    Please suggest..

    Hi Mahesh,
    Do you see those fields in the communication structure in DS?In lBWE when u click on the maintanance of DS u will get a screen where u will be having left screen and right screen..... Right side screen is the Communication structure and left side screen is the extract structure....... Drag those fileds into extract structure once u drag them then by default hide and filed only will be selected uncheck them if u want them into BW...
    Khaja

  • DataSource 2LIS_11_VAHDR does not exist in source system ECDCLNT100 of vers

    Hi iam working on BI 7 and ECC 6 system. When i try to install the transfer rules for 2 lis_11_vahdr in BI7 business content, it gave a message that "<b>DataSource 2LIS_11_VAHDR does not exist in source system ECDCLNT100 of version A".</b> i have done an enhancement for this.I activated them from rsa5,  activated both in LBWE as well as activated thier structures too after enhancing. I replicated and did all possible steps still iam unable to find.
    Can anybody help me who has faced similar issue.
    Regards,
    Neil

    Hi Niel,
           Could you chek the RFC Connection of particular client.
    Thanks,
    Ram

  • Procedure for delta intialization of datasource 2LIS_11_VAHDR

    Hello experts,
    I need some help with the delta intialization for the datasrouces 2LIS_11_VAHDR and 2LIS_11_VAITM. I'm working on SAP R/3 4.7C and extracting data to BI 3.5. I'll be grateful if someone could send some links where I can find the step by step procedure.
    Thanks and regards,
    Sumit

    Sumit
    You could also go through these weblogs on LO extraction
    /people/sap.user72/blog/2004/12/16/logistic-cockpit-delta-mechanism--episode-one-v3-update-the-145serializer146
    /people/sap.user72/blog/2004/12/23/logistic-cockpit-delta-mechanism--episode-two-v3-update-when-some-problems-can-occur
    /people/sap.user72/blog/2005/01/19/logistic-cockpit-delta-mechanism--episode-three-the-new-update-methods
    /people/sap.user72/blog/2005/04/19/logistic-cockpit-a-new-deal-overshadowed-by-the-old-fashioned-lis
    /people/sap.user72/blog/2005/02/14/logistic-cockpit--when-you-need-more--first-option-enhance-it
    Thnaks
    Sa

  • 2lis_11_vahdr

    Hi,
    We have enhanced 2lis_11_vahdr to get payment method from VBKD table.
    When we change particular sales order and save the delta record is not being captured in LBWQ or RSA7.
    but if i fill the setup table for this sales order i can see the data.
    We are using Qued delta.
    Can anone suggest what would be the problem.
    Thanks

    You should have enhanced 2LIS_11_VAITM data source as VBKD is an item level table and VAITM has data coming from this table.
    Delta will work if you use VAITM data source.
    Delta must not be coming in VAHDR table as changing the data at item level in VBKD is not changing anything for the order at header level.
    I hope it helps.
    Regards,
    Gaurav

  • 2lis_11_vaitm vs 2lis_11_vahdr

    Hi gurus,
    I need to enhance 2lis_11_vaitm with VDATU field (sold-to party's Requested Delivery Date.) Actually this extractor contain field with same name and different meaning (Update date for statistics update).
    The reason is we've done it with badi&z-field but there are a lot of data and primitive calculation show us that we'll spend extra hours and extra load to our erp enhancing our 2lis_11_vaitm.
    So i wonder is there any way to change standart field in item extractor? or maybe some way to cheat it?
    PS They way described below is found on sap site -
    DataSources 2LIS_11_VAITM and 2LIS_11_VASCL. In 2LIS_11_VAHDR however,
    the field VDATU contains the sold-to party's Requested Delivery Date.
    If you need a field that can take over the Update Date for Statistics
    Update function, proceed as described in SAP Note 719603.
    <<Removed>>
    Edited by: Matt on Sep 20, 2011 7:05 AM

    Gurus please be so kind to check my abap tuning and guess if something can be done extra.
    WAS
    +loop at c_t_data assigning <l_s_data>.
    select single vdatu into (<l_s_data>-zvdatu)
    from vbak where vbeln=<l_s_data>-vbeln.
    endloop.+
    NOW
    DATA: BEGIN OF wa_vbak,
               vbeln LIKE vbak-vbeln,
               vdatu LIKE vbak-vdatu,
            END OF wa_vbak.
    DATA: it_vbak LIKE TABLE OF wa_vbak,
               l_vbak like line of wa_vbak.
    select vbeln vdatu from vbak
    for all entries in c_t_data
    where vbeln=c_t_data-vbeln
    into table it_vbak.
    sort it_vbak by vbeln descending.
    loop at c_T_data assigning <l_s_data>/
    read table it_vbak with table key vbeln=<l_s_data>-vbeln into l_vbak.
    <l-s-data>-zvdatu=l-vbak-vdatu.
    endloop.

  • 2LIS_03_BF, 2LIS_11_VAHDR and PP question

    I'm deriving a report & need following:
    1) Inventory - Stock in transit: For this calculation I require issuing & receiving plants. I get receiving/issue plant as a single field (UMWRK) in 2LIS_03_BF, but I want bifurcation between receiving & issue plant & not a single field. Is there any other field in 2LIS_03_BF which gives bifurcation?
    2) PP - Production Plant: As per ECC logic I need to identify Special procurement type(MARC-SOBSL) for the Material/Plant combination. Pass WERK & SOBSL from MARC to T460A ( with following restriction MARC-BESKZ <> "E"). Get WRK02 from T460. Do we have a standard datasource which gives MARC-SOBSL, MARC-WERK, MARK-BESKZ & T460-WRK02?
    3) SD: I need to derive Sales order Qty with restrictions on VBUK-CMPSB, VBAK-VTWEG and VBUK-GBSTK. I've identified datasource 2LIS_11_VAHDR as this points to header data. I get VBUK-CMPSB and VBAK-VTWEG but VBUK-GBSTK I'm not getting in 2LIS_11_VAHDR. Do I have any other option to enhance 2LIS_11_VAHDR & accommodate VBUK-GBSTK through code or any standard datasource or functionality is available?

    Hello
    1) 2LIS_03_BF clearly gives you the receiving plant and the issuing plant. For eg if you are doing plant to plant transfer there will be 2 entries in 2lis_03_bf , one for issue and one for receiving. You can bifurcate the receiving plant and the issuing plant by using either process key (BWVORG ) or debit credt (SHKZG)  (H stands for issue & S stands for receipt).
    2) 0MAT_PLANT_ATTR  provides you the plantwise specila procurement type
    3)  you will get  VBUK-GBSTK in the standard source 2LIS_11_VASTH . You will have to combine the data at the BW level
    Regards
    Gajesh

  • DataSource 2LIS_11_VAHDR does not allow append structures

    Hello Gurus,
    I am trying to include some 'Z' fields in 2LIS_11_VAHDR by append structure on Txn RSA6. But it gives me the following error.
    Error:
    Maintain enhancements to the extraction structure in the corresponding application:
    You enhance LO extraction structures in the cockpit (LBWE).
    I did add few fields from LBWE. Doesn that mean I can not enhance it using RSA6?
    Thanks in advance.
    Cheers,
    DM

    hi david,
    I am sure that the field you want to add in the data source is not available in LBWE.
    If the is the case then you cant add field from RSA6.
    Instead use following steps.
    Go to rsa6 ---> find out the structure name for data source 2LIS_11_VAHDR.
    Go to SE11---> check radio button for structures > enter structure name collected from above.> display.>enhance structure.--> add youre z field.
    Regards,
    Mahendra

  • Delta not populated for Enhance field

    Hello Friends,
    We have a requirement to enhance Sales Header (2LIS_11_VAHDR) to retrieve Customer Group (KDGRP). Hence i enhanced the structure Sales Document: Header Data (MCVBAK) and included the field ZZKDGRP. Also wrote the Customer exit to fetch this data from VBKD-KDGRP.
    Now the problem that we are facing is that when any of the standard fields of 2LIS_11_VAHDR are changed we get proper Delta records, but if the user only changes the Customer Group (KDGRP) of a Sales Order we wont get a Delta record.
    I referred the Blog https://weblogs.sdn.sap.com/pub/wlg/1591but [original link is broken] would like to know if there are any other solution to handle such a scenario.
    Any help will be appreciated.
    Note: This field is also available through VA02 so can we make some screen level changes to trigger a Delta when this field value is changed.
    Regards,
    Nitin S.

    its checking for the LO fields to be change to show you delta but not puling delta when one of your feidls change.
    create a temp table like C-t_Data in r/3 load all Lo data in it and check ofr this fiedl data to be chnaged ..you will have to write logic in cmod that if previous value is different from new value then update tempt_table and append temp_table data in to C-T-data. hope that helps ..

  • Enhance LO communication structure.

    Hello experts,
    I need to enhance LO DataSource 2LIS_11_VAHDR. My requirement is, if my sales order contains  hazard goods indicator(CONT_DG) then I need to fill two more fields which are added by enhanceing the extract structure / communication structure.  Here my question is, if I add fields to communication structure (ex: MCVBAK), Can I use RSAP0001 to populate data for enhanced fields. Please advise.
    Thanks in advance,
    Zakir.

    Hi
    If you are enhancing the communication structure in the BI side then there no code required to wite.
    but you can populate the field by using startroutine ( by writing a logic)
    If you are enhancing in the R/3 or ECC side
    Detail steps to Enhance the extractor (follow this it will help you)
    1)Go to RSA6 and find the data source you need to enhance.--> Display
    2)Double click on the Extract structure.
    3)Now click on the append structure button to add the required field on to the existing structure.
    4) add your required fields with ZZ appended to your field.
    5) Save & Activate the append structure. Then go back and make sure you activate the extract structure also.
    6) Now again go back to RSA6 and select your Data Source. But this time go to change Data Source to remove the hide option to the enhanced fields. By default they ll be in hide mode. If you dont remove the hide field then this field will not be seen in BW side.
    7) Now go to SE38 to write the logic to populate the data into the enhanced field. Program name to write the logic is ZXRSAU01.
    8) Check + Save + Activate.
    9) Check in RSA3 if data is populated as per your requirement.
    10) Replicate your Data Source.
    11) Now go to Data Source/ Trans. Structure screen. Now you can see the enhanced field on the right hand side.Enhancements:
    Go to CMOD.
    1. To Save give Description , create,create new project and give the project name
    2. Select the radio button Enhancement Assignment and give the Enhancement name you want and press Enter.
    3. If the Enhancement is already assigned to some other project it will display the same message saying it is already assigned it some other project. Click on
    4. If the Enhancement is not assigned to any project save.
    5. Give RSAP0001 
    6. Activate the Project.
    Santosh
    Edited by: Santhosh Nagaraj on Jul 26, 2010 12:42 PM

  • Enhancement to a cube

    Hi Gurus
    I am working on BI 7 and as per a requirement i had to add 2 fields i.e calmonth(0CALMONTH) & a key figure namely document number (0CRM_NUMDOC) to a cube, now in tranformation calmonth is being mapped to a field in the DSO name of the field being, date field(0CRM_CRD_AT) and the key figure is being mapped with field of the same name in the DSO.After adding the fields to the cube and performing the full load i do not see the result for all records of the 2 fields that were loaded in the cube.kindly suggest..points will be hansomely awarded

    Hi Sharma,
    As u said the fields to be added to the cude, in this case the DS is already having this fileds and not mapped at the intal satage of mapping....????
    Can you check in RSA3 whether these fields that you have added does contain the Data for this perticluar Datasource.
    If you have enhanced the data source then u have to chek at the source system level itself.
    Since you are using BI.7 the DTP method then there is only 1 place that you map is in Tranformations.
    In this place it is direct map and 0CALMONTH if you map to any data field it will take the conversion automatically.
    Same way the Key field also if it is a direct field then it has to come.
    Best Regards,
    VNK.

  • Enhance MR11

    Hello Gurus ,
    I am trying to enhance MR11 Transaction (Report : SAPRCKM_MR11) .  Here i am adding GR  and  IR  posting date(BUDAT)  as selection field  .
    Requirement is that MR11 should consider  Gr and IR for that period.. compare and show the difference .
    In the program
    I added posting date(BUDAT)  in the select query to  'v_ckmlgrir' .  and it is picking all the records with in that period , open and cleared both .
    1)   But I want only the open one .....and I dont see any flag for that ....so is there any way i can get only the open items ?
    2) I observed that if i dont specify posting date ...I mean just run the standard MR11 ...then also it picks up open and cleared items ....but during processing it is considering open only don't know why ..i debugged it  its going through every item item but in the end considering open only which is correct ....so not understanding why its not doing the same if i restrict it to posting date .....
    any suggestion is greatly appreciated !!
    PS : GR/IR account   open items I can see from FBL3N .

    If you are using an account assigned PO then possibly the order(PM order, internal order etc) to which your PO refers might have status as CLSD.
    Check and reverse the status.

  • Extractor 0FC_BP_ITEMS - Business Partner Items Enhancement

    I'm looking at using 0FC_BP_ITEMS extractor to extract Open and cleared items. Has anyone worked on the enhancement of this extractor. If so what are the steps involved in enhancing this extractor?  Is it similar to the Full load extractor 0FC_CI_01 and 0FC_OP_01. Any help will be great.

    Hi,
    Please have alook in help.sap.com- Netweaver- BI Content-FICA.
    This is not same as those two datasources which you mentioned. This datasource will give you delta records.
    Regards,
    Asish

  • What is new in Enhancement Package 2 and 3

    Hi all,
    The [ERP Solution Browser|http://solutionbrowser.erp.sap.fmpmedia.com/] is an excellent tool to find out, what's new. However I did not find any means to get a list of new features in ERP 6.0 enhancement packages 2 and 3. Any hint (especially what's new in HCM) is welcome!
    Regards
      Matthias

    Hello Matthias,
    check out Service Marketplace, alias ERP-EhP to find out what's being delivered as part of an Enhancement Package:
    http://service.sap.com/erp-ehp (logon required).
    Basically, it provides the following:
    link to SAP Enhancement Package Infocenter to understand the content based on functional domain, e.g. HCM.
    documentation on
    - EhP concept and strategy
    - overview presentation SAP ERP EhP 2 and 3
    - detailed presentation SAP ERP EhP 2 and 3
    - preview SAP ERP EhP4
    - how to implement EhP ("Must know guide for IT professionals")
    - test case templates
    - links to other useful resources (e.g. ERP solution map, media library, functional areas)
    Hope this helps!

  • Create a new view in a enhance component

    Hi All,
              I want to create a new view for sales order and quatation in a component BP_factsheet.When i craete new view ,it is asking about some value like model node, bol entity, higher level, bol realtion.after that is is asking context node ,bsp application ,custome controller and view type.How can i get these value .when i create a new view then have to add these view in run time repositry under a window or not?
    Thanks in advance....
    Vishwas

    Hello Vishwas,
    You might be interested in knowing how to customise the new UI to add a new view using the enhancement concept.
    Please refer to the published document on the service marketplace:
    http://help.sap.com/saphelp_crm60/helpdata/en/1a/023d63b8387c4a8dfea6592f3a23a7/frameset.htm
    refers to the link at
    service.sap.com/okp
    Inside this go to:
    SAP CRM 2006s: Learning Map for Technology Consultants
    wherein you can find the cookbook to perform similar operation in detail.
    SAP CRM UI Cookbook
    I hope this helps.

Maybe you are looking for

  • Ios6 wifi thing fixed atleast for me

    downloaded update to itunes plugged in iphone erased the phone and restored it wifi issue went away perhaps doing it from the phone has an issue? as we speak im restoring my phone through wifi on icloud

  • It won't let me log in.

    I have two accounts on my computer. i think i might've typed the password too many times when trying to log in to my main account, because every time i try to log in to that account it says that i cannot be logged in to this account at this time. I d

  • Set parameter and call transaction

    Hi. To use the call transaction with the skip first screen option we have to use the set parameter statement. Depending on the PID which the technical specs of the fields contain, it is possible to preset these values. My query is that if the screen

  • Black screen on GDM, how to install xorg-base from grub?

    I followed these installation guides to install archlinux in a virtualbox before testing it out on a real machine: * http://wideaperture.net/blog/?p=3851 * https://wiki.archlinux.org/index.php/Vi … al_Machine * http://lifehacker.com/5680453/build-a-k

  • How to desing in A5 format user manual - ideas, showcase?

    I would like to make useful and nice user manual for our customers Our workflow is: I get the Word 2007 styled (from me given) chapters with text and images. After that I would like to create one ID file from that files. As a book perhaps? In any cas