Module Program thru tcode SE51(SAP-ABAP)

Hi ,
    Could u tell me how to provide F4 functionality to a field in SE51(Module Pool Prog.) with a small example ?
Thx in Adv.

<b>This code in screen</b>
PROCESS BEFORE OUTPUT.
  MODULE INIT.
PROCESS AFTER INPUT.
  MODULE CANCEL AT EXIT-COMMAND.
PROCESS ON VALUE-REQUEST.
  FIELD CARRIER MODULE VALUE_CARRIER.
  FIELD CONNECTION MODULE VALUE_CONNECTION.
<b>
this code in program</b>
REPORT demo_dynpro_f4_help_module .
TYPES: BEGIN OF values,
         carrid TYPE spfli-carrid,
         connid TYPE spfli-connid,
       END OF values.
DATA: carrier(3) TYPE c,
      connection(4) TYPE c.
DATA: progname TYPE sy-repid,
      dynnum   TYPE sy-dynnr,
      dynpro_values TYPE TABLE OF dynpread,
      field_value LIKE LINE OF dynpro_values,
      values_tab TYPE TABLE OF values.
CALL SCREEN 100.
MODULE init OUTPUT.
  progname = sy-repid.
  dynnum   = sy-dynnr.
  CLEAR: field_value, dynpro_values.
  field_value-fieldname = 'CARRIER'.
  APPEND field_value TO dynpro_values.
ENDMODULE.
MODULE cancel INPUT.
  LEAVE PROGRAM.
ENDMODULE.
MODULE value_carrier INPUT.
  CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
       EXPORTING
            tabname     = 'DEMOF4HELP'
            fieldname   = 'CARRIER1'
            dynpprog    = progname
            dynpnr      = dynnum
            dynprofield = 'CARRIER'.
ENDMODULE.
MODULE value_connection INPUT.
  CALL FUNCTION 'DYNP_VALUES_READ'
       EXPORTING
            dyname             = progname
            dynumb             = dynnum
            translate_to_upper = 'X'
       TABLES
            dynpfields         = dynpro_values.
  READ TABLE dynpro_values INDEX 1 INTO field_value.
  SELECT  carrid connid
    FROM  spfli
    INTO  CORRESPONDING FIELDS OF TABLE values_tab
    WHERE carrid = field_value-fieldvalue.
  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
       EXPORTING
            retfield    = 'CONNID'
            dynpprog    = progname
            dynpnr      = dynnum
            dynprofield = 'CONNECTION'
            value_org   = 'S'
       TABLES
            value_tab   = values_tab.
ENDMODULE.

Similar Messages

  • How to check from Where a Program is Called in SAP ABAP?

    In SAP subroutine message_append in program LATPCFM2 has been called for purchase order as well as delivery (create, change, display).
    I want some custom code to be added in this subroutine by which I would know from where it is being called for "delivery creation".
    Or any way to know the called place.

    Hi Raju,
         I want to add one more thing to your explanation, While enhancing the standard Program, it will be used in several Places for Different purpose. Instead of Checking from Where it is Called, Check with for what conditions the Custom Code Should get executed and the Required Values are present in the attribute. It will work better if we add Some IF conditions Before Our Custom Code otherwie it may lead to Dump.
    EX: If SY-Tocde = 'VA01' or SY-Tocde = 'VA02' or SY-Tocde = 'VA03'.
              Custome Code.
          endif.

  • Suggest me on SAP ABAP

    Hi
    this is Uday from hyderabad ...im a B.TECH Mechanical Graduate
    i'd like to Start my Carrer in ABAP ...Can a Mechanical Engineer can Undergo ABAP Training
    i don't have any prior Knowledge on Pragramming Languages .....Is it Compulsary to have Knowledge in Programming Languages to Learn SAP ABAP
    Plsss suggest me taking right decision regarding my CARRER

    Hi Uday.
    yes you can learn SAP ABAP without having any prior knowledge in programming languages but it is not that easy .having knowledge in OOPS(Object oriented programming structure ) is beneficial & make it easy in understanding SAP ABAP Programming.
    Regards.
    Jagdish.

  • Mass tcode creation from abap programs

    Experts,
    Is there any way to create  tcodes for 200 abap programs through any function modules or any abap programs..
    Regards,
    Suresh
    Edited by: Suresh Palani on Dec 5, 2009 8:02 AM

    hi
    through recording method (BDC) u will do this thing.
    create recording through SHDB in transaction se93.
    regards,
    Abhilash

  • What type pf programming language is SAP ABAP?

    Hiii
    I would like to know what type of programming language is SAP ABAP .  Is it real-time programming or parallel programming??
    please advise??

    Hi,
    It all depends on how you write your programs. You can make your programs run real time(Online-enhancements/interfaces); or Use Parallel processing(Using Function module tasks concept)
    Hope this helps
    Regards
    Shiva

  • Problem while fetching more records in SAP ABAP report program

    Hello Frinds,
    I have SAP ABAP report program which fetches data from usr02 table
    Now, program is working fine with less number of records, bot in production there are more than 200000 records and either report gets timed out or there is run time error like buffer area not available.
    Below is the fetch statement
    SELECT bname FROM usr02 INTO TABLE lt_user
    So, do I need to take records in small chunks, I do not think it is needed as I have worked on number of othere databases where there are number of records in single fetch statement and database itself take care of this.
    Please provide me some approach to resolve this problem.

    This will be very difficult for you.....
    Since you are getting a time out error....it looks like, you are runnning this report in foreground....................
    Try running it in background it will work...
    ELSE....you have to fetch in small chunks....but the question is how will you do it. Since the USR02 only has BNAME as primary key...
    Either put the BNAME as part of selection screen and fetch the data.....it will solve your problem....
    Only fetch for those BNAME which is entered in the selection screen...
    Hope it helps!

  • Can we rename the existing z-program in SAP-abap

    Can we rename the existing z-program in SAP-abap. If yes, than how it can be done. But actually we don't want to copy the code from the existing z-program to the new one which will be created. We just want to make rename the existing z-program in SAP-abap. Please suggest, how it can be?
    Edited by: akg.amit on Oct 20, 2010 7:40 AM

    Hi Amit,
    In SE38 Open the program with old name. Press the RENAME button. In the Target program field provide the new name of program name. This new name for program should not exist in your system. Click on the Rename button. It will give a pop-up where it ask if you want to rename any includes in that program. I assume you dont have any includes in the program. So press the Rename button again without selecting the "Include" check box. Now it will ask for the Transport request. Provide your Transport request number. The program will be renamed.
    Regards,
    Immanuel.

  • Add Voting buttons in MS Outlook from SAP ABAP program

    I have a requirment where SAP ABAP program will send an email.
    I need to have the voting buttons (yes/no) in the email. It does not have to be in the content of the email but the typically voting buttons that we can add to the MS Outlook email.
    If there is someone who can give me the steps and documentations, greatly appreciate.
    The main critieria is that it has to be MS outlook.

    Hi,
    here is the solution i think.
    INCLUDE ole2incl .
    DATA: ole_outlook  TYPE ole2_object,
          ole_CItem    TYPE ole2_object,
          ole_body      TYPE string.
      CREATE OBJECT ole_outlook 'Outlook.Application'.
      CALL METHOD OF ole_outlook 'CreateItem' = ole_CItem
        EXPORTING #1 = 0.
      SET PROPERTY OF ole_CItem 'To' = 'receiver @ mail.com'.
      SET PROPERTY OF ole_CItem 'Subject' = 'E-mail Title'.
      CALL METHOD OF ole_CItem 'Display'.
      CONCATENATE ole_body
                  'Dear Sir/Madam,'
                  cl_abap_char_utilities=>newline
                  cl_abap_char_utilities=>newline
        INTO ole_body.
    SET PROPERTY OF ole_CItem 'Body' = ole_body.
    CALL METHOD OF ole_CItem 'ATTACHMENTS' = ATTS.
    CALL METHOD OF ATTS 'ADD'
    EXPORTING #1 = 'C:\File_Location\File_name.extension'.
    SET PROPERTY  OF ole_CItem 'VotingOptions' = 'Yes;No'.
    FREE OBJECT ole_outlook.
    *you can replace the voting option to what you want, for example 'Yes;No' or 'Approve;Reject'.

  • Query About the SAP ABAP Module

    Hello My name is Anuj Chaturvedi. I have doing a MCA Course(VITH semester). I want to do a SAP ABAP Module. So Please suggest me that ii is gud for me? Also tell me something more about the ABAP Module. Kindly reply me soon.
    Thanks
    Anuj Chaturvedi

    Hello My name is Anuj Chaturvedi. I have doing a MCA Course(VITH semester). I want to do a SAP ABAP Module. So Please suggest me that ii is gud for me? Also tell me something more about the ABAP Module. Kindly reply me soon.
    Thanks
    Anuj Chaturvedi

  • Wireless using SAP ABAP Report programming

    Hi All Boss,
    I am doing my project Wireless program using SAP ABAP
    I need that project.
    so please send me wireless program for sap abap and screen shot.
    reply me urgent....
    Please donot forgot to all..

    This is not a program writing service.

  • Regarding training and placement program for SAP-ABAP at simens

    Dear all,
    i am an MCA completed  fresher planning to join in simens for SAP-ABAP module. I have quires like
      1 After training whether they will provide placement ?
      2 How much will be the fees for that module?
      and last what is duration for that module.
    i welcome all of you for your valuable suggestions......
    its urgent

    Hi vishnuvardhan,
    Here are answers to ur queries
    After training whether they will provide placement ?
    No, Simens is just a training partner of SAP.
    How much will be the fees for that module?
    Cost for certification is 28,000 rs, but if u go for training and certification both it will cost more. Not sure of the exact amount.
    what is duration for that module
    Duration is 1 month.

  • I'm very new tp SAP ABAP, how to create a function module..V.URGENT

    hi folks,
    I'm very new to sap abap.
    I want to create a function module.
    the following is my requirement.
    by passing(eporting parameters to funtion module from pgm point of view) a field, i want to get(importing parameters from the funtion module, from pgm point of view) some 7 fields(of various tables).
    please also tell me how can code an inner join for tables 5 tables(a,b,c,d,e). i'm joining a on b, b on c, c on d,the problem here is that i can not join d on e as there are no common fields in d and e.
    can i join e and c or b, there are no common fields even in a and e.
    please tell me the solution as soon as possible, this very important and urgent deliverable.
    thanks in advance

    Here is link for creating function modules
    <a href="http://help.sap.com/saphelp_47x200/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/frameset.htm">Creating Function Modules</a>
    Regds
    Manohar

  • What is the difference between SAP HR module and SAP-ABAP-HR?

    what is the difference between SAP HR module and SAP-ABAP-HR?
    Thanks in advance..:)

    Hi,
    SAP-HR is software component like SAP-BASIS is a component.
    Its part of the CORE.
    As far as I know there is nothing like SAP-ABAP-HR.
    But ABAP offers some special syntax for HR though.
    Like INFOTYPES, PROVIDE ENDPROVDIE etc.
    Regards,
    Sesh

  • Which module SAP ABAP or SAP PS

    Hi
    I am Varun Maheshwari. I have done B.E in electrical and Electronics. I had experience of 1.8Yr in Project management as Project assistant in Centre for Wind Energy Technology(on Contract basis). My role was Planning of the project, Site selection- Pan India, Resource & inventory planning for installation purpose, Budgeting the project, Collection of the data and analysis, Report generation as per the analysis to the management and third party.  I am willing to pursue career in SAP domain but i am really confuse between SAP domain (SAP PS or SAP ABAP) which will be good if you consider growth & opportunities.
    Please guide me considering Market Scenario, Future Growth & Recruitment Opportunities?
    I will be highly thankful to you !!
    Regards
    Varun Maheshwari

    Hi Varun,
    Since you already have almost 2 years of experience in project management, it is better to capitalize on this experience by choosing a career relevant to your experience. This experience counts when you go forward in the same area (Project management).
    In SAP, for project management there are three tools serving different business processes.
    1) SAP PS (Project Systems)
    2) SAP PPM (Portfolio & Project Management)
    3) SAP CPM (Commercial Project Management)
    In general it is better to start with SAP PS and then later on with SAP PPM which has very good integration with PS.
    Coming to your query on future growth/recruitment opportunities.. There are lot of job opportunities for SAP PS in the market.. Any project in any company in this world requires a tool to monitor & review the project progress. Considering this organisation may use either SAP PS / PPM / Microsoft project / Primavera. But definitely organisations using SAP uses SAP PS for project management. So in short, there is no shortage of demand for SAP PS.
    Considering your experience, I have given my opinion and it finally depends on you to choose a career in which you have passion.
    Regards,
    Ravi

  • SAP-ABAP Module

    Hi to All,
    I completed my B.E(Electronic and Commmunication Engineering).As I am having some doubt,Senior Consultant please give your opinion
    Do SAP ABAP Certification worth the money?
    Is it easy to crack the Certification?
    Which is good doing course in authorised centre or unauthorised centre?Because Investment is Huge!!
    Kindly reply and help me!
    Regards
    Sibi

    Hi,
    SSF uses [PKCS7|http://tools.ietf.org/html/rfc2315] format to encrypt data. This format generates a random content key which is used to encrypt content and then it encrypt this key using public key of recipient. The recipient decrypts content key using her private key and then uses this key to decrypt content. Therefore the answer for the first question is you can't specify keys used by symmetric cipher. You can't see from the encrypted text what algorithm was used but the default symmetric encryption algorithm used by SAP should be DES in CBC mode.
    I would suggest you to use PKCS#7. Implementing crypto is really hard so I don't suggest to simply use DES and encrypt content. One of the hardest part is key management. PKCS#7 solves this issue for you for free. So you need to find a Java library which can generate PKCS7 envelope (look for Bouncy Castle). The only input will be public key of your SAP system. How to decrypt PKCS7 in ABAP can be seen in FM CCARD_DEVELOPE.
    Cheers

Maybe you are looking for

  • Error 7 occurred at Open VI Reference with Application Builder

    Using Labview 5.1, I am building an application where all the vi's are placed in a single .LLB file. I have one top level vi (with sub-vi's), and one vi that is opened by the Open VI command. The program runs fine with labview installed. I want to ma

  • JDeveloper 9i - Problem with using tag lib

    I am having problem with building my project, using JDeveloper 9i. My project includes custom tag libraries. When I build my project, I get back the following error: Error(1): oracle.xml.parser.v2.XMLParseException: Invalid element 'servlet' in conte

  • Hp prime Copy and pasting problems

    Does any one know why the HP prime copy and paste function does not work properly. For example when I copy and past form the spreadsheet to the statistics 1 var app nothing happens. Perhaps there is a work around that will allow me to avoid this prob

  • How can we maintain External cache in TopLink JPA

    Hi, JPA maintains shared session cache for the purpose of multiple users .Individual user can not use this shared session cache . How can we maintain that individual user cache in TopLink JPA . In our application we are using container managed transa

  • Using a Pages template

    When trying to use a template in pages, I have access to edit the first page, but can't "find" the subsequent pages. I am trying to use a newsletter template.