How to call a FM for a BEx Variable

Hi,
   I have created a BEx Variable of type Customer Exit called 'ZCA8764'
   I intend to actually automatically calculate the number of days in the month.
   Through some discussions here, I found that I can use a FM NUMBER_OF_DAYS_PER_MONTH_GET
   So, I went to CMOD.
   But there onwards, I don`t know how to write a code to link the Variable and the FM.
  Can someone please advice with a sample code ?
   Can someone please assist.

CALL FUNCTION  'NUMBER_OF_DAYS_PER_MONTH_GET'
        EXPORTING
              (here u need to pass the values to the FM)
        IMPORTING
              (here u will get the values that the function returns)
e.g.
CALL FUNCTION 'NUMBER_OF_DAYS_PER_MONTH_GET'
        EXPORTING
          day_in            = v_mth_beg
        IMPORTING
          last_day_of_month = v_mth_end.

Similar Messages

  • How to call hr_location_api.create_location for different address style with only those fields that belongs specific to  that address style.

    How to call hr_location_api.create_location for different address style with only those fields that belongs specific to  that address style. It should decide at run time means at run time it will come to know the type of address style and based on that only the fields which belong to address details mapped to calling hr_location_api.create_location.
    Thanks in advance.

    You can create a wrapper package on top of the API (hr_location_api.create_location)
    In the wrapper package you set all the values dynamically based on your requirements(say the style and add_line columns are populated on your conditions) and then you call the API.
    Does that not work ?

  • Need a  code / How  to  call outstanding notification for a loggined user !!

    hi all ,
    Need a  code / How  to  call outstanding notification for a loggined user !!
    i need to create a service  such then when the user logins in he should see the outstanding service..

    Hello Prashanth,
    1) Goto QMEL table read OBJNR of the notification.
    2) Pass the notification number and the language to the function module "STATUS_TEXT_EDIT".
        in the return parameter read the parameter LINE, based on the first four characters you can find out       the status of the notification.
    OSNO - Outstanding notification
    NOPR - Notification in process
    NOCO - Notification completed
    Regards,
    TP

  • How to Call a procedure for UI5 application ?

    Hello experts,
    What are the possible ways to call a procedure from a UI5 application?
    I am trying to call the procedure created in the blog from a ui5 application. I had an idea of calling a procedure from view and generating odata services from views, but this being a read write procedure , not exactly sure if this would work .
    Looking forward for your opinions on this .
    Regards
    Virinchy

    Virinchi,
    Go through the below posts. You can get the source code of how to do it.
    How to call HANA store procedure with table variables in xsjs?
    JSDoc: Class: Connection
    Sreehari

  • How to call same vi for 4 times in a single vi?

    Hi.. I ve one vi named 1D array Mult. I need to call this vi four times in another vi program. The problem i ve experienced is all the four vi outputs are same.
     My question is: How to call the same vi for many number of times?
    Thanks in advance
    Solved!
    Go to Solution.

    There is no problem (programmatically) with calling the same VI by placing it 4 times onto the block diagram.  You do not have to rename them VI1, VI2, VIn if they all do the same thing, as you have done here with 1D-arrayMult...  It's just messy.
    You may need to make re-entrant in certain cases.
    A better way to do it would of course be to use a For loop as shown (I left what you did in tact).
    Are the two formula nodes identical?  I didn't check.  If so, use a for loop there too.  Build your A and B matrices to a 3D array and auto-index in For loop - single instance of your formula node.
    It is quite concerning what you have done in your 1-D Array VI.  I have no idea what it is supposed to be doing, but it appears to be nothing; it is completely wrong.
    There are backwards wires, your While loop does nothing (there is not shift-register) - how will it Stop?!, your cases 0, 1 and 2 are all the same!  Timer of 1000ms??! hmm..
    If you are trying to multiply two matrices (arrays) together then just use the native LV function to do it and to add them at the end try this:
    Hope this helps you!
    Message Edited by battler. on 03-12-2010 03:49 AM

  • How to see pure SQL for a Bex Report

    Hi All,
    I need to do troubleshooting on a report and I need to have the pure SQL code of the Bex report. Is there any easy way to get the SQL code for a bex report?
    I appreciate any help with points,
    Regards,

    Hi Mike.
    Try TA RSRT -> Execute and debug -> Display SQL/BIA query.
    Hope it helps.
    BR
    Stefan

  • Urgent!!! How to give a value to a BEx variable in the planning fuction?

    Hi all,
    does anybody know how can set variable's value in the palnning fuction (type exit) in IP?
    The two function modules in BPS which make this job don't work in the IP.
    thanks very much for any proposal.
    hongwei

    Hi,
    Reg the first part of the question, can you please explain how do you want to capture the variable for the custom planning function? Because, when I look at standard functions delivered by SAP, in the FROM CHANGE and TO CHANGE(for example copy function), we can select the BI variables or create new variables also.
    To pass the values to this variable from BEx Analyzer, we need to use the command range in BEx Analyzer and capture the values.
    I have used this approach to capture the BEx variable values into a FOX function using VARV function, but Im not pretty sure how to pass it to a custom planning function.
    Regarding the second part of the question can you pls look at FM :   RSPLSSE_PLSEQ_EXECUTE. I think you need to embedd your planning function into a sequence and call it with the above FM.
    You can also have a look at the ABAP program that is used to trigger a planning sequence by placing a breakpoint in any of the planning functions : "RSPLS_PLSEQ_EXECUTE" wherein you can pass the sequence name in the variant.
    Rgds
    Shyam

  • How to call custom themes for Web Dynpro ABAP Application?

    Hi,
    I need to change the appearance of Web Dynpro ABAP application. So far I followed below steps,
    1.     Created theme folder u2018testngou2019 (SE80->MIME Repositoty -> SAP->PUBLIC->BC->UR->nw5->themes -> u2018testngou2019 ).
    2.     used program BSP_UPDATE_MIMEREPOS to dowmloaod content of  u2018sap_tradeshowu2019 (SE80->MIME Repositoty -> SAP->PUBLIC->BC->UR->nw5->themes -> sap_tradeshowu2019) to desktop.
    3.     Modified the themes using Eclipse Theme Editor.
    4.     used program BSP_UPDATE_MIMEREPOS to upload modified themes to MIME repository u2018testngou2019  (SE80->MIME Repositoty -> SAP->PUBLIC->BC->UR->nw5->themes ->  u2018testngou2019) .
    My current URL is like http://server.name:XXXX/sap/bc/webdynpro/sap/hrrcf_a_startpage_int_cand?sap-client=XXX.
    Now I want to know how custom themes called for Web Dynpro ABAP Application.
    Is my approach correct?
    ...Naddy

    Hi Naddy,
    What you used is one way and even I failed when tried that method,
    Instead go to SE38 - WD_THEMES - and you need to upload the zip file and you need to follow a folder structure.
    it is case sensitive, atleast the zip file.
    Make a zip file by name "Project.zip" -
    Create a Folder Project and have the below folder structure,
    1  data - all the properties files and also the designinfo file, below is the code
    2  themes - (to get all the files download the theme from portal and you will have all the folders)
       2.1  ur
         2.1.1 name of the theme
           2.1.1.1 common
           2.1.1.2 csf
           2.1.1.3  r
           2.1.1.4  ur - all the css files (would be good if you can get the files from the server.)
           2.1.1.5   WSRP
    3  war - empty folder
    *.designinfo
    isVisible=true
    version=7.0.14.1.0
    isDefault=false
    isSapDesign=false
    designName=**** name of the theme
    Once done create a zip file and click on Start Import and give the path and will ask for transport request, it will take a while to upload once done as mentioned in the use the parameter sap-ep-themeroot="path"
    This will resolve the issue.
    Cheers-
    Pramod
    reward points if helpful

  • How to call CRM BSP for F4 (CRMM_BUPA_SEARCH) from BIW BSP

    Hi,
    we have a BIW BSP showing:
    - query results using a web template and
    - an input field for business partner no (bp) to process.
    Now we would like to call the F4 value help for bp CRMM_BUPA_SEARCH in a popup from the connected CRM system, which is reachable with CRM BSP CRM_BSP_FRAME.
    How can i populate the value selected in the result list of the bp value help in the popup into the the input field in BW BSP?
    Can anyone give some advice?
    Thanks and kind regards,
    Peter

    >I found your blogs, but this seems to be very complicated?!
    Complicated to implement the extension element -> yes unfortunetely that probably is the case.  Hopefully once you have the extension element in your system though, you would find that it is easy to use in applications.
    Any type of highly generic programming (as is necessary to support complex search helps) is going to be somewhat complicated by necessity.  I tried to hide this complexity from the consumer of the element, but someone has to get the element into your system in the first place.
    We are going to ship an enhanced version of the search help on a CD with the upcomming release of the BSP Book for SAP Press.
    <a href="http://www.sap-press.com/product.cfm?account=&product=H1903">Advanced BSP Programming</a>
    We include a transport file if you just want to import it into your system or text files/screen shots if you want to implement it manually.  There are also example and test applications to help you use the extension.

  • How to call mobile numbers for free with subscript...

    My english is not verry good but i hope you can help me
    I have a month free calling:
    Unlimited World 1 month, 100% Discount
    I can cal no mobile numbers, can anyone tell me how i can call for free with mobile numbers?
    Thanks.....

    when i dial from my corporative mobile number  ##1 calls another corporative mobile number of my company like i was calling an usual number, when i dial ##2 it calls another and so. the number of the mobiles are ##X, thats wy i need to dial ##X, but the uc does not allow to me to do that kind of dialing. calls to a regular number it's ok, it's this kind of dialing i can't do.

  • How to call a variant for a transaction

    Is it possible to call a specific variant (say test) for a transaction like MMBE?

    Dear Pinkey,
    You can use transaction SHD0 (Transaction Variant)
    http://help.sap.com/saphelp_webas620/helpdata/en/eb/5fab41d79b11d296190000e82de14a/content.htm
    In the SAP Reference IMG, you can create transaction variants. Choose Basis Components -> Application Personalization -> Tailoring of Application Transactions -> Configure Transaction-Related Display Values for Fields (Transaction SHD0). Transaction variants allow you to preset values for fields in a transaction, set field attributes, or hide entire screens.
    To execute a transaction variant, you define a variant transaction using the Transaction Maintenance transaction (SE93).
    Once you have entered a transaction code and short description, choose transaction type Transaction with variant (Variant transaction).
    To define a variant, enter the name of the transaction and the name of the variant. You can then use the new transaction code to start the special variant of the transaction.
    Hope this will help.
    Regards,
    Naveen.

  • How to call 'GET CURSOR' for another screen?

    Hi Folks,
    I'm displaying a modeless dialog box. It's basically a utility to enter predefined texts such as "Dear SIR," into a table control in the main screen.
    Since this dialog box is modeless, the user can move the cursor on the <b>main</b> screen, after the dialog has been opened.
    When user clicks "Add text" button, the dialog box is calling a callback form which notifies the main program & screen that new text should be inserted, but <u>where</u> should the new text go? We need the new cursor position after it was changed by the user!
    When calling 'GET CURSOR' in the callback form, the result is failure. Also sy-curow sy-cucol are equal to 0.
    Any ideas?

    Hi Ofer,
    In your scenario, is it possible for you to use a modal dialog box?  Using a modeless dialog box is not generally preferred, because it makes things a little confusing to the user. Also it is somewhat a little more complicated for the developer for precisely the same problems that you are facing.
    Regards,
    Anand Mandalika.

  • How to call infopackage bapis for other system?

    Hi Experts,
    I want to start infopackage of CRM from BW using BAPI. I do not see any place to mention the target system (here CRM) where infp package should be started?
    Thanks in advance,
    Purvang

    Hi
    You  can create program and call this BAPI
    BAPI_IPAK_START
    using follwoing statment
    CALL FUNCTION 'BAPI_IPAK_START' DESTINATION 'CRMCLNT400'
      EXPORTING
        INFOPACKAGE       =
    *   JOBNAME           =
    * IMPORTING
    *   REQUESTID         =
      TABLES
        RETURN            =          .
    where 'CRMCLNT400' is the target system.
    In case, if you are not required to use this frequent , then you can run this BAPI in se37-> Execute
    then specify the target system in field  RFC target sys:
    Hope this helps...
    Sonal....
    Edited by: Sonal Patel on Dec 31, 2009 2:31 PM

  • How to call a report with a bind variable from a multi-record block

    Hi,
    I have created a report using the BI Publisher functionality. I did all the integration, created the SQL Query and uploaded the template. Up till here everythings fine!
    My SQL Query has 2 bind variables.
    I will call my report from a multi record block, at the end of each record an icon is shown which the user can click to open the report.
    I created a column link for this item (PRINT_REPORT=Inschrijvingsformulier) but I do not manage to pass the parameters to my report. The parameters I want to pass are 2 columns in this Multi Record block.
    I created 2 hidden fields on the page P9_PARAMETER1, P9_PARAMETER2 with the same names as my bind variables and fill this in with the values #PARAMETER1#, #PARAMETER2# from the multi record block.
    It seems it does not work as my report stays empty. (also XML file stays empty).
    Am I trying the wrong way?
    Thanks for any advice,
    Kris

    hi khadeer,
         create one report program and write the required code,and call this function module 'SSF_FUNCTION_MODULE_NAME' and give your smartform name  and also when u activate ur smart form u will get one function module call that function module also and specify any tables used...
    i think this solves ur problem...
    any queries revert back..
    pls reward points if helpful,
    shylaja

  • How to get Multiple Values for a single Variable in BPS.......

    Hi Gurus:
    I have a layout for planning, where I can plan for 5 days of the week. I also have a day column (yesterday) where I have the actual values. Users want to edit/foecast the next 5 days values. I am using a Variable to get the Date column which uses the System Date. However, since I am getting just one date in the Function Module (Code given below), the remaining days are greyed out and I can not enter the forecast values. I would like the same variable to get a series of dates in the same function module. What changes do I nee dto make in the ABAP code so that the remaining columns (Date) becaoe available for editing??
    The FM code I have to get "Today's Date" is as follows:
    FUNCTION ZCSHFL_GET_TODAY.
    ""Local Interface:
    *" IMPORTING
    *" REFERENCE(I_AREA) TYPE UPC_VAR-AREA
    *" REFERENCE(I_VARIABLE) TYPE UPC_Y_VARIABLE
    *" REFERENCE(I_CHANM) TYPE UPC_Y_CHANM
    *" REFERENCE(ITO_CHANM) TYPE UPC_YTO_CHA
    *" EXPORTING
    *" REFERENCE(ETO_CHARSEL) TYPE UPC_YTO_CHARSEL
    data: ls_charsel type upc_ys_charsel.
    ls_charsel-seqno = 1.
    ls_charsel-sign = 'I'.
    ls_charsel-opt = 'EQ'.
    ls_charsel-CHANM = I_chanm.
    ls_charsel-low = sy-datum.
    insert ls_Charsel into table eto_charsel.
    ENDFUNCTION.
    I want to get the Yestarday's Date as weel as dates for next 4 days from Today for this variable which are being used in the layout. Can anyone suggest the code tor this please.
    Thanks very much in advance......
    Best.... ShruMaa

    Hi,
    What I understand you need to return those dates from function module using parameter ETO_CHARSEL , right? If so just use this code:
    ls_charsel-seqno = 1.
    ls_charsel-sign = 'I'.
    ls_charsel-opt = 'BT'.  "we are giving ranges, so days between...
    ls_charsel-CHANM = I_chanm.
    ls_charsel-low = sy-datum - 1.  "...first day is yesterday
    ls_charsel-high = sy-datum + 4. "...and last day is 4 days from today
    insert ls_Charsel into table eto_charsel.
    This way you provide 5 days starting from yesterday till 4 days from today.
    Regards
    Marcin

Maybe you are looking for

  • How to identify toll free numbers in CUCM

    Hi  I am new to this Cisco VOIP system. My Company has many toll free numbers. I need to know where can I find the toll free number details. I had a request today to alter few settings in them. But I dont know what to do and where to do.  Eg : 800326

  • Why is the system proxy refusing connection?

    I'm currently using Firefox 3.6. I usually connect to the internet through the system proxy, but for the past two weeks I have not been able to. The proxy works for every other computer connected to this network, just not mine. I can still connect if

  • Back to back printing in smartform

    Hi All, I have a smartform with only one page and i need to print back to back. When i set the printmode as D, it prints the first page only on the front and the next pages are printed back to back. Is it possible to print all the pages back to back

  • What is the best manual for imovie 10.0.6?

    what is the best manual for imovie 10.0.6?

  • Oracle Apps 11i Performance Benchmarks

    Hi, Does anyone knows where to obtain the benchmarks. What is the normal time to load apps, sign in, open forms etc.. thanks, Sam