How to populate data in MPP through F4 search help(the field should get filtered as per key)

Dear Experts.
I am new to ABAP and hence trying jmy hands on various ways of peforming a task.
I have a requirement. I want to maintain a database tables through MPP :  ZLT_Auftrag (Refer Screen Shot 1: Doubt MPP1) and ZLT_Kunde (Refer Screen Shot2: Doubt MPP2)
The fields of ZLT_Kunde are: K1, K2, K3
The fields of ZLT_Auftrag are: A1, A2, A3, A4, P1 P2 and P3 are related as per the key field "A3"   (Here A3 = K2)
I want the User to be able to Maintain this table through the Screen that I had created using MPP. (Plz refer the attached Screen Shot3:Doubt MPP3  of the SCREEN in MPP)
When I populate the Kunde name(K1) in the SCREEN (Can be done by F4 Search help), then on hitting the pushbutton "Get Kunde" the  kunde Code (K2) appears . Now from here it can be deleted or even a new Kunde name and code can be saved dirctly to the database table : ZLT_Kunde. (Refer Screen Shoot4: Doubt MPP4)
For Example for Kunde (K1)= BASF, Kunde Code (K2) = BSF, the Auftrag should be all those values from ZLT_Auftrag (where A3 = BSF)
When I try to populate the Auftrag value on the SCREEN then on hitting F4 (already created for table ZLT_Auftrag in se11) then I get all the values of Auftrag (A1) from the table ZLT_Auftrag. (Ply refer Screen Shot 5: Doubt MPP5)
MY REQUIREMENT: Here I want that either through F4 help or through drop down ONLY those values of Auftrag-A1 should appear on the SCREEN which satisfies the condition: A3 = K2
I am unbale to get how to do that.
I need your valuable suggstions.
Regards
Chandan

And the  code of the MPP is:
*& Module Pool       SAPMZDEMO_MPOOL_03
PROGRAM  SAPMZDEMO_MPOOL_03.
TABLES:  ZLT_MITA, ZLT_Kunde, ZLT_Auftrag, Zlt_Stdsatz.
DATA: flg_lock  TYPE c,
*      indx  TYPE i,
*      indxk TYPE i,
*      indxa TYPE i,
*      TCNT TYPE sy-tabix,
      lv_msgv1  TYPE  sy-msgv1.
*DATA: it_mita    TYPE TABLE OF ZLT_mita,
*      it_kunde   TYPE TABLE OF ZLT_KUNDE,
*      it_auftrag TYPE TABLE OF ZLT_AUFTRAG.
*&      Module  STATUS_9000  OUTPUT
*       text
module STATUS_9000 output.
  SET PF-STATUS 'ZSTATUS01'.
*  SET TITLEBAR 'xxx'.
  If flg_lock is Not initial.
    LOOP at Screen.
  If screen-group1 = 'G1'.
  Screen-input = 0.
  MODIFY SCREEN.
       Endif.
    ENDLOOP.
      MESSAGE s000(8i) WITH 'Mitarbeiter already locked by user' lv_msgv1.
  ENDIF.
endmodule.                 " STATUS_9000  OUTPUT
*&      Module  USER_COMMAND_9000  INPUT
*       text
module USER_COMMAND_9000 input.
*To Populate Data into Mitarbeiter through Pushbuttons
  CASE sy-ucomm.
    When 'OK_GET'.
      Clear : flg_lock.
        IF ZLT_MITA-M1 is NOT INITIAL.
            SELECT SINGLE *
            FROM  ZLT_MITA
            Where M1 = ZLT_MITA-M1.
*To create a Lock Object so that when two or more employees are accessing the same data
* at the same time then for the new user the data gets locked and only can been seen in
*display mode
        IF sy-subrc = 0.
        CALL FUNCTION 'ENQUEUE_EZLT_MITALOCK'
         EXPORTING
           MODE_ZLT_MITA        = 'E'
           MANDT                = SY-MANDT
           M1                   = ZLT_MITA-M1
*           X_M1                 = ' '
*           _SCOPE               = '2'
*           _WAIT                = ' '
*           _COLLECT             = ' '
         EXCEPTIONS
           FOREIGN_LOCK         = 1
           SYSTEM_FAILURE       = 2
           OTHERS               = 3
        IF sy-subrc <> 0.
          flg_lock = 'X'.
          lv_msgv1 = sy-msgv1.
        ENDIF.
        ENDIF.
        ELSE.
            MESSAGE S000(8i) With 'Enter Mitarbeiter Name'.
        ENDIF.
    When 'OK_SAVE'.
       Modify ZLT_MITA.
       IF sy-subrc = 0.
         MESSAGE s000(8i) With 'Data Saved'.
       ENDIF.
    When 'OK_DELETE'.
        IF ZLT_MITA-M1 is NOT INITIAL.
            DELETE
            FROM  ZLT_MITA
            Where M1 = ZLT_MITA-M1.
          IF sy-subrc = 0.
            MESSAGE S000(8i) With 'Data deleted'.
          ENDIF.
        ENDIF.
*     When 'OK_FIRST'.
*           indx = 1.
*     When 'OK_NEXT'.
*           indx = indx + 1.
*     When 'OK_PREV'.
*           indx = indx - 1.
*     When 'OK_LAST'.
*           Describe Table it_mita lines indx.
*To Populate Data into Kunde through Pushbuttons
    When 'OK_GETK'.
        IF ZLT_Kunde-K1 is NOT INITIAL.
            SELECT SINGLE *
            FROM  ZLT_Kunde
            Where K1 = ZLT_KUNDE-K1.
        ELSE.
            MESSAGE S000(8i) With 'Enter Kunde Name'.
        ENDIF.
    When 'OK_SAVEK'.
       Modify ZLT_Kunde.
       IF sy-subrc = 0.
         MESSAGE s000(8i) With 'Data Saved'.
       ENDIF.
    When 'OK_DELETEK'.
        IF ZLT_KUNDE-K1 is NOT INITIAL.
            DELETE
            FROM  ZLT_KUNDE
            Where K1 = ZLT_KUNDE-K1.
          IF sy-subrc = 0.
            MESSAGE S000(8i) With 'Data deleted'.
          ENDIF.
        ENDIF.
*To Populate Data into Auftrag Through Pushbuttons
    When 'OK_GETA'.
        IF ZLT_KUnde-K2 is NOT INITIAL.
            SELECT SINGLE *
            FROM  ZLT_Auftrag
            Where A3 = ZLT_Kunde-K2.
        ELSE.
            MESSAGE S000(8i) With 'Enter Kunde Name'.
        ENDIF.
    When 'OK_SAVEA'.
       Modify ZLT_Auftrag.
       IF sy-subrc = 0.
         MESSAGE s000(8i) With 'Data Saved'.
       ENDIF.
    When 'OK_DELETEA'.
        IF ZLT_Auftrag-A1 is NOT INITIAL.
            DELETE
            FROM  ZLT_Auftrag
            Where A1 = ZLT_Auftrag-A1.
          IF sy-subrc = 0.
            MESSAGE S000(8i) With 'Data deleted'.
          ENDIF.
        ENDIF.
*To Populate Data into Position Thorugh Pushbuttons
    When 'OK_GETP'.
        IF ZLT_Auftrag-A2 is NOT INITIAL.
            SELECT SINGLE *
            FROM  ZLT_Auftrag
            Where A3 = ZLT_Kunde-K2.
        ELSE.
            MESSAGE S000(8i) With 'Enter Kunde Name'.
        ENDIF.
    When 'OK_SAVEP'.
       Modify ZLT_Auftrag.
       IF sy-subrc = 0.
         MESSAGE s000(8i) With 'Data Saved'.
       ENDIF.
    When 'OK_DELETEP'.
        IF ZLT_Auftrag-A1 is NOT INITIAL.
            DELETE
            FROM  ZLT_Auftrag
            Where A1 = ZLT_Auftrag-A1.
          IF sy-subrc = 0.
            MESSAGE S000(8i) With 'Data deleted'.
          ENDIF.
        ENDIF.
    When 'OK_EXIT'.
       Leave Program.
    When 'OK_CLEAR'.
      Clear : ZLT_MITA, ZLT_KUNDE, ZLT_AUFTRAG.
*              it_mita, it_kunde, it_auftrag,
      CALL FUNCTION 'DEQUEUE_EZLT_MITALOCK'
       EXPORTING
         MODE_ZLT_MITA       = 'E'
         MANDT               = SY-MANDT
         M1                  =  ZLT_MITA-M1
*         X_M1                = ' '
*         _SCOPE              = '3'
*         _SYNCHRON           = ' '
*         _COLLECT            = ' '
ENDCASE.
endmodule.                 " USER_COMMAND_9000  INPUT
*&      Module  user_cmd_9000  INPUT
*       text
module user_cmd_9000 input.
  If sy-ucomm = 'OK_CANCEL'.
  LEAVE PROGRAM.
  ENDIF.
  IF sy-ucomm = 'OK_EXIT'.
      LEAVE PROGRAM.
  ENDIF.
endmodule.                 " user_cmd_9000  INPUT

Similar Messages

  • How to populate data from screen on to search help field

    Hello all,
    I have a requirement in which for a field i have attached a search help and i am calling the search help by using the FM
    F4IF_FIELD_VALUE_REQUEST it is working fine.
    I have one additional requirement that whernever any data is entered on the screen field say ( A* ) then F4 is pressed on the search help in the field this value must be considered. Now it appears blank but i want this data to get populated from the screen
    field how can i achieve it.
    Warm Regards,
    Naveen M

    hii naveen,
    YOu have to make use of the function modules:
    DYNP_VALUES_READ Read screen field values before PAI field transport
    DYNP_VALUES_UPDATE Change screen field contents w/o PBO
    Each of which is very well documented
    or
    trigger the drop-down in POV.
    PROCESS PAI.
    FIELD <FIELD>.
    PROCESS ON VALUE-REQUEST.
    FIELD FIELD MODULE F4HELP_FOR_FIELD.
    MODULE F4HELP_FOR_FIELD.
    > Call search help: see the fm VRM_* to manage dropdown list
    DATA: DYNAME LIKE D020S-PROG,
    DYNUMB LIKE D020S-DNUM.
    DATA DYNPFIELDS LIKE STANDARD TABLE OF DYNPREAD WITH HEADER LINE.
    DYNPFIELDS-FIELDNAME = <other field name>.
    DYNPFIELDS-FIELDVALUE = <value>.
    APPEND DYNPFIELDS.
    CALL FUNCTION 'DYNP_VALUES_UPDATE'
    EXPORTING
    DYNAME = DYNAME
    DYNUMB = DYNUMB
    TABLES
    DYNPFIELDS = DYNPFIELDS.
    ENDMODULE.
    rgrds,
    Shweta

  • How to populate data from dynamic drop down list to the text field

    Hi,
    I tried to populate data from dynamic drop down list to city field. I would like to concat data from drop down list.When selecting add button to add the item and select item from drop down list, data should be displayed in the text field. However, Please help. I spent alot of time to make it works I am not successful.
    Please see the link below.
    https://acrobat.com/#d=SCPS0eVi6yz13ENV0cnUdw
    Thanks for your help
    Cindy

    Hi Rosalin,
    Loop the hidden table, get the values and populate drop down in each iteration.
    DropDownList1.addItem("Text","Value");
    You can use one more solution for this scenario. If it is a matter of 2,3 dropdowns, put three dropDowns in the form layout and give seperate static data binding to them. At run time make the dropDowns hide/visible as per the requirement.
    Hope this helps.
    Thanks & Regards,
    Sanoosh

  • How to import data usin Import manager if one of the field is of type LOOKUP[FLAT].

    Consider a scenario:
    Where I created a Main table named STUDENT and it has 4 fields,
    a) Among which 2 fields are OF DATA TYPE TEXT[50] and
    b) Remaining two are of DATA TYPE LOOKUP[FLAT] and corresponding look up table also created in the repository.
    When I tried to create a file with certain input records and tried to import the values into the Main table using MDM IMPORT Manager, I am getting error at the IMPORT STATUS tab with the action item message: MAP 'FILED NAME OF LOOKUP[FLAT] TABLE' FIELD VALUE(S).
    Do I need to do any special action to import record if the field is of data type LOOKUP[FLAT].
    Please advice.

    Hi,
    Since you need to import value into a field which is referred by a flat look table, you need to map the values of that field to the values maintain in flat look up table.
    You can do the mapping from "Map Fields/Values" Tab.
    You have probably Mapped Source fields with destination fields, but in case of importing values in lookup fields you need to map Source Value with destination value.
    Keep the cursor on the required lookup field in Source field section, below that section you will be able to see Source Value section perform the mapping in that section too and it will resolve your issue.
    Regards,

  • Export all data of selected line in search help to fields in table control

    I've created a search help which will export 4 fields. These 4 fields should be populated to the corresponding fields in TABLE CONTROL. However, in my program, only the first column is populated and the others are blank. How to solve this problem? Do I need to include POV? Thank you.

    Hi,
    1. Create a search help with four exporting parameters.
        ( check the you have created properly the sterp step
         procedure in creating the search help).
    2. No need to go for POV.
    3. After creating the table control assign the fieldnames into   
       the control, then click on the fieldname it will show the  
       attributes of that field . ther you can find te search help field
       fill that field with your search help name .
    4.After assigning the field, check it in executing the report.
          Hope this will work for you, if it is not let me know.
          Reward points if it is  helpful .
    Regards,
    Madhavi

  • How to populate data in PAY_PEOPLE_GROUPS table (People Group Flexfiled)

    Hello
    We are migrating the data from one oracle instance to another oracle instance which are in same version of Oralce Applications 11.5.10.2. As a part of migration can anybody let me know how to populate data in "People Group Key Flexfiled" (PAY_PEOPLE_GROUPS table), ideally I will create or update employee records from the source instance to destination instance, so while creating or updating the employee records in can pass people_group_id while calling to the assignment api but my question here is before passing group id to the api i should have the data populated in PAY_PEOPLE_GROUPS TABLE so that i can fetch the group id as per the combination and pass it in to the api.. please suggest...

    Thanks for your information! by any chance do you have any sample code which will create/update assignments with People Group Flexfield; when i check "hr_assignment_api.update_emp_asg_criteria" it only has parameter to pass people group id and not having segments parameters to pass individual segments.
    Also let me know the links if you have any for all HR API guide which will help me to develope the interfaces...
    My requirement is we have two instances in which in one instance we are treating as source for HR which will be used to master for all HR related activities and we are planning to develope an interface which will bring master instance in sync with dummy instance.

  • How to populate data in a JTable?????????

    hi there
    can anyone tell me how to populate data in a JTable? when a table is displayed, the table should have data retrieved from a file. thank you.

    Hi,
    it is correct, that the best way to learn about JTable is to read the online tutorial about JTable. To give you a quick guideline, where to start your implementation, I will add this:
    A JTables data is hold in a TableModel. TableModel is an interface, so if a class implements this interface correctly, you can simply populate the data hold by this TableModel by constructing a JTable this way
    JTable jt = new JTable(MyTableModel);
    where MyTableModel is your class, which implements the TableModel interface.
    When JTable has to render a cell, it will call the getValueAt(...) method of the TableModel for example.Your implementation of this method must deliver the requested data - if you prefetch a bunch of data from a file and store it internally in this TableModel or fetch it from the file just in time, is up to you.
    greetings Marsian

  • How to use CrossReference and DVM in ODI &how to populate data into Xref

    Can any one tell how to use Domain Value Maps and Cross Referencing in ODI?
    DVM or Domain Value Map are created and used in ESB console of SOA suite.
    My actual requirement is as follows:
    The below steps describe loading data from ERP Application 1 to ERP Application 2.
    1. The Source Application ERP APP1, populates the interface table using their native technology.
    2. A job scheduler invokes the Source side ODI Package.
    3. ODI then extracts the data from Source Interface table and populates the Target Interface table.
    4. After populating the Target interface table the ODI populates the X-ref table with App 1 ID and generated common ID.
    5. The ODI either deletes or updates the rows that were processed from the Source interface table.
    6. On the Target Application ERP APP2, the native application extracts data from target interface table and populates target database there by generating ERP Application 2 ID.
    7. A job scheduler on the Target application invokes the ODI package to populate the Application 2 ID onto the Xref table matching on the Common ID.
    I just want to know :
    1. How to populate data into the Xref table from Source datastore
    2. And if data is successfully laoded from target datastore to actual base table of target then how to populate the target id into the cross reference table.

    can anyone suggest me some answer, then it would be of great help?

  • How to populate data in TargetCube from SourceCube for a particular product/currency dimension selected in form1.

    Hi,
    Need help regarding Business rule scenario "How to populate data in "Target Form (plantype2)" from "Source Form(plantype1)" for a particular product/currency dimension combination selected in form1"
    Scenario 1) :  I have data for Product(Computer)/Currency(USD) dimension combination in Source Form
                        When i open Target Form and then select a Product(Computer)/Currency(USD) combination and then right click on form to invoke a Business rule to get data for this same                     product/currency combination from Source Form.
    Scenario 2) : If there isnt any data in Source Form for product(Computer)/Currency(USD) combination, then the data for product(computer)/Currency(Default Currency) to be populated into Target                     Form.
    The members in Currency Dimension (Shared Dimension) are USD & Default Currency.
    Can anyone please help.
    Thanks,
    Rajkumar

    Adding to what Celvin Kattookaran has said
    You can either write a Business Rule / Calculation script with @XREF function and also you can check condition if there is data in USD then populate USD else "Default currency"
    If you want that data in source to be available in target, then you can use @XWRITE in a rule from source cube to push the data to Target.
    Amarnath
    ORACLE | Essbase

  • How to populate data from table into datagrid in form

    hi there. may i know how to populate data from a table into a datagrid? i have created a datagrid in a form using OLE's microsoft datagrid. i'm having problem to populate data from table into the grid. can i know how to do that? thanks

    Not exactly. I want to enter input from form and the user can have all options to choose i.e. HIGH, MEDIUM or so on.
    Suppose, you have option to select HIGH, MEDIUM or LOW and you can see all these options together. You select LOW and when you save, it is saves in the table as a value. So when you view the table again, it will show LOW as active and HIGH and MEDIUM are null.

  • How to populate data dynamically in WSelect web element.

    How to populate data dynamically in WSelect web element. what is the syntax of WSelect web element to populate data from the database

    Hi Jamie,
    There is no Url to download ackage, instead the link is taking here
    Crystal Reports webElements
    Can you give me correct link?

  • How to populate data for 2LIS_40_REVAL, 2LIS_43_POSCAS and 2LIS_44_POSREC

    Hi
    How to populate data for 2LIS_40_REVAL, 2LIS_43_POSCAS and 2LIS_44_POSREC datasources at RSA3?
    I'm very new to retail BI.
    I think there is no setup tables for Retail infosources.
    Any IDoc or BAPI activation is required or other procedure?
    We are in BI-700 SAPKW70015 support pack R/3 side
    and SAP_BW 700 Support pack SAPKW70016 &
    BI_CONT 703 Support pack SAPKIBIIP9 BI side
    Can anyone guide me how to load data?
    Points assured
    Thanks in advance
    Ramana P

    Dear Ramana,
    There is no setup table for POSCAS and POSREC.This has to be popuated with a BADI Implementation. 
    As of PlugIns 2002_1_470 and 2002_2_470, POS data is update into BW the 2LIS_44_POSREC and 2LIS_43_POSCAS extractors using a BADI. To be able to update data into BW, the relevant implementation for the BADI must be activated in each case. You can activate the implementation in transaction SE19. The implementations are as follows:
    POS_EX_REC_PI2003_1 for extractor 2LIS_44_POSREC
    POS_EX_CAS_PI2003_1 for extractor 2LIS_44_POSCAS
    Once the activation of BADI , create the back ground jobs for the 44 application and the data is pushed into Delta queue and it can be loaded into BI .
    Hope this helps you.
    Thanks,
    Krishna Charan

  • Based on Characteristics, populate variants/article through custom search help

    Dear Experts,
    In IS-Retail, MM43 transaction, based on characteristics how to display variant number/s(matnr) through custom search help.
    Regards,
    Abbas.

    Hi Syed,
    This is possible, if you set the field attributes of the screen as given below.
    Program Attirbutes:
    Check the checkbox for 'Output Field'
    Check the checkbox for 'Output Only'
    Display Attributes:
    Check the checkbox 'As label on right'
    Regards
    Gangadhar

  • Custom search help exit through stand search help SD_MAT1

    Dear Experts,
    How to prepare custom search help through stand search help(SD_MAT1).
    My requirement: In VA01 transaction, material(matnr) search help, adding custom search help.
    Regards,
    Abbas.

    Dear Abijith,
    How to write custom search help(FM) code with parameters and how match with search help parameters in search help exit.  Please give some sudo code.
    Regards,
    Abbas.

  • I am trying to add, through an amplification project, the field counts alte

    hello dear, 
    I have a countable document with several positions with classes of costs, which have imputation object the order co. 
    I am trying to add, through an amplification project, the field counts alternative to transaction KSB1. 
    the problem that I have in the routine, is that, he/she repeats the last bill alternative to all the positions of the cost classes. 
    the routine is the following one: 
    clear CS_RECORD-ZZ_LOKKT. 
    select * from bseg where bukrs eq ld_documents-bukrs 
                             and belnr eq ld_documents-docnr 
                             and gjahr eq ld_documents-ac_gjahr. 
            if not bseg-kostl is initial. 
               CS_RECORD-ZZ_LOKKT = BSEG-LOKKT. 
            endif. 
    endselect. 
    example of the result that it shows me:                                                                               
    It counts Alternative 
    30101001 COMMISSION SUB-AGENCY 113,64       6220000 
    30202001 SALARIES                             142,05       6220000 
    grateful of their help, 
    greetings 
    jorge silva

    Make the back of the car a 3D layer. Add a camera. Animate the camera so the motiion looks right.
    Another option, track something in the frame that is in the same plane as the back of the car. Track scale. Apply the tracked scale information to the back of the car layer.
    A better way to get better suggestions. Post a screenshot of the video or better yet, upload the video to You-tube and let us see what you are trying to do.

Maybe you are looking for