Cannot capture Segment data in enhancement spot

Hi!
I am developing inbound IDOC for message type COND_A04, i have created a child Z-segement for E1KOMG, i am coding my logic in FM IDOC_INPUT_COND_A in enhancement spot ES_SAPLVKOI, in performs read_seg_e1komg and read_seg_e1konp,
Here in my code i want to capture my Z-segment data in read_seg_e1konp, but its getting cleared before entering into this subroutine, i need my Z_segment data for validation in  read_seg_e1konp subroutine,
Can anybody give some idea how to capture data of my Z-segement in this subroutine read_seg_e1konp.

Hi Rajesh,
Check also the other exit (CALL CUSTOMER-FUNCTION '002')
available in FM IDOC_INPUT_COND_A, it may have the data required by you.
Rajeev

Similar Messages

  • Need Enhancement spot in Business Partner Creation/Change

    Hi all ,
    In Business partner creation/Change screen(Tcode BP),if pressing BACK or CANCEL button without saving data, it will ask for confirmation that Want to save data or not.If we press YES it will save the data,or if we press  NO it won't. Is there any Enhancement spot (User exit or BADi) available after triggering the above confirmation message.If so kindly intimate me the Exit name or BADi name.
    Thanks in Advance..

    Try using Implicit Enhancements .
    I have got implicit enhancements over here for you.
    check out if Useful while dubugging.
    include :LBUS_LOCATORF05
    screen 3000
    prog SAPLBUS_LOCATOR
    form dynpro_pai_begin
    dynpro_pai_end
    create IMPLICIT enhancements here.
    To avoid confusion write your code after IF condition checking for
    GV_OK_CODE which is BUS_MAIN_BACK and dynpro number.
    If you dont know Implicit enhancements try this link
    http://www.sapdev.co.uk/enhance/eframework/eframeworkhome.htm
    checking ok_code is necessay otherwise it will be executed everytime PAIis triggered.

  • Enhancement Spot :

    Hi All,
           i have a doubt regarding the Enhancement Spot and Enhancement Point. I have a little idea about this and want to know in detail. please if anyone have any good sites or material please let me know so that i can have a look on that.
    Currently i am trying to copy the standard transaction COGI into the ZCOGI transaction with SAP 6.0. and there exists some enhancement points and enhancement spot which are not getting copied into my ZCOGI transaction. What is the reason behind it? Does it affect the original functionality which is there in the standard transaction?Because i want to retain all the satndard fuctionality. I donot have anything to do in the ENHANCEMENT ...... ENDENHANCEMENT.i have to do some additional data fetching based on the additional selection criteria to be added on the selection screen and based on that i want to show some additional fields in the ALV output.
    Thanks in advance.
    Suchismita

    Hi Suchi,
    Whats the problem in copying ?
    If you want to make any changes in the TCODE , copy the program related to COGI and make changes in it.
    here is link for nice weblogs  :
    /people/thomas.weiss/blog/2006/01/24/what-the-new-enhancement-framework-is-for-150-its-basic-structure-and-elements-for-beginners
    /people/thomas.weiss/blog/2006/03/15/the-new-enhancement-framework-part-2--what-else-you-need-to-know-before-building-an-enhancement
    /people/thomas.weiss/blog/2006/04/03/how-to-define-a-new-badi-within-the-enhancement-framework--part-3-of-the-series
    /people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework
    /people/thomas.weiss/blog/2006/05/03/source-code-enhancements--part-5-of-the-series-on-the-new-enhancement-framework
    We need to be very thankful Thomas Weiss for his excellent blogs.
    Regards,
    Madhu.

  • Enhancement spot in MV45AFZZ.

    Hii All,
    I got a problem when i am writing enhancement spot in MV45AFZZ.
    I have added some new fields in 8459 sub-screen at item level in VA01 transaction
    some of those fields are mandatory for some materials
    Now if the user goes for a save with out entering those fields in addtional tab B, i am rising a error that field is not entered in Additional tab B.
    Now everything is fine i am able to trigger that error message by writing the error message in USEREXIT_SAVE_DOCUMENT. By writing a enhancement spot.
    whenever i trigger this error message if i go and enter the corresponding fields in Additional tab B at item level it is saying that the " Item SOME NO say 00010  does not exist "  and it is going out of the transaction with out saving the sales order .
    If i dont click the save button and going directly to that additional data tab and entering the corresponding field and going for save it is saving.
    I am getting the problem if i click the save button before entering those fields. wht could be the problem?
    please help me.
    Thanks ,
    Ravindra.

    Hii,
    @  Ankesh Saharan :
    If i change the error message to information or warning it will go for a save even though those mandatory fields are missing.
    @  TARAPADA DAN :
    I tried using the exit USEREXIT_SAVE_DOCUMENT_PREPARE.
    But the problem is based on the material number entered in the screen i am fetching part location type from MVKE. using that part location i am triggering error messages.
    when i try to refer the material number as VBAP-MATNR it is blank in the exit USEREXIT_SAVE_DOCUMENT_PREPARE. So i cant use this exit.
    any one please answer my question
    Thanks,
    Ravindra.

  • Enhancement spot is not triggered in Custom Program.

    Dear Experts,
    After saving the sales order i would like to view the print preview.
    For this I found one implicit enhancement spot and i called the print Program for sales order. Then i am able to view the Sales order print preview in VA01 Transaction code. I wrote my logic in the Below mentioned Enhancement implementation.
    Main Program : SAPMV45A
    Include : MV45AF0B_BELEG_SICHERN
    Form : beleg_sichern
    At the endform I am calling the Print program of Sales order so that after saving the sales order i am able to view the print preview of the Sales order.
    The requirement is i have created the Custom program in that i am using the "CALL TRANSACTION 'VA01'". In the custom program i am not able to view the Sales order print preview. The Enhancement spot is not getting triggered.
    Could you please help me to solve this issue.
    Thanks & Regards,
    Ashok.

    Like I said, you must use the parameter RA_COMMIT from BDC_OPTIONS. Like this:
    DATA: bdc_options TYPE ctu_params.
    bdc_options-ra_commit = ' X' .
    bdc_options-dismode = ' N'.
    CALL TRANSACTION 'VA01' OPTIONS FROM bdc_options.
    Everytime you use a CALL TRANSACTION, the called transaction will stop when a COMMIT WORK is found, and you have to pass the parameter RA_COMMIT with 'X' to make the transaction execute any code after COMMIT WORK. This only happens when you call a transaction via CALL TRANSACTION, it will not happen if the user access a transaction directly.
    For further explanation you can use the link from documentation that I posted on my first reply.
    Regards,
    Mauricio

  • Missing data type Enhancement: CRMPARTNER_INFORMATION

    Hi All,
    I am creating an interface for business partner from ECC 6.0 to CRM 5.0.
    Inside CRM I am using the proxy message ABABusinessPartnerIn of namespace http://sap.com/xi/ABA.
    The problem I have is that from SPROXY inside CRM I can see the data type enhancement CRMPARTNER_INFORMATION from namespace http://sap.com/xi/CRM but I cannot find it in integration repository.
    Should I Import another SWCV?
    At the moment BBPCRM 5.0 is imported, as well as SAP_ABA 7.0 (sp11).
    Thanks and Regards,
    Sergio

    Hi All,
    did anyone already encountered this problem?
    I guess this extension is deprecated, just I am struggling on how to deliver tax classification information via the standard proxy, without having to build an enhancement to the standard.
    Regards,
    Sergio

  • Mapping Values to Data Type Enhancements in XI

    I want to a map values from a source XML to a target XML but the target fields are data type enhancements and not that of the standard one. The target message is the message of a predilevered interface of SAP for the SNC product. We did some enhancements to a particular data type. The enhancement was done in a different SCV and points to the datatype in a different SCV. Now, the mapping is in another different SCV (since the SCV for the SNC content of XI cannot be edited). When I was trying to map the values to the data type enhancement in the message mapping, the enhanced/additional fields are not there.
    How would I be able to map the values to the additional fields? Thanks in advance!

    check this:
    http://help.sap.com/saphelp_nw70/helpdata/en/a8/bfc6373c8fea43bdb3541535bcbd43/content.htm
    The Integration Builder does not recognize changes to software component versions that have already been imported. Therefore, if you want to define dependencies between imported software component versions at a later date, you have to import the superordinate software component versions into the Integration Builder again. You will not lose objects that have already been created.
    Not sure but this might help.
    Thanks,
    Beena.

  • How to capture the data of the fields of a particular subform

    xfa.data.saveXML() saves the data of the whole form, but I need to capture the data of a particular subform  .. How do I do this...?

    declare a character type internal table.
    now move your data from it_data ( internal table with data ) into table itab.
    since you are running this report in background, you cannot save it to the desktop. Instead give any app server location
    data: itab(400) occurs 0 with header line.
    field-symbols: <fs1> type any.
    data: gv_file type rlgrap-filename default 'TEST.TXT'.
    data: gv_filepath type rlgrap-filename default <path>.
    LOOP AT it_data.
        DO 100 TIMES.
          ASSIGN COMPONENT sy-index OF STRUCTURE it_data TO <fs1>.
          IF sy-subrc = 0.
            CONCATENATE itab <fs1> INTO itab SEPARATED BY ' '.
          ELSE.
            EXIT.
          ENDIF.
        ENDDO.
        SHIFT itab LEFT DELETING LEADING ' '.
        APPEND itab.
        CLEAR itab.
      ENDLOOP.
      concatenate gv_filepath '/' gv_file into gv_file.
      OPEN DATASET gv_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
      IF sy-subrc = 0.
        LOOP AT itab.
          TRANSFER itab TO gv_file.
        ENDLOOP.
        CLOSE DATASET gv_file.
      ENDIF.

  • Problem with Enhancement Spot

    Hi Experts,
    I have implemented an enhancement spot in standard report program and export the data to some memory id. But the problem is when i am trying to execute the standard report the internal table which i want to export has entries. When i execute the custom program the tables does not has data. What is the problem and how can i solve that.
    Rgds,
    Bujji

    Hi ,
      Problem got resolved by myself, thank you guys...
    Rgds,
    Bujji

  • How to use this HR_GET_PAYROLL_RESULTS in am enhancement spot?

    hi,
            can you explain me how to use this function modulde  HR_GET_PAYROLL_RESULTS.. i have tried this by giving the valid  PERNR AND  YEAR. but still i am getting no table records and some times as wrong table structure. can you  help me out in this regard. i have to use this FM in am enhancement spot.
    thanks in advance.
    swathi.

    Hi,
    Depending of the country for which you want the payroll result you have to define result table as follows:
    data: it_result type payXX_result.      "where XX is an abreviation of the country you get pay result for
                                                         "i.e. US, GB, NL, DE etc
    "for some countries there is no specific cluster table, therefore you must delcare it as
    data: it_result type pay99_result.     "this indicates that results are international
    now you simply call the FM:
    CALL FUNCTION 'HR_GET_PAYROLL_RESULTS'
      EXPORTING
        pernr                               = here your pernr
        pabrj                               = year you want to report
      tables
        result_tab                          = it_result.
    It will work:)
    Marcin

  • Enhancement spot in ECC 6.0

    Hi all,
    can anyone please make it clear on what enhancement spot is in ECC 6.0.
    All Useful answers will be rewarded..
    Thanks & Regards,
    Saroja.

    Hi
    ENHANCEMENT-POINT
    ENHANCEMENT-POINT can either be static (for example, additional data declaration) or dynamic (for example, additional coding).
    http://help.sap.com/saphelp_nw2004s/helpdata/en/56/ee9441026aae5fe10000000a1550b0/content.htm
    Refer the very useful links below:
    Enhancement-Point is a part of the new enhancement framework. He is some lite reading.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/94/9cdc40132a8531e10000000a1550b0/frameset.htm
    Please check this blogs and wiki as well.
    /people/thomas.weiss/blog/2006/05/03/source-code-enhancements--part-5-of-the-series-on-the-new-enhancement-framework
    /people/thomas.weiss/blog/2006/03/15/the-new-enhancement-framework-part-2--what-else-you-need-to-know-before-building-an-enhancement
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/thenewEnhancementFrameworkandthenewkernel-basedBAdI&
    Please check these weblog for more information and sample codes.
    /people/thomas.weiss/blog/2006/01/24/what-the-new-enhancement-framework-is-for-150-its-basic-structure-and-elements-for-beginners
    /people/thomas.weiss/blog/2006/03/15/the-new-enhancement-framework-part-2--what-else-you-need-to-know-before-building-an-enhancement
    /people/thomas.weiss/blog/2006/04/03/how-to-define-a-new-badi-within-the-enhancement-framework--part-3-of-the-series
    /people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework
    /people/thomas.weiss/blog/2006/05/03/source-code-enhancements--part-5-of-the-series-on-the-new-enhancement-framework
    Look at this articles:
    New Enhancement Framework
    Enhancement Framework
    Enhancement Framework - The New Way to Enhance Your ABAP Systems
    Switch Framework Demo
    Introduction to the Enhancement Framework
    To now more about BADi Implementation see:
    How To Define a New BAdI Within the Enhancement Framework
    How to implement a BAdI And How to Use a Filter
    Enhancement-Point is a part of the new enhancement framework. He is some lite reading.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/94/9cdc40132a8531e10000000a1550b0/frameset.htm
    Please check this blogs .
    /people/thomas.weiss/blog/2006/05/03/source-code-enhancements--part-5-of-the-series-on-the-new-enhancement-framework
    /people/thomas.weiss/blog/2006/03/15/the-new-enhancement-framework-part-2--what-else-you-need-to-know-before-building-an-enhancement
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/thenewEnhancementFrameworkandthenewkernel-basedBAdI&
    Enhancement frame work is the new concept using which SAP allows you to change the existing programs
    See the following blogs that talk about the same in detail
    /people/thomas.weiss/blog/2006/04/03/how-to-define-a-new-badi-within-the-enhancement-framework--part-3-of-the-series
    /people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework
    /people/thomas.weiss/blog/2006/05/03/source-code-enhancements--part-5-of-the-series-on-the-new-enhancement-framework
    Defines a position in an ABAP program as an enhancement option, at which one or more source code plug-ins can be inserted.
    Syntax
    ENHANCEMENT-POINT enh_id SPOTS spot1 spot2 ...
                      [STATIC]
                      [INCLUDE BOUND].
    Extras:
    1. ... STATIC
    2. ... INCLUDE BOUND
    Effect
    : This statement defines an explicit enhancement option at the current position in the program at which a source code enhancement can be made. In program generation, the source code plug-ins of the assigned enhancement implementation that are available in the current system and have a switch in the status stand-by or on, are inserted at this position.
    If the addition STATIC is not specified, the source code enhancement is dynamic. This means that in program execution, only those source code plug-ins are executed whose switch has the status on. If a source code plug-in does not have a switch assigned to it, it is handled in the same way as a plug-in with a switch in the status on.
    With enh_id, an ID must be specified directly for the enhancement option, which is unique in the current compilation unit without the addition INCLUDE BOUND, and with this addition, is unique in current Include program. At least one enhancement spot must be assigned to the enhancement option using the specification simple enhancement spots spot1, spot2, and so on.
    Within enhancements, one or more source code plug-ins can be created for one enhancement option. A source code plug-in is created by the assignment of an enhancement implementation in the Enhancement Builder. This automatically generates an empty source code plug-in with a unique ID, which is displayed underneath ENHANCEMENT-POINT in the Editor, where the actual enhancement can be implemented between ENHANCEMENT and ENDENHANCEMENT.
    A source code plug-in is assigned to only one enhancement option. Multiple source code plug-ins of one enhancement implementation and the source code plug-ins of multiple enhancement implementations can be assigned to one enhancement point.
    Notes
    : In the terminology of the enhancement concept, the statement ENHANCEMENT-POINT includes both the enhancement spot element definition and the enhancement spot invocation of the enhancement option.
    The statement ENHANCEMENT-POINT can either be entered directly or created by choosing Edit ? Enhancement operations ? Create enhancement in the Enhancement Builder. After the program has been saved or created using Edit ? Enhancement operations ? Create enhancement, the statement can only be deleted by choosing Edit ? Enhancement operations ? Delete enhancement.
    In addition to the enhancement options explicitly specified by ENHANCEMENT-POINT, ABAP programs also contain implicit enhancement points, which can also be enhanced using source code plug-ins.
    Addition 1
    ... STATIC
    Effect
    : The addition STATIC is used to define a static source code enhancement. In a static source code enhancement, all incorporated source code plug-ins are taken into account when the program is executed, including those whose switch is in the status stand-by.
    Note
    : The STATIC addition is intended for the enhancement of data declarations, while the statement ENHANCEMENT-POINT without the STATIC addition is designed for the enhancement of executable coding. When the statement is executed using Enhancements ? Create enhancement, the addition is set according to this selection.
    Addition 2
    ... INCLUDE BOUND
    Effect
    : This addition can be entered in Include programs. It links the source code enhancement to the current Include program. Each program that incorporates an Include program only includes the source code enhancements that are defined with this addition. Source code enhancements created using the INCLUDE BOUND addition have their own namespace in each Include program. This ensures that if several Include programs are integrated into one compilation unit, no namespace conflicts arise, either between Include programs, or with the source code enhancements of the compilation unit.
    Without the addition INCLUDE BOUND, a source code enhancement is assigned to only one compilation unit. If the statement ENHANCEMENT-POINT is executed in an Include program without this addition, a compilation unit must be assigned to it in the Enhancement Builder.
    Note
    : In an Include program, Include-bound and non-Include-bound source code enhancements can not be defined at the same time. This also applies if an Include program incorporates other Include programs.
    Enhancement points are points provided by sap in standard programs to modify the source code. Go to any standard program, Locate the spiral button on the toolbar. Then press it and then navigate to edit->enhancement operations->display enhancement point menu. Then a no of yellow lines would appear, which are the available en points. You would have to change it and write the applicable source code.
    Regards
    Anji

  • Enhancement implementation for enhancement spot DPR_EVENTS

    Hi. SAP Export.
    I created an enhancement implementation for enhancement spot DPR_EVENTS, and set the filter value equal to ON_TTO_IN_PROCESS, it means the code executed when user set system status to u2018IN PROCESSu2019.
    I added my code to do some logical check in the method IF_EX_DPR_EVENTS~ON_EVENT, if the check failed. I can show an error message on the cProjects, BUT I CAN STILL SAVE THE DATA with ERROR. It looks like the error message is not useful.
    Could some one please kindly help with provide a solution to solve this issue?

    Can you please elaborate, what exactly is the requirement? Do you want that the message should be displayed as warning & processing should continue or something else?

  • Enhancment spot

    hello!
    we upgraded the system from 46C to ECC6. I have some problem with one of the print program which isn't sap standard. in one of the includes FM06PTOP some of the fields are missing.
    I created an include ZFM06PTOP, but when i activated it, it created enhancement spot FM06PTOP_01.
    I have no idea about how to create and use the enhancement spots.
    how can i change the standard include without creating Z include, using the enhancement spot.
    Is there any tutorial about it?
    regards
    yifat

    Hi Yifat,
                I cannot give you a confident answer since I am not using ECC 6.0, but to help you out, - Enhacement spots consists of some exits (Function, Menu, Screen). In the exit, say Function Exit, you will find an <b>INCLUDE</b> <program_name>. Just double click that, go to the change mode and you can write your code in the INCLUDE program. After that activate it.
    Till ECC 5.0 there were some predefined Enhancement spots, I mean there were no provision to create them. But since you are telling the Enhancement spot  <b>FM06PTOP_01</b> got created, try giving this name in SMOD transaction and click display. If it shows some Function Exit(s), follow the above procedure and I think your job will be done.
    Regards,
    Abdul

  • Vi01-Create shipment cost-Enhancement spot

    Hi Guru,
    I have one requirement for that i need help. In transaction vi01 je shipment cost, i want to change the value of Tax Code,
    for that i need help from you people, please tell me any one know about this. Is there Enhancement spot or Badi which is help full for my requirement.
    Thank You.

    Hi,
    you can inser enhacement point in any place of ABAP code if it is-
    -begin subroutine
    -end of subroutine
    -begin of function
    -end of function
    -data declaration
    -begin of method
    -end of method
    just find code through program is running and right moment I am sure you will one of these place to be insert.
    -just press icon with inheritance and it will show you place to insert code
    Good luck

  • Enhancement Spot BBP_ENHANCEMENT_SPOT, BADI BBP_ALERTING

    Hi Guys,
    BADI BBP_ALERTING is single use badi of Enhancement Spot BBP_ENHANCEMENT_SPOT.
    Is there any way i can have multiple implementation of this BADI and add few parameters to control the specific implementation.
    The above BADI is a SRM BADI.
    Thanks.

    Hi Vikram,
    Thanks for prompt reply.
    The above transactions are belongs to Vendor Contract Settlements and under package WB2_REBATES.The BAdi's are called through classes CL_WB2_REBATE_SETTLEMENT,CL_WB2_REBATE_SETTLEMENT_1 in program RWB2R_VENDOR_SETTLEMENT.
    Enhancement Spot: WB2_CC_SETTLEMENT have following BAdi's
    WB2_CC_CHANGE_SPLIT_PART_SETTL - Change Split for Partial Settlement Dates active
    WB2_CC_REV_ACCR_ALLOWED_CHECK  - Check if reversal of accruals is allowed
    WB2_CC_SETTL_AFTER_CREATE      - Save own data after settlement document creation
    WB2_CC_SETTL_ALLOWED_CHECK     - Check if settlement is allowed
    WB2_CC_SETTL_CHANGE_BVB_DATA   - Change Business Volume Base for Settlement
    WB2_CC_SETTL_CHANGE_DATA       - Change Data before Data Transfer
    WB2_CC_SETTL_CHANGE_FINALLY    - Change Data before Settlement Document Creation
    WB2_CC_SETTL_CHANGE_HEAD_DATA  - Change Head Data
    WB2_CC_SETTL_CHANGE_ITEM_DATA  - Change Item Data
    WB2_CC_SETTL_SIGN_ADJUSTMENT   - Adjust Signs in Business Volume Data
    Thanks,
    Somi Reddy Satti

Maybe you are looking for

  • How can I access my iPhoto library folder?

    My hard drive recently had to be replaced, and when they replaced it, they updated to OSx 10.9. I had not backed up my photos before my hard drive crashed, but they backed up all my files for me. I went to open my iphoto library from the backup files

  • How can I get an activation code for netflix?

    please can someone tell me how to get the code? I have looked everywhere  but nothing!

  • PO delivery cost conditions

    Hi, There are 2 requirements. Firstly, we need to maintain delivery cost conditions like freight, customs duty, etc...at the header level of PO. But, it should be editable at the line item level also. Secondly, is it possible to default these conditi

  • READ_TEXT Not displaying correct data

    HI abapers, I am using the FM READ_TEXT  for reading change document long text , for some document it gives correct data but for some other doc it give some unrelated data , when i debug i found in IMPORT statement inside the FM gives this unrelated

  • OIF+OAM: install/config  issues

    This post is long. Hoping that at least one of the issues is seen by someone or someone has insights before we open SR(s) with Oracle. We have a working OAM/OVD 11.1.1.5 installation (done according to the EDG at http://docs.oracle.com/cd/E21764_01/c