Urgent: Function module for getting the input from user  using a pop up

Hi all,
My requirement at user commmand a pop up should appear asking the user to enter the session name for the bdc session to be created.
My report allows the user to enter the session name of his choice.
I need the name of the function module which can do this.
Thanks
Pritish

better to create one FM  to pop-up.
check this :
function y_pop_up_get_distributor_time.
*"*"Local interface:
*"  IMPORTING
*"     REFERENCE(W_ROUTE) LIKE  VBAP-ROUTE
*"     REFERENCE(W_VBELN) LIKE  VBAK-VBELN
*"     REFERENCE(W_VGBEL) LIKE  VBAK-VGBEL
*"     REFERENCE(W_VSTEL) LIKE  VBRP-VSTEL
*"     REFERENCE(W_AUART) LIKE  VBAK-AUART
*"  EXPORTING
*"     REFERENCE(W_FROM_DATE) TYPE  SY-DATUM
*"     REFERENCE(W_FROM_TIME) TYPE  SY-UZEIT
*"     REFERENCE(W_TO_DATE) TYPE  SY-DATUM
*"     REFERENCE(W_TO_TIME) TYPE  SY-UZEIT
*"     REFERENCE(W_TKNUM) TYPE  VTTK-TKNUM
*"     REFERENCE(W_RC) TYPE  SY-SUBRC
*"     REFERENCE(W_DEPT_DATE) TYPE  SY-DATUM
*"     REFERENCE(W_DEPT_TIME) TYPE  SY-UZEIT
*"     REFERENCE(W_REPO_DATE) TYPE  SY-DATUM
*"     REFERENCE(W_REPO_TIME) TYPE  SY-UZEIT
*"     REFERENCE(W_PLNT_DATE) TYPE  SY-DATUM
*"     REFERENCE(W_PLNT_TIME) TYPE  SY-UZEIT
*"     REFERENCE(W_TRUCK_NO) TYPE  YW2_TIMEENTRY-TRUCKNO
*"     REFERENCE(W_LIFNRN) TYPE  YW2_TIMEENTRY-LIFNR
*  SET PF-STATUS 'STATUS_100' OF PROGRAM SAPLZ2SLS.
*CLEAR:W_DATE_FROM, W_DS_TIME_1, W_ADATE,
*      W_ATIME,W_BDATE,W_BTIME, W_CDATE, W_CTIME.
clear : w_route1, w_vbeln1,w_vgbel1,
        w_vstel1,w_auart1.
  w_route1 = w_route.
  w_vbeln1 = w_vbeln.
  w_vgbel1 = w_vgbel.
  w_vstel1 = w_vstel.
  w_auart1 = w_auart.
  clear: w_date_to, w_date_from, w_adate,w_atime,
         w_ds_time_1, w_ds_time_2,
         w_bdate, w_btime, w_cdate, w_ctime.
  call screen 100 starting at 10 2 ending at 115 13.
  if w_ok_code = 'SAVE'.
    w_rc = 0.
    w_from_date  = w_date_from.
    w_from_time  = w_ds_time_1.
    w_to_date    = w_date_to.
    w_to_time    = w_ds_time_2.
    w_tknum      = w_tknum.
    w_dept_date  = w_adate.
    w_dept_time  = w_atime.
    w_repo_date  = w_bdate.
    w_repo_time  = w_btime.
    w_plnt_date  = w_cdate.
    w_plnt_time  = w_ctime.
    w_truck_no   = sg_truckno.
    w_lifnrn     = w_lifnr.
  else.
    w_rc = 1.
  endif.
*  IF w_ok_code = 'CANC'.
*    W_rc = 1.
*  ELSE.
*    W_rc = 0.
*    W_FROM_DATE  = w_date_from.
*    W_FROM_TIME  = w_ds_time_1.
*    W_TO_DATE    = w_date_to.
*    W_TO_TIME    = w_ds_time_2.
*    W_TKNUM      = W_TKNUM.
*    W_DEPT_DATE  = W_ADATE.
*    W_DEPT_TIME  = W_ATIME.
*    W_REPO_DATE  = W_BDATE.
*    W_REPO_TIME  = W_BTIME.
*    W_PLNT_DATE  = W_CDATE.
*    W_PLNT_TIME  = W_CTIME.
*  ENDIF.
  clear w_ok_code.
endfunction.
Regards
Prabhu

Similar Messages

  • Function module to get the dates from the year and the period

    Is there a function Module to get the dates from the year and the period

    Check with :
    To get last day of period use .
    LAST_DAY_IN_PERIOD_GET.
    To get last of month Use :
    RE_LAST_DAY_OF_MONTH
    HRVE_LAST_DAY_OF_MONTH
    LAST_DAY_OF_MONTHS
    ISB_PREVIOUS_PERIOD_DATE_GET
    Thanks
    Seshu

  • Functional module to get the File from a given Directory

    Hi all,
    I am using a FM name 'subst_get_file_list' to get the file from a given directory but it is accepting only 40 Character length file only my requirement is to accept file name other than 40 char,
    give me good sugestion
    regards
    paul

    Hi Paul,
    Check the Function Module Gayathri has given. ie. 'SO_SPLIT_FILE_AND_PATH'.
    In the exporting parameter FULL_NAME , give the path name and in the importing parameter stripped_name , you will get the filename.
    Check this code.
    REPORT ZSHAIL_SPLITFILE.
    data: it_tab type filetable with header line,
          gd_subrc type i.
    tables: rlgrap.
    data: path type string,
          file_name type string.
    parameters file_nam type rlgrap-filename .
    data: user_act type i.
    at selection-screen on value-request for file_nam.
    CALL METHOD cl_gui_frontend_services=>file_open_dialog
      EXPORTING
        WINDOW_TITLE            = 'select a file'
       DEFAULT_EXTENSION       = '*.txt
        DEFAULT_FILENAME        = ''
        FILE_FILTER             = '*.txt'
        INITIAL_DIRECTORY       = ''
        MULTISELECTION          = abap_false
       WITH_ENCODING           =
      CHANGING
        file_table              = it_tab[]
        rc                      = gd_subrc
        USER_ACTION             = user_act
       FILE_ENCODING           =
      EXCEPTIONS
        FILE_OPEN_DIALOG_FAILED = 1
        CNTL_ERROR              = 2
        ERROR_NO_GUI            = 3
        NOT_SUPPORTED_BY_GUI    = 4
        others                  = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    if user_act = '0'.
    loop at it_tab.
    file_nam = it_tab-filename.
    endloop.
    endif.
    path = file_nam.
    CALL FUNCTION 'SO_SPLIT_FILE_AND_PATH'
      EXPORTING
        full_name           = path
    IMPORTING
       STRIPPED_NAME       = file_name
      FILE_PATH           =
    EXCEPTIONS
      X_ERROR             = 1
      OTHERS              = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    at selection-screen.
    message i001(zmess) with file_name.
    Regards,
    SP.

  • Function Module for getting the Sales Price for a condition type

    Hi,
    I am looking for a standard function module to which I can pass my condition type(new customizing) and it will return the sales price. The customer is going to create some new condition type to manitain the sales price. I'll have the necessary information like material/sales org/distribution channel, customer and need the standard function module to read the condition records for that condition type(as configured) and give me the price. PLease help if you know of a standard function module performing this.
    Thanks in advance.
    Regards
    Malthi

    Hi malthi ,
    welcome to sdn
    for material sales area u can look for the validations is table MVKE.
    the classification of the conditions is in tables like A901, a902 etc which in my opinion holds the condition types per classification .
    put a A* in se11 and this will give the list of tables per classification .
    u need to get the conditions as per kschl and dmbtr and
    etc..
    like this ..
    Get Condition Values for Material/Plant combination
      IF NOT i_a916[] IS INITIAL.
        SELECT knumh kappl kschl krech
               kbetr konwa kpein kmein
               INTO TABLE i_konp
               FROM konp
               FOR ALL ENTRIES IN i_a916
               WHERE knumh EQ i_a916-knumh AND
                     kappl EQ i_a916-kappl AND
                     kschl EQ i_a916-kschl AND
                     loevm_ko NE 'X'.
      ENDIF.
    Get Condition Values for Material/Plant/Ordertype/
    Customer combination
      IF NOT i_a925[] IS INITIAL.
        SELECT knumh kappl kschl  krech
               kbetr konwa kpein kmein
               APPENDING TABLE i_konp
               FROM konp
               FOR ALL ENTRIES IN i_a925
               WHERE knumh EQ i_a925-knumh AND
                     kappl EQ i_a925-kappl AND
                     kschl EQ i_a925-kschl AND
                     loevm_ko NE 'X'.
      ENDIF.
    just check this Fm if u can apply ur condition over here ..
    ME_GET_PRICE_CONDITION
    regards,
    VIjay.

  • Function module to get the details from table COEP

    hi all,
    I have to select the data from COEP table based on OBJNR.i don't have  any other key information.so i have to select the data based on OBJNR only.
    can any one please tell me is there any function to get the data from this table.
    Thanks.

    Hi
    Try the fun module
    K_CO_OBJECT_BALANCE_GET
    see the sample select statement for COEP
    clear cobrb_tab.
      refresh cobrb_tab.
      select objnr            " Object No
             rec_objnr1       " Ref Object No
             bureg            " Dostribution Rule
             lfdnr            " Sequence No
             perbz            " Settlement Rule
             konty            " Acct Assign Category
             bukrs            " Company Code
             kostl            " Cost Center
         into table cobrb_tab
         from cobrb
         where kostl in rn_kostl.
      sort cobrb_tab by objnr rec_objnr1.
      delete adjacent duplicates from cobrb_tab comparing objnr.
    Get the Settlement Costs from COEP Table
      clear it_set_tab.
      refresh it_set_tab.
      if not cobrb_tab[] is initial.
        select kokrs            " Controlling Area
               belnr            " Acc Document
               buzei            " Line Item
               perio            " Period Block
               wkgbtr           " Value in CO Curr
               lednr            " Ledger No
               objnr            " Object No
               gjahr            " Fiscal Year
               wrttp            " Actuals
               versn            " Version
               kstar            " Cost Element
               beknz            " Dr/Cr Indicator
               parob1           " Partner Object
           into table it_set_tab
           from coep
           for all entries in cobrb_tab
           where lednr = c_lednr  and
                 wrttp = c_wrttp2 and
                 versn = c_versn  and
                 gjahr = p_gjahr  and
                 objnr = cobrb_tab-objnr and
                 parob1 = cobrb_tab-rec_objnr1 and
                 beknz in (c_o, c_a).
      endif.
    Reward points for useful Answers
    Regards
    Anji

  • Function module for getting the open qty

    HI experts,
                      I have a PO quantity(EKPO_MENGE).against same PO and item item(EBELN and EBELP) if Goods receipt has happened (MSEG_ERFMG) then i need to calculate the open qty.and also by netting the open quantity if multiple GRs has done against the same PO and item.
    Can you suggest any function module to get this open PO quantity.

    Hello,
    Hope this link can help you.
    [Po Open Quantity;
    Thanks
    Jayant

  • Function module for getting the all PO waiting for release

    Hi,
    Is there any standard Function module for gettting all the PO's which all waiting for release.
    Regards
    Bala.

    hi Bala,
    ECC 6.0 Exits for VA01
    go through the above link i think that will help u...
    Regards,
    sindhu.

  • Function module for getting the text.

    Hi ,
    Is there any funcion module to get the message text if i pass the message no and message class as the exporting parameter.
    Useful answers will be rewarded.
    Regards,
    neslin.

    hi...
    use this one
    BAPI_MESSAGE_GETDETAIL
    ok and following are for display
    LMON_MESSAGE_DISPLAY
    LTIF_MESSAGE_DISPLAY
    reward..points

  • Function module for getting the partner details and Classifications

    Hi,
    Can any one tell me FMs for getting the Partner Details and for getting the characteristics associated with an equipment??
    Thanks

    Hi Anu,
    are you talking about the SAP Business Partner???
    Well, if yes, then just check the FM 'BAPI_BUPA_CENTRAL_GETDETAIL'.
    Or just search for oher FMs with BAPI_BUPA*.
    Hope this helps...
    Ciao Bernhard

  • DDIF Function Module for getting the description of a BAPI structure

    Hi,
    I need to find a function module that returns the description of a structure...well a BAPI structure, not that that makes any difference.
    The DDIF_ function modules I've tried will all return the descriptions of data elements in tables, but not structures.
    Thanks,
    Tristan

    Check FM : CACS_DBNAME2TABNAME

  • Function Module for getting the desired date

    Hi All,
    I need a function module where in get the date value from Current date - 540 days.
    i,e System Date - 540 days = ????
    Thanks
    Suresh

    previous FM works good , this is for ur info , to give in month, date and year instead of onlly days
    CALL FUNCTION 'RP_CALC_DATE_IN_INTERVAL'
        EXPORTING
          date      = sy-datum
          months    = '00'
          days      = '07'
          years     = '00'
          signum    = '-'
        IMPORTING
          calc_date = w_due_date.
    Message was edited by: chandrasekhar jagarlamudi
    Message was edited by: chandrasekhar jagarlamudi

  • Function Module for getting the System time.

    Hello All,
    Which is the Function Module used in APO to get the system time?
    Thanks for your response in advance.
    Regards, Chirag

    Hi Chirag,
    Please try the following function modules
    1) /SAPAPO/CRES_GET_TIMESTREAM_BT
    2) /SAPAPO/OM_TIME_GET
    The field name for system time is UZEIT under
    structure SYST
    Also try
    3) CALENDAR_GET_TIMESTAMP
    4) SAL_CSM_RECEIVER
    I guess the third one will have your required data
    Regards
    R. Senthil Mareeswaran.

  • Function module for getting the created or changed by user

    hi ,
    iam using the t-code ob 52
    inthat iam i not getting the created or changed by user
    so is there any function module which gives created r changed
    by user .
    it shhould take the input as t-code and it has to display
    the created r changed by user ........
    pls help ..........

    In OB52, in menu : Utilities, change log. This use Database log analysis. Try calling transaction [SCU3|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_forums_rm&query=scu3&adv=false&sortby=cm_rnd_rankvalue].
    SCU3 transaction call report [RSTBHIST|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_forums_rm&query=rstbhist&adv=false&sortby=cm_rnd_rankvalue] which call [RSVTPROT|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_forums_rm&query=rsvtprot&adv=false&sortby=cm_rnd_rankvalue]. You may also use FM like [DBLOG_EVAL_CALL_FOR_SEL_OBJECT|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_forums_rm&query=dblog_eval_call_for_sel_object&adv=false&sortby=cm_rnd_rankvalue] or [DBLOG_EVAL_CALL_FOR_SEL_CHAP|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_forums_rm&query=dblog_eval_call_for_sel_chap&adv=false&sortby=cm_rnd_rankvalue], perform some where-used on RSVTPROT.
    Regards

  • Is there any function module to get the data from st06?

    Hi,
    I'm new to this forum.
    I would like to know if there is a way (maybe some function modules) to collect information like system architecture, and databases as displayed in transaction st06?
    I would like to call it from external program in order to view part of the data available in st06.
    Thanks,
    Erez Gordon.

    have a look at function group SMON.
    Not sure if these are remote enabled, otherwise create a wrapper function module (RFC).
    Edited by: Micky Oestreich on Dec 11, 2008 9:37 AM

  • Any Function Module For getting Shipment Details

    Hi All,
    I want to get all details of shipment. i tired , but unable to get any function? I was able to find the creation or change shipment function modules, but not able to find the function module for getting the details for Shipment.
    like BAPI_SHIPMENT_CHANGE           Change Shipment
    BAPI_SHIPMENT_CREATE           Create Shipment
    similary
    Do you have any idea for getting (display)the details of Shipments?
    Regards,
    Raju

    hi,
    you can use
    VTTP,VTTK
    or
    RV_SHIPMENT_READ

Maybe you are looking for

  • I've problems with skillbuilders Modal Page (2.0.0) plugin

    Hi, I'm a newbie on Apex. I'm creating an application with APEX 4.2.1 using the plugin Skillbuilders modal page 2.0 to create/edit the form, but after I submitted all the information on page2, I'm not able to come back to page1 and also it doesn't ap

  • Can't create Source Instance in Configuration manager (BI Apps 11.1.1.7.1)

    Hi While configuration i created one source instance for EBS R12.1.3 but I logged into to ODI client Studio and By mistake i deleted 'Data Server' from Topology which i created during Source Instance Creation/configuration on Configuration Manager(CM

  • Adobe Acrobat 9 causes Windows to crash

    Adobe Acrobat Pro 9 crashes Windows when I try to open multiple PDFs. This does not occur when opening multple PDFs in the Adobe Reader program. Any ideas? Are you only allowed to run on instance of Adobe Pro - I would expect a simple message indicat

  • Plug_in:how to unlock a locked document use acrobat API

    how to unlock a locked document use acrobat API.in acrobat plug_in

  • XML/XSQL Usage

    Hi Can anybody guide me how to install and use XML parsers along with sample code running on Oracle 8i ? Also installed is IIS 4.0, Oracle JDeveloper Suite, and Web-DB. What is the steps to follow and different tools that i will need to fetch data fr