CMOD issue

Hi,
   I need to write an customer exit for both master data and transactional data for inlcuding few Z fields.Whether the process is same for Both or its different.
Regards
Arun

hi,
it is the same way to write the cust exit.
but the fmodules differs check them in rsap0001
with regards soumyav

Similar Messages

  • Enhancement-ABAP Code-Customized Field issue

    Hi Experts,
    Currently I am working on the BW3.5 version. We are using the standard SRM standard extractor 0BBP_TD_SC_1 and we enhance same extractor(populate the filed through CMOD - ABAP Code) with one customized field also. We are having issue on the customized field data which post from SRM system. I have verified the field value and value is fine in RSA3 in SRM source system. But while posting into the BW(PSA itself), its loading correct & wrong value. When i check the PSA for the particular load, It looks little strange. In the PSA, I can see correct value on my first record of the same SC and then next records has incorrect value of the same SC. Currently I am using the ODS as a data target. So finally i am getting the incorrect value on the customized field.
    Ex Scenario:
    Ex Customized Field: ZORGID
    In SRM source system RSA3 Extractor Checker value:
    Shopping Card No: 100
    Customized Field: ZORGID=1
    Shopping Card No: 200
    Customized Field: ZORGID=2
    In BW posting-PSA:
    Shopping Card No: 100
    Customized Field: ZORGID=2
    Shopping Card No: 200
    Customized Field: ZORGID=2
    At the same time, if i do the selective deletion of the particular Shopping Card or group of SC in BW and do the full repair, then it gets a correct ZORGID=1 for the same Shopping Card.
    I strongly believe, something wrong in the ABAP code. But when we tried to debug the customized filed value in RSA3. The value is fine. so we unable to trace out the issue. Please help me to fix the code. Thanks in advance.
    CMOD ABAP Code:
    *Populate approver ID even though it doesn't require approval this is required to make sure BW reports have restrict access to respective Org Unit approvals only
    IF l_s_bbp_sc-approver_id IS INITIAL AND l_s_bbp_sc-itm_guid IS NOT INITIAL.
    CALL FUNCTION 'Z_BBP_FIRST_APPROVALGET'
    EXPORTING
    iv_header_guid = l_s_bbp_sc-guid
    iv_itm_guid = l_s_bbp_sc-itm_guid
    IMPORTING
    approver_no = l_s_bbp_sc-approver_id
    EXCEPTIONS
    no_data = 1
    OTHERS = 2
    IF sy-subrc 0.
    ENDIF.
    ENDIF.
    To ensure that the Org Unit passed in into the field
    l_s_bbp_sc-zzapprov_orgunit belongs to the Actual Level 1
    Budget Owner and not any other manager such as Added Approver.
    CLEAR : ls_ln_approvers, l_userid, lv_bpartner_guid.
    DATA : lv_f_apprv_part TYPE BU_PARTNER.
    READ TABLE lt_ln_approvers INTO ls_ln_approvers
    WITH KEY INITIAL_INDEX = '0000000001'.
    IF sy-subrc EQ 0.
    MOVE ls_ln_approvers-approval_agent+2(12) TO l_userid.
    CALL FUNCTION 'BP_CENTRALPERSON_GET'
    EXPORTING
    iv_username = l_userid
    IMPORTING
    ev_bu_partner_guid = lv_bpartner_guid
    EXCEPTIONS
    no_central_person = 1
    no_business_partner = 2
    no_id = 3
    OTHERS = 4.
    IF sy-subrc = 0.
    CALL FUNCTION 'BUPA_NUMBERS_GET'
    EXPORTING
    iv_partner_guid = lv_bpartner_guid
    IMPORTING
    ev_partner = lv_f_apprv_part.
    ENDIF.
    ENDIF.
    We get the BP number of the first Budget Owner 1
    Here, we superseed the field l_s_bbp_sc-approver_id
    whereby it may be wrong due to Added Approver.
    IF l_s_bbp_sc-approver_id IS NOT INITIAL.
    IF lv_f_apprv_part IS NOT INITIAL.
    IF l_s_bbp_sc-itm_guid IS NOT INITIAL.
    CALL FUNCTION 'RH_STRUC_GET'
    EXPORTING
    act_otype = 'BP'
    act_objid = lv_f_apprv_part
    act_wegid = 'EBP-UP'
    act_begda = sy-datum
    act_endda = sy-datum
    act_tdepth = 4
    TABLES
    result_tab = lt_result_tab
    EXCEPTIONS
    no_plvar_found = 1
    no_entry_found = 2
    OTHERS = 3
    IF sy-subrc = 0.
    READ TABLE lt_result_tab INTO ls_result_tab WITH KEY
    otype = 'O'.
    IF sy-subrc EQ 0.
    l_s_bbp_sc-zzapprov_orgunit = ls_result_tab-objid.
    ELSE.
    ENDIF.
    ENDIF.
    ENDIF.
    Thanks,
    RR

    Hi Experts,
    Any suggestions. Thanks.
    Thanks,
    RR

  • Confirmation of Production order with out goods issue

    Dear All
    In one of the post the solution is given as below.
    "<b>Try using user exit "EXIT_SAPLCORF_102" to check goods issue at the time of confirmation using CO11N.</b>"
    But ..
    1. How and where to find this user exit
    2. What code to add inside this user exit like looping, condition and so on.
    Please help us, as <b>we do not have sufficient exposure in user exit</b>
    Thanks in advance
    Raj

    Hi Raj,
    I will guide to see the user exit.
    Use T.code co11n & the production order no. & enter.
    Goto the menu, choose the system status & double click the program name(GUI).
    This will take you to another screen, got to menu & choose variant. From here you can get the package name.
    Use T.code SMOD, give a name eg.ZABC & press F4, remove ZABC & enter the package name & press enter, you can see a list of user exits for this screen. Note down your user exit & then use T.code CMOD & give a name Eg.ZPP1 , then create.
    Press save local object & then press enhancements, enter the user exit name you had noted down from SMOD transaction. This will take you to the program screen.
    Here you can see the include program.
    Double click the include program & add the new codes you need. Reg. Coding pl. refer to ABAP consultant.
    Regards,
    Senthilkumar SD

  • How to read variable in CMOD code !

    Experts,
    in my one of the query, there is a variable, which takes 2 dates. so the variable is type "interval"
    so, when you run the report, user needs to enter value something like this.."mm/dd/yyyy  - mm/dd/yyyy"
    Now, i have writtn a code in CMOD, by reading this variable.
    But i dont know how to read 2nd date from the variable.
    READ TABLE   i_t_var_range
                 WITH KEY   vnam = 'VARIABLE'
                 INTO       l_var_range.
              First Date = l_var_range-low.
              Second Date = l_var_range-high.
    Does this low and high thing is correct?
    if i do debug, i could see the low values. but i coud see the same low values in High too.
    whats the problem ?
    please help

    Hi ,
    There are some scenarios for using CMOD, for variables in report.
    And as per I understand for you issue, please find my comments
    Scenario : You want to use the values enter by user in some other variable in the same report.
    Please make sure that properties of both the variables are same.
    Use below code:
    DATA: l_s_range TYPE rsr_s_rangesid.
    DATA: loc_var_range LIKE rrrangeexit.
       WHEN 'New Variale'.
            IF i_step = 2.
              LOOP AT i_t_var_range INTO loc_var_range
                      WHERE vnam = 'Varaible in which user has entered value'.
                CLEAR l_s_range.
                l_s_range-low  =   loc_var_range-low  .
                l_s_range-high =   loc_var_range-high .
                APPEND l_s_range TO e_t_range.
              ENDLOOP.
            ENDIF.
    Thanks
    Mayank
    Edited by: Mayank Chauhan on Feb 8, 2011 11:45 AM
    Edited by: Mayank Chauhan on Feb 8, 2011 11:46 AM
    Edited by: Mayank Chauhan on Feb 8, 2011 11:47 AM

  • Text Enhancements  Issue

    Hello Gurus,
    i have searched the Threads related to my issue but not found any suitable one so I am posting this one.
    I have Changed the Text of the field AFNAM yousing the text enhancement through CMOD.
    I have trnasported that to  Quality and the Production system..
    But I found that when I am checking that Field in  Developement system and the Quality system I was able to see the new text changed by me in the transaction. but in the Production system I am not able to see that one
    starange case is this text is displayed in the data element level but in the transaction I am not able to see that i am seeing old text only where as in quality system it is coming correctly.
    Can anyone please tell why this is happening in only Production system and not in any other system.
    what is the way to solve this.
    Thanks,
    Vinod.

    Hi,
       Please check your Transport request log and return codes.
      Compare the list of TR's with imported dates in all the systems.
    Also check wether the object is active or not. If not then try to find out the route cause using TR log other wise re-send the Transport.
    Regards,
    Vamsi Krishna

  • Can anyone put some light on this issue.

    When transferring PO idocs from R/3 to the middleware, some idocs doesn't reach the destination due to one buyers address segment not getting populated.
    Since this segment contains the address where it needs to to sent is missing, the idocs does not reach the concerned place.
    But when the output is repeated, this segment gets filled up and idocs correctly reach the destination
    In the program this segment is populated on the following condition.
    The address number from the table T001W should match with the address number from the table ADRC..
    if sy-sucrc eq 0, the segment gets populated else it does not.
    But when the output is repeated in the PO, the sy-sucrc becomes zero again.
    I don't understand the connection between when the output is repeated and the above condition.
    How the above condition is getting successful when the output is repeated..
    Can anyone put some light on this issue.

    I have one customized field 'ZCOORNAME' in the DS 2LIS_05_Q0NOTIF. I have changed this field in Tcode- QM02 and checked the changes in TCODE - LBWQ (Extraction Queue) and I got the Changed entry but now when i am trigerring the V3 Job, these changes are not getting populated in RSA7 (Delta Queue).
    For standard field changes, it is capturing delta properly, the problem is with only customized fileds..Can anyone put some light on this issue ....
    Please try activating the datasopurce again and try it.
    Can you pls le me know when will be the Customer Exit(CMOD) is going to hit ? Before the Delta Queue or After the Delta Queue or is it before the Extraction Queue / After the Extraction Queue ???
    he customer exit is hit before the entries are populated in extraction queue. Actually, when the transaction is done, the changes are written to database table and at the same time into the extraction queue. Just before going to extraction queue, the custom fields get populated in customer exit.

  • Facing issue in Query output

    Hi All,
    It is a simple query looking at bookings and shipments for the current quarter by theatre.
    Recently we have created a mini project 445 and included the code in CMOD for variables in quarter, year, month and name as 445_quarter, 445_month etc.
    This query is very simple and runs fast if we use Time dimension.
    But this is not the case if i use 445 varibales.
    Why that so?? what might be the reason. i could n'd find the reason.
    Can anyone put some light on this issue??
    Thanks in advance
    Kind Regards,
    Shanbagavalli.S

    Hi Suchitra,
    Check the properties of Info object by changing the infoobject in RSA! tcode.
    Check whether you hav taken Medium description in "With Master Data/Texts" tab.
    Also check whether the load of Master data too.
    hope this helps u...
    Regards,
    KK.

  • RBDAPP01 - First IDoc the CMOD works all subsequent ones don't..

    Hi All
    I have an interesting issue with RBDAPP01, I have developed a CMOD in Include ZXVEDU04 to block duplicate orders based on the cust PO number and to convert the quantity coming in if certain Units of measure are specified by the trading partners.
    When I test this with a single IDoc in WE19 everything works as expected.
    If however I process multiple IDocs using RBDAPP01- the first IDoc is processed successfully, but ALL of the subsequent IDocs do not work correctly...
    The user exit is being called for all IDocs as there is other code in the exit that is working for all of the IDocs and not just the first..
    Has anyone come across this problem before?
    Your views on this would be greatly appreciated..
    Many Thanks.

    The issue was with a static variable that was not being re-initialised when each Idoc was processed, hence the reason why it worked for one and not for multiple IDocs.
    Please note therefore that SAPLVEDA does not initialise its variables for each IDoc that is processed.

  • Issues in screen exit

    Hi all,
    I am working on the requirement to print the work order attachments (tcode iw32).
    To achieve this functionality we have found out enhancement IWO10018, from which we are using function exit 'EXIT_SAPLCOIH_018' and screen exit SAPLXWOC screen 0900.
    So, for this i have written my code to retrieve attachment names in the function exit and created subscreen 0900 in function group XWOC.
    But now i am facing issues with how to link up the function exit with the screen exit?
    can anybody help me out please?
    Thanks,
    Archana

    Hi Archana,
    First create the project in CMOD.
    GOto Tcode > CMOD  create project
    Click on ENhancment assig button ...
    Then add your Enhanment IWO10018 , click on components
       Activate
    then yopu will find fucntion module screen exit, Doublie click on 900 screen,
    It will automatically link up
    regards,
    Ajay
    Edited by: Ajay reddy on Jul 7, 2010 9:44 AM

  • CMOD project got deleted

    Hi All,
    Can anyone help me out in tracking the deleted CMOD project.
    One of my CMOD project was deleted, how I could find out in which transport this Project was deleted.
    Thanks & Regards
    Prasanth

    Hi ,
    We cannot confirm this issue happened because of latest transport.
    User exit code (Z* include) active, May be CMOD project created earlier and then deleted in between because many transports exits for this CMOD project.
    Can you help us to track the history of Enhancements included into CMOD project (like inserting & deleting  ...Enhancements to CMOD project).
    Thanks for the help.

  • Goods Issue through IDOC

    Hello All,
    We have the situation as follows:
    1. A sales order is created.
    2. An outbound delivery is created automatic through worklist.
    3. An IDOC DELVRY03 is generated through message determination. The IDOC is sent through EDI to 3PL.
    4. 3PL picks the material and confirms the picking result by IDOC.
    My question is: Which message typ and IDOC type can I use for carrrying out goods issue?
    Thank you in advance!

    We use Basic Type DELVRY03 with Message Type SHPCON, inbound process code DELV.  The E1EDL18 segments are the key to picking and posting.  One E1EDL18 has QUALF = PIC, and the other one has QUALF = PGI.  The item level segments must correctly identify the materials by number and the quantity picked.
    We had to enhance the standard inbound process code with CMOD project V55K0001.  This was necessary to match up the IDoc line-item segments (E1EDL24) with the correct item position on the delivery note for picking (and to validate quantities and units of measure--always a good idea when dealing with 3PL's).  We also use the user-exit to update other handy fields like carrier ID, BOL number, gross weight, etc. 
    Hope this helps you.

  • Need help with transporting User Exit Variable in CMOD ZXRSRU01

    Hello Gurus.,
                      I changed the existing user exit variable in CMOD ZXRSRU01.,before changing neither it ask for any transport request,  nor when I activated the include program .
    Well., I tried this........I went to goto-> Object Directory Entry.,
    changed the Package and person responsible for and then it asked for transport request...but this dint work...
    Now., how can I capture the changes in a transport request, so that, i can move the changes to production system?
    is there anyway to solve my problem?
    Regards,
    PNK

    Thanks for ur help VIKRAM...i solved the issue...the changes are captured in someother request, but it was not showing in the Version Management.'
    I checked the Lock Overview in the Object DIrectory Entry and found out that it was capturing in different request. I released the request and when I tried to change the code, it asked for new transport request.
    It worked..
    Thanks for your help..
    Regards,
    PNK

  • User Entry Variables and CMOD

    Hi SDN,
    I asked this question last week but did not get a straight answer, so I am trying again. Please do not refer me to PDF's on 'How to create Customer Exit variable', that is not the issue. Following is the problem.
    User enters a value in a User Entry type variable. We use that value to create a new set of restrictions using CMOD/Customer Exit. However, we then want the value in the first variable to go away or become ineffective.
    Or does anyone know the actual run time structure where OLAP keeps the variable values after step 2 so we could changes there?
    Thanks.
    SM

    Surely, you can just delete the value of the 1st variable, or remove it from teh variable table.
    You could do this in i_step = 2, once you have computed the value of your new variable
    Inside CMOD, the variables are all stored within i_t_var_range. I don't see why you can't just loop at that table until you find your 1st variable, then delete it from that table.
    If you can't delete, then loop through the table, and check each line. If the variable in question is not your 1st one, then add it to a temp table. Continue till all records have been evaluated, then refresh i_t_var_range and move the contents of the temp table into i_t_var_range.
    Cheers,
    Andrew

  • Issue with function module exits

    Hi,
    execute the T.Code MK01, enter the language 'English' and country 'de'. it's allowing to save the data. I want to raise one pop-up message as 'country and language are not the valid combination please choose right one'. I enhanced in the function module exit. it's raising the message , but it's executing the next screen. how to stop it's first screen and I have to choose the right combination even though  I raised message as Error, it's repeating same thing. Please give me any suggestion on this issue.
    Thanks & Regards,
    Seshu.

    I have executed CMOD T.Code,  we can find the 'include zxf05u01'  program . I wrote the code in this include program.  select statement is like this. check the code here.
    " select single land1
                           spras
                  into wa_t005
                 from t005
                where land1 = i_lfa1-land1
                and     spras = I_lfa1-spras.
    if sy-subrc <>0.
    country &1 and language &2 are not the valid combination.
    message e015(zall) with I_lfa1-land1 I_lfa1-spras.
    endif."

  • Issue with Import/Add function

    I have been having an issue with a difference between the position of files in Finder & the position in whcih they are shown LR 5.
    In Finder the folder view will be
    Neils Photos
       021 2013 01July - 31 Dec
          131123 HMAS Adelaide
             131123LOC001 (this is the image file)
    In LR 5 the folder view will appear as
    Neils Photos
      021 2013 01July - 31 Dec
         131123 HMAS Adelaide
      131123 HMAS Adelaide
            131123LOC001 (this is the image file)
    If I try to move the image to the correct folder in LR it will not allow it saying that the image already exists in that folder.
    When I RMC & selected "show in parent folder" I received the following message.
    An Internal Error Has Occurred
    Database “/Users/neilvincent/Pictures/Lightroom/Lightroom 5 Catalog.lrcat”: columns rootFolder, pathFromRoot are not unique Statement: UPDATE AgLibraryFolder SET rootFolder=?Where id_local=?;
    At first I thought this issue was being created by a plug-in but it is happening any time I "Import/Add" an image to LR.
    If I download from a camera, card or remote hard drive using Copy as DNG, copy, or move the image is shown correctly in LR. If I use Add to import an image or if I use a plug-in to create a HDR or panorama & save back to LR I have an issue. In the case of the plug-in the program is creating the image saving to to a location then Adding the file to LR. LR creates a new folder of the same name as the original folder but higher in the folder tree structure, it then shows the Added image in this folder rather than the folder it really is in.
    In the panels on the RHS the only box ticked is "Don't import suspected duplicates" but I don't see this panel when using a plug-in.
    The work around is to put the file into another folder & then move & import into LR.
    Is there a fix for this?

    Hi Tilak,
    The variables do behave differently in Integrated Planning applications.
    You have to pass the variable values exclusively in work book designer or web application designer for your cmod to work.
    Please refer the following document for more info.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/10d2b273-0e12-2c10-fab3-a34bde559f92
    Thanks,
    Krishnan

Maybe you are looking for

  • Cl_gui_frontend_services= gui_download without carriage return

    Hi, Is there a way to get download a file to PC that way, that in the end of every lines there is a carriege return character except the last one? (Special format required by az external bank application) I tried to add carriage return to every lines

  • Premiere Pro CS4 Crashes When Video Window Resizes

    I have done a search for this topic and did not find any answers but I apologize if this topic has already been posted. Whenever I try to resize a video window in Premiere CS4 by dragging a panel with the mouse the program crashes and quits. This is

  • Server Crash : ServerIdentity failed validation, downgrading to anonymous

    All, Setup is as follows: Domain has got an admin server and 2 managed servers. Managed Server 1 on Machine 1 Managed Server 2 on Machine 2 Following error is continuously thrown in the logs : <22-Jul-2010 09:54:45 o'clock> <Error> <Security> <manage

  • Old Songs

    I am relatively new to iTunes having used it briefly a few years back. I just downloaded the latest version of iTunes to a new computer. How do I get the songs that I purchsed a few years back into my library again? There are only about 10 of them bu

  • How to post a question

    Sorry! Just registered on this forum and can't find were to post a question