Adding an extra screen field in CJ88

Hi,
The FICO consultant wants to know whether we can add an extra screen field in CJ88.He wants to add the posting year.Currently there is facility to add posting period and the posting year will be same as the fiscal.He wants to change the posting year.Due to this he wants to add an extra screen field - posting year so that the user can change it during reversal.
If yes then how it is bo done.
If not, is it possible to copy the entire CJ88 code and make zprogram and ztcode and add this extra field.
Please let me know your suggestion.
Thanks,
Rajani

HI,
Perhaps you can try with USEREXIT_CHECK_VBAP in report MV45AFZB.
Other possibilty is the BADI BADI_SD_SALES_ITEM, where the method ITEM_CHECK.
Perhaps the most powerful is userexit_save_document in report MV45AFZZ, but it works when you save the document. Here you can compare XVBAP (with the new item will have the field UPDKZ = 'I') with YVBAP (you can compare the line items of both internal tables). Finally, you can use the status of deliveried and billed of XVBUP, YVBUP, XVBUK, YVBUK to do the final checks.
Perhaps you can fix warning messages in the first exits (in dialog) and in the saving event set the error message.
Set the break point and check the data in these structures, and think in the right algorithm.
I hope this helps you
Regards,
Eduardo

Similar Messages

  • Table maintenace - adding my own screen fields

    Hi, I made a table zx with 4 columns and table maintenace also. Besides I need a column on the screen wich is not exist in my table. This column must be fiiled  by values that are taken according values of first column..
    I add this column on the screen by se80 and made such changes in code
    PROCESS BEFORE OUTPUT.
    MODULE LISTE_INITIALISIEREN.
    LOOP AT EXTRACT WITH CONTROL
      TCTRL_ZPM_144_EQ_STTYP CURSOR NEXTLINE.
       MODULE LISTE_SHOW_LISTE.
    ENDLOOP.
    PROCESS AFTER INPUT.
    MODULE LISTE_EXIT_COMMAND AT EXIT-COMMAND.
    MODULE LISTE_BEFORE_LOOP.
    LOOP AT EXTRACT.
       MODULE LISTE_INIT_WORKAREA.
       CHAIN.
        FIELD ZPM_144_EQ_STTYP-EQART .
        FIELD ZPM_144_EQ_STTYP-STTYPE_10 .
        FIELD ZPM_144_EQ_STTYP-STTYPE_20 .
        FIELD ZPM_144_EQ_STTYP-STTYPE_30 .
        FIELD ZPM_144_EQ_STTYP-STTYPE_40 .
        MODULE INIT_EARTX.                                                    <--- my module
        MODULE SET_UPDATE_FLAG ON CHAIN-REQUEST.
       ENDCHAIN.
       FIELD VIM_MARKED MODULE LISTE_MARK_CHECKBOX.
       CHAIN.
        FIELD ZPM_144_EQ_STTYP-EQART .
        MODULE LISTE_UPDATE_LISTE.
       ENDCHAIN.
    ENDLOOP.
    MODULE LISTE_AFTER_LOOP.:
    MODULE INIT_EARTX INPUT.
      DATA: t_EARTX TYPE TABLE OF  T370K_T-EARTX WITH HEADER LINE.
      SELECT SINGLE EARTX FROM T370K_T
        INTO t_EARTX
        WHERE EQART = ZPM_144_EQ_STTYP-EQART AND
              SPRAS = SY-LANGU.
      APPEND t_EARTX.
    ENDMODULE.       
    But I don't know how to display values on the screen. I know that it must be done ib PBO but HOW???

    Hello John
    You should not modify the flow logic of the automatically generated dynpros. Instead, use the maintenance events of the view.
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/91/ca9f0ea9d111d1a5690000e82deaaa/content.htm">Extended Table Maintenance Events</a>
    In your case you may use <u><b>Event 26 before displayed data is output in a list</b></u> or <u><b>Event AA instead of the standard data read routine</b></u>.
    Please refer to the SAP documentation for details of implementing this events.
    The big advantage over your approach is that when you completely regenerate the dynpros your coding will be lost whereas the events remain.
    Regards
      Uwe

  • Disabling I/O Screen Field in Cost center Screen Enhancement

    Hi all,
         I am doing screen exit for Cost center master. While using KS03 transaction, I have to disable the newly added I/O screen fields. So, I added the following code in PBO module.
    *** PBO
         MODULE modify_screen_input.
    *** Include program of PBO
         MODULE modify_screen_input OUTPUT.
           IF sy-tcode EQ 'KS03'.
             LOOP AT SCREEN.
               IF screen-group1 eq 'CO'.
                 screen-input = 0.
                 MODIFY SCREEN.
               ENDIF.
             ENDLOOP.
           ENDIF.
         ENDMODULE. 
    But, screen fields with that group are not getting disabled. Is there any way to disable those screen fields?
    Thank You.

    Hello Shrilatha,
    Please try with below code
    IF sy-tcode EQ 'KS03'.
             LOOP AT SCREEN.
               IF screen-name = 'CI_CSKS-ZFIELD'  ->changeit to field name
                 screen-input = 0.
                 MODIFY SCREEN.
               ENDIF.
             ENDLOOP.
           ENDIF.
         ENDMODULE.
    Thanks

  • Adding New Screen Fields Through BDT

    Hi All,
          In BP transaction there is a concession tab. i want to add 2 new screen fields from z table.
          i have added from z table in that concession tab.
    But The problem is that screen fields are coming in the last line.but where as i need those all new fields in right corner of first and second lines of the existing fields .plz.. help me
    Thanks Inadvance ,
    Siva Kumar

    Hi Vishnu
    I suggest to use EEWB for adding the new field. Follow the following steps
    1. Run Transaction EEWB (Easy Enhancement Work Bench)
    2. Create new Project.
    3. Select the relevent Z package.
    4. Create Customizing and Workbench Requests.
    5. Select table BUPA
    6. Select the type of field you require (single or table) and follow the wizard.
    The new fields will appeare on a new tab "Customer Data" on BP Screen.
    The Screen Name and Sequence can then be changed with VCT.
    Precautions:
    1. Your user must have developer's key privilages.
    2. There should not be any users working on the system when you are doing this activity.
    3. The workbench request created is client independent. The customization request created is client specific.
    4. The process is reversable and does not get effected by patch upload.
    hope this may help.
    Cheers
    Avi

  • Adding new screen field

    Hi! Gurus,
    We would like to add a new screen field to our shipment document.
    My ABAPper says there's no screen exit to do the same.
    He talks something about breaking the code and stuff like that which I dont understand much.
    Please let me know a way if you guys can think of something.
    I need to add a field in VT01N transaction.
    Thanks in advance.

    HI Runa
    check this example code.
    First of all after adding the fields, you need to display those new fields in the VA01 transaction while creating a new sale order. So for that you need to first use the exit MV45A0ZZ. In this exit under the PBO, declare any form like eg: module zz_blank_fields. The coding for the module must be like as follows:
    LOOP AT SCREEN.
    IF SCREEN-GROUP1 = '002'.
    SCREEN-INPUT = '0'.
    elseif screen-group1 = '123' or
    screen-group1 = 'QUO'.
    screen-active = '0'.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    WHEN 'VA12'.
    LOOP AT SCREEN.
    IF SCREEN-GROUP1 = '123' OR
    SCREEN-GROUP1 = 'QUO' .
    screen-active = '0'.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    WHEN 'VA13'.
    LOOP AT SCREEN.
    IF SCREEN-GROUP1 = '001' OR
    SCREEN-GROUP1 = '002'.
    SCREEN-INPUT = '0'.
    elseif screen-group1 = '123' OR
    SCREEN-GROUP1 = 'QUO' .
    screen-active = '0'.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    ENDCASE.
    when 'B'."Quotation
    CASE SY-TCODE.
    WHEN 'VA21' OR 'VA22'.
    LOOP AT SCREEN.
    IF SCREEN-GROUP1 = '002'.
    SCREEN-INPUT = '0'.
    elseif screen-group1 = '123'.
    screen-active = '0'.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    WHEN 'VA23'.
    LOOP AT SCREEN.
    IF SCREEN-GROUP1 = '001' OR
    SCREEN-GROUP1 = '002' OR
    SCREEN-GROUP1 = 'QUO' .
    SCREEN-INPUT = '0'.
    elseif screen-group1 = '123'.
    screen-active = '0'.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    ENDCASE.
    when 'C'."Order
    **Additinal fields for capturing DI Details in Order
    case sy-tcode.
    when 'VA01' OR 'VA02'.
    LOOP AT SCREEN.
    IF SCREEN-GROUP1 <> '123' .
    SCREEN-ACTIVE = '0'.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    when 'VA03'.
    LOOP AT SCREEN.
    IF SCREEN-GROUP1 <> '123' .
    SCREEN-ACTIVE = '0'.
    ELSE.
    SCREEN-INPUT = '0'.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    ENDCASE.
    when others.
    loop at screen.
    screen-active = '0'.
    modify screen.
    endloop.
    endcase.
    Regards,
    Laxmi.

  • Adding Selection Screen Fields in IQ09

    Hi All,
    My requirement is to add a selection screen field on screen of transaction code IQ09. Also , I need to filter records based on the same.
    Is this feasible ?
    Thanks
    Harsh

    Hi Harsh,
    Please use the Enhancment framework.
    Use the Implicit or the Explicit Enhancement Options and then add the Additional Field on the screen.
    you can then use the Source code plug-ins to modify the code.
    Regards,
    Deepak.

  • Adding search help (F4) for a screen field in standard screen of VA02

    Dear Gurus,
    I need to add a Search Help (F4) to a Standard Screen Field VBAK-VSNMR_V in the standard Screen of VA01/Va02.....Can anyone please guide me how it can be done.
    Regards
    Sajid
    Edited by: shaik sajid on Feb 2, 2009 8:38 AM

    Hi shaik,
    Refer to the following useful link:
    Search help enhancement in VA01
    Hope this will help you...

  • Adding a screen field in FB60 transaction

    Hi all,
    I just want to add a screen field in FB60 transaction. In that transaction there is a table control. I want to add a coloumn there. Can anyone help me how to do that? I am working in ECC 5.0
    Thanks in advance
    Pranav

    Hi Pranav,
    If you want to add a new column under the table control in FB60, there is a way to do it through config.
    This is how it can be done:-
    1) Go to T-Code SPRO
    2) Financial Accounting New>Financial Global Settings New>Ledgers>Fields>Customer Fields>Edit Coding Block
    3) Define your new field under "Customer defined account assignments" . Make sure the name starts with either 'ZZ' or "YY". This creates a standard structure with your custom field and also appends this new custom field in many FI related tables including BSEG so make sure to check the impact with your functional consultant.
    4) Once it is defined, you might need to change the characteristics of your field under
    Financial Accounting New>Financial Global Settings New>Document>Define Posting Keys
    (This changes your fields status from suppresed to either Optional or Required depending on your requirement)
    Hope this link also helps
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/65/ec4bd7fb0f44f6814fa790dde9a172/frameset.htm
    Reward points if helpful
    Cheers
    Sanjiv

  • Adding of screen fields

    hi experts,
    I need to add some custom screen fields in the standard transaction code mm41. I am unable to locate the screen exit for same .
    Through which i can add fields on the transaction code.
    could u please give ur suggestions on same.

    hi saurabh,
    MGW00001            Material Master (Retail): Additional Data
    MGW00002            Material Master (Retail): Number Assignment
    try this one.
    regards,
    sandeep

  • Adding custom text besides selection screen field

    Hi All,
       I need to add some custom text to the selection screen field "CtegoryID" in the Product search screen(thru the link "Internal Goods")....I sthis possible thru change os some template?If yes,which one??
    Regards,
    Disha.

    Well...
    I don't remember an existing search help with some fields using a combo-box.
    In the FM assigned to the search help (the search help exit), you can pre and post process some data.
      IF callcontrol-step = 'PRESEL', 'SELONE', 'SELECT'.....
    But I don't see anything for seach a feature.
    In conclusion, I don't think this is supported by generic search help.
    Rgds
    Christophe
    PS: please reward points for helpfull answers

  • How to create a F4 help for a report selection screen field

    hi,
    can any one guide me to create F4 help for a field in a selection screen in a report program,plz give me a sample code

    hi,
    Here are the following ways
    1.with the help of match code objects we can create the F4 Functionality for Field.
    Syntax is :
    PARAMETERS: p_org LIKE t527x-orgeh MATCHCODE OBJECT zorg.
    2. One more thing is we can do it with Search Help's also.
    3. Even we can do it HELP Views also.
    Help Views:
    You have to create a help view if a view with outer join is needed as selection method of a search help
    The selection method of a search help is either a table or a view. If you have to select data from several tables for the search help, you should generally use a database view as selection method. However, a database view always implements an inner join. If you need a view with outer join for the data selection, you have to use a help view as selection method.
    All the tables included in a help view must be linked with foreign keys. Only foreign keys that have certain attributes can be used here. The first table to be inserted in the help view is called the primary table of the help view. The tables added to this primary table with foreign keys are called secondary tables.
    The functionality of a help view has changed significantly between Release 3.0 and Release 4.0. In Release 3.0, a help view was automatically displayed for the input help (F4 help) for all the fields that were checked against the primary table of the help view. This is no longer the case in Release 4.0.
    As of Release 4.0, you must explicitly create a search help that must be linked with the fields for which it is offered (see Linking Search Helps with Screen Fields ).
    Existing help views are automatically migrated to search helps when you upgrade to a release higher than 4.0.
    A help view implements an outer join, i.e. all the contents of the primary table of the help view are always displayed. You therefore should not formulate a selection condition for fields in one of the secondary tables of the help view. If records of these secondary tables cannot be read as a result of this selection condition, the contents of the corresponding fields of the secondary table are displayed with initial value.
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Feb 15, 2008 3:15 PM

  • F4 help for screen field

    Hello gurus,
    I have created a custom tab in transaction VF01/VF02 and VF03. In this tab i have added a field on this screen which is supposed to provide F4 help values that are fetched from a Ztable that has been maintained.
    Although the field addition has worked fine but i cant get the F4 help. Any idea how i can achieve this?
    Any help would be appreciated.
    Regards,
    Ritwik Rajkumar

    hi,
    select f1 f2 f3 from <table> into table it .
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    RETFIELD = 'F1'  " a field which you want to get the values from f4_help window
    DYNPPROG ='SY-REPID
    DYNPNR = "1000''
    DYNPROFIELD = 'LV_field'  " this is your screen field
    VALUE_ORG = 'S'
    TABLES
    VALUE_TAB = it  " it contains list of possible values
    *RETURN_TAB = TMP_RETURN_TAB
    EXCEPTIONS
    PARAMETER_ERROR = 1
    NO_VALUES_FOUND = 2
    OTHERS = 3.
    regards ,
    anil

  • Having problems when adding new Curency value field + currency field.

    I need to add a new Currency field (CURR, length 15, 2 decimal places) plus the Currency field itself to a view. 
    I'm really struggerling. I have looked at the existing SAP fields in the Component workbench and I have to admit I can not see how a field is linked/related to the currency itself. Is this link established purlely at the disctionary level?.
    Has anyone added their own Z field value  and Z currency field before. I can create both fields and display them, but what I can not work out is how I related them within the component workbench, or is this done from the dictionary?.
    Any help would be greatly appreciated.
    I should have been able to look at an existing SAP example and work out how it's done, but so far I can not see/determine how this is achieved, even though someone has mentioned that it's controlled via the GET_I_field method. Looking at this method I was expecting to see some mention of both the Currency value field and the Currency field. But as I don't see these confusion reigns.
    Jason

    That's correct, but am I right in thinking that you can't actually create the currency key field itself?.
    I am aware that currency value fields can be created which reference a currency key field, but can see nothing that allows me to create a currency key field to be referenced.
    I hope that makes sense.
    Also, I have amended the structure, changing my value fields from Decimal 15,2 to Currency 15,2  and have created a new currency key field in the structure and referenced this from the Currency value field.
    Witin the Component/view/context node I can see this new currency key field, but it appears as STRUCT.fieldlabel whereas my currency value field appears in the context node as EXT.fieldlabel, because it was created in the AET.
    My problem is that when attempting to add the currency key field onto the screen I don't have it to select from within the list of structures/attributes. All the others attributes in the context node seem to be there, except the new currency key field/attribute.
    The attribute has a SET_fieldlabel, GET_fieldlabel, GET_M_Fieldlabel and a GET_I_Fieldlabel, which I believe is all that should be required.
    Does anyone know what my problem could be?.
    Jason

  • Need some help in creating Search Help for standard screen/field

    I need some help in adding a search-help to a standard screen-field.
    Transaction Code - PP01,
    Plan Version - Current Plan (PLVAR = '01'),
    Object Type - Position ( OTYPE = 'S'),
    Click on Infotype Name - Object ( Infotype 1000) and Create.
    I need to add search help to fields Object Abbr (P1000-SHORT) / Object Name (P1000-STEXT).
    I want to create one custom table with fields, Position Abb, Position Name, Job. Position Abb should be Primary Key. And when object type is Position (S), I should be able to press F4 for Object Abb/Object Name fields and should return Position Abbr and Position Name.
    I specify again, I have to add a new search help to standard screen/field and not to enhance it.
    This is HR specific transaction. If someone has done similar thing with some other transation, please let me know.
    There is no existing search help for these fields. If sm1 ever tried or has an idea how to add new search help to a standard screen/field.
    It's urgent.
    Thanks in advace. Suitable answers will be rewarded

    Hi Pradeep,
    Please have a look into the below site which might be useful
    Enhancing a Standard Search Help
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/daeda0d7-0701-0010-8caa-
    edc983384237
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee93446011d189700000e8322d00/frameset.htm
    A search help exit is a function module for making the input help process described by the search help more flexible than possible with the standard version.
    This function module must have the same interface as function module F4IF_SHLP_EXIT_EXAMPLE. The search help exit may also have further optional parameters (in particular any EXPORTING parameters).
    A search help exit is called at certain timepoints in the input help process.
    Note: The source text and long documentation of the above-specified function module (including the long documentation about the parameters) contain information about using search help exits.
    Function modules are provided in the function library for operations that are frequently executed in search help exits. The names of these function modules begin with the prefix F4UT_. These function modules can either be used directly as search help exits or used within other search help exits. You can find precise instructions for use in the long documentation for the corresponding function module.
    During the input help process, a number of timepoints are defined that each define the beginning of an important operation of the input help process.
    If the input help process is defined with a search help having a search help exit, this search help exit is called at each of these timepoints. If required, the search help exit can also influence the process and even determine that the process should be continued at a different timepoint.
    timepoints
    The following timepoints are defined:
    1. SELONE
    Call before selecting an elementary search help. The possible elementary search helps are already in SHLP_TAB. This timepoint can be used in a search help exit of a collective search help to restrict the selection possibilities for the elementary search helps.
    Entries that are deleted from SHLP_TAB in this step are not offered in the elementary search help selection. If there is only one entry remaining in SHLP_TAB, the dialog box for selecting elementary search helps is skipped. You may not change the next timepoint.
    The timepoint is not accessed again if another elementary search help is to be selected during the dialog.
    2. PRESEL1
    After selecting an elementary search help. Table INTERFACE has not yet been copied to table SELOPT at this timepoint in the definition of the search help (type SHLP_DESCR_T). This means that you can still influence the attachment of the search help to the screen here. (Table INTERFACE contains the information about how the search help parameters are related to the screen fields).
    3. PRESEL
    Before sending the dialog box for restricting values. This timepoint is suitable for predefining the value restriction or for completely suppressing or copying the dialog.
    4. SELECT
    Before selecting the values. If you do not want the default selection, you should copy this timepoint with a search help exit. DISP should be set as the next timepoint.
    5. DISP
    Before displaying the hit list. This timepoint is suitable for restricting the values to be displayed, e.g. depending on authorizations.
    6. RETURN (usually as return value for the next timepoint)
    The RETURN timepoint should be returned as the next step if a single hit was selected in a search help exit.
    It can make sense to change the F4 flow at this timepoint if control of the process sequence of the Transaction should depend on the selected value (typical example: setting SET/GET parameters). However, you should note that the process will then depend on whether a value was entered manually or with an input help.
    7. RETTOP
    You only go to this timepoint if the input help is controlled by a collective search help. It directly follows the timepoint RETURN. The search help exit of the collective search help, however, is called at timepoint RETTOP.
    8. EXIT (only for return as next timepoint)
    The EXIT timepoint should be returned as the next step if the user had the opportunity to terminate the dialog within the search help exit.
    9. CREATE
    The CREATE timepoint is only accessed if the user selects the function "Create new values". This function is only available if field CUSTTAB of the control string CALLCONTROL was given a value not equal to SPACE earlier on.
    The name of the (customizing) table to be maintained is normally entered there. The next step returned after CREATE should be SELECT so that the newly entered value can be selected and then displayed.
    10. APP1, APP2, APP3
    If further pushbuttons are introduced in the hit list with function module F4UT_LIST_EXIT, these timepoints are introduced. They are accessed when the user presses the corresponding pushbutton.
    Note: If the F4 help is controlled by a collective search help, the search help exit of the collective search help is called at timepoints SELONE and RETTOP. (RETTOP only if the user selects a value.) At all other timepoints the search help exit of the selected elementary search help is called.
    If the F4 help is controlled by an elementary search help, timepoint RETTOP is not executed. The search help exit of the elementary search help is called at timepoint SELONE (at the
    F4IF_SHLP_EXIT_EXAMPLE
    This module has been created as an example for the interface and design of Search help exits in Search help.
    All the interface parameters defined here are mandatory for a function module to be used as a search help exit, because the calling program does not know which parameters are actually used internally.
    A search help exit is called repeatedly in connection with several
    events during the F4 process. The relevant step of the process is passed on in the CALLCONTROL step. If the module is intended to perform only a few modifications before the step, CALLCONTROL-STEP should remain unchanged.
    However, if the step is performed completely by the module, the following step must be returned in CALLCONTROL-STEP.
    The module must react with an immediate EXIT to all steps that it does not know or does not want to handle.
    Hope this info will help you.
    ***Reward points if found useful
    Regards,
    Naresh

  • Content Conversion - Ignore extra last fields

    Hi There
    My content conversion has the following:
    STRUCTURE.fieldNames
    STRUCTURE.fieldSeparator
    STRUCTURE.additionalLastFields
    STRUCTURE.endSeparator
    My payload has 22 fields and I only specify 20 field names in my CC.. Due to the parameter additionalLastFields, I don't get an error because of the extra 2 fields.. These field is used in the file name and not in the file itself.. But it adds it to the end of each line regardless. I suppose adding fixed Field length would solve this problem but that I don't have.
    Is there a way to ignore these 2 by NOT adding it to the file? Maybe some parameter I migth have over looked?
    Thanks
    Jan

    Hi,
    Use the different structures for payload data and the fields to be used for file name.
    Similar to STRUCTURE add one more structure as STRUCTURE1 and define those 2 fields over here.
    The FCC parameters can also be dfefined accordingly.
    STRUCTURE1.fieldNames= field1, field2
    STRUCTURE1.fixedFieldLengths = 0,0
    Thanks
    Swarup
    Edited by: Swarup Sawant on Sep 7, 2009 1:20 PM

Maybe you are looking for