Calling IP function in ABAP report

Hi guys,
I would like to execute a planning function of BIIP from an ABAP report. Which function module has to be used or is there a different approach? For the old BPS planning function there was the API_SEM_BPS....
Regards
Stefan

Hi Stefan,
I think there is no way to call a planning function of IP in a report. But we can call planning sequences using the program
RSPLS_PLSEQ_EXECUTE.
In your case, you can create a planning sequence which contains the planning function and filter, and in your ABAP report, call the program RSPLS_PLSEQ_EXECUTE using the statement SUBMIT.
Also, you can use the statement SUBMIT VIA SELECTION-SCREEN which will prompt you to give the Planning Sequence name at run-time of the execution of the ABAP report.
Hope this helps.
Please revert if unresolved.
Regards,
Srinivas Kamireddy.

Similar Messages

  • IP - Is it possible to call exit planning function from ABAP Report..

    Hi All,
    Greetings.
    Is it possible to call exit planning function from ABAP Report (t-code SE38) ? Or I mean is not limited only to be called from ABAP Report, perhaps from BSP / Web-Dynpro / Function Module.
    If somebody here has been doing it before, I'm keen to ask to kindly share it. Particularly how to call and transfer data to that exit function.
    Or if somebody has done in BPS, appreciate if it can be shared too .
    Thanks a lot and have a good day,
    Best regards,
    Daniel N.

    Hi.
    You can achive this as suggested by Mattias in your previous post.
    Lets say you have next data structure:
    CostCenter | Amount | PercentForDistibution |
    Create input ready query in this format. Restrict cost center by variable type range.
    Create WAD with analysis item.
    When you run web page you enter range of cost centers (lets say you will enter 101004 to 101010).
    I assume you have data only for 101004 in your cube (lets say 1000).
    You will see only one record in your webpage.
    CostCenter | Amount | PercentForDistibution |
    101004       | 1000     | NOTHING
    When you create WAD in analysis item properties set "NUMBER_OF_NEW_LINES" to lets say 1 (so in WAD you will see always one blank line for entering new data).
    Just add 6 new records:
    CostCenter | Amount   | PercentForDistibution |
    101005       | NOTHING| 10
    101006       | NOTHING| 30
    101007       | NOTHING| 20
    101008       | NOTHING| 25
    101009       | NOTHING| 5
    101010       | NOTHING| 10
    Then run planning FOX function like this:
    FOREACH Z_COST_CENTER.
    IF {Amount, Z_COST_CENTER} <> 0
    Z_AMNT_TO_DISTRIBUTE = {Amount, Z_COST_CENTER}.
    ENDIF.
    ENDFOR.
    FOREACH Z_COST_CENTER.
    IF {PercentForDistibution Z_COST_CENTER} <> 0.
    {Amount, Z_COST_CENTER} = Z_AMNT_TO_DISTRIBUTE * {PercentForDistibution Z_COST_CENTER}.
    ENDIF.
    ENDFOR.
    It is not perfect FOX, but as an idead, it should work.
    Regards.

  • JCo Outbound( calling Java Function from ABAP )

    HI,
    I want to call a JAVA function from ABAP.I have installed the JCo toolkit and included the sapjco.jar file in the classpath of my system.
    When i execute the program(Example5.java,provided with sapjco.zip) from the command prompt,it is working fine,the server listens to the calls made from ABAP via RFC destination.
    But if i copy the same program in NWDS in a JAVA project,to run it from there as JAVA application,after including the sapjco.jar file in the project JAVA build path,i get the following error,marked by a red cross ,at the head of the program,even before i run it.
    <b>This compilation unit indirectly references the missing type com.sap.jdsr.writer.DsrIPassport (typically some required class file is referencing a type outside the classpath)</b>
    What changes do i need to make,to run it from NWDS?
    I tried to include the sapjcorfc.dll file along with the sapjco.jar in the java build path,but it doesn't help.
    Please tell how to solve this issue?
    Regards,
    Siddhartha

    hello sid,
    which jco version are you using?
    are you using the same jco lib when running in command
    line and in nwds?
    if you are, try checking the order of the your classpath.
    your jco lib (which you are using in command line) should
    come first in order prior to the default libraries in your project.
    regards
    jo

  • Calling a proxy from ABAP Report

    Hi All,
    Can any one gimme some idea about calling a XI proxy from ABAP Report.
    I need to gather data in my internal table and after that i need to trigger a proxy which is going to do a outbound processing.
    Thanks in advance.
    Tnx,
    Joe.

    Hi Meetjoe,
      We have to design the required interface in PI ,that is used to hold the report data when tigerred a proxy and generate the proxy based on the interface if the Proxy is based on the Outbound side its called client proxy  or if the proxy is genereated on Inbound interface we call it server proxy.
    need to gather data in my internal table and after that i need to trigger a proxy which is going to do a outbound processing.
      In your case its gonna be the client proxy refer the follwing links for your better understanding
    For concepts on Proxies:
    http://help.sap.com/saphelp_nw04/helpdata/en/02/265c3cf311070ae10000000a114084/content.htm
    To enable Proxy connections:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50d69314-1be0-2b10-11ab-8045021f0c3a
    Smaple scenarios on Proxy:
    Proxysettings /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    ABAP Server Proxy /people/siva.maranani/blog/2005/04/03/abap-server-proxies 
    ABAP Client Proxy /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy 
    Thanks,
    Ram.

  • Problem in calling Client proxy using ABAP Report

    All Your inputs and various threads were really helpful . i have followed this blog as well /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
    Now after all while trying to pass values to proxy i have an issue : in the above blog there is a small pinch of code for referencing the proxy through an abap report.
    i.e. &----
    *& Report  ZBLOG_ABAP_PROXY
    REPORT  zblog_abap_proxy.
    DATA prxy TYPE REF TO zblogco_proxy_interface_ob.
    CREATE OBJECT prxy.
    DATA it TYPE  zblogemp_profile_msg.
    TRY.
        it-emp_profile_msg-emp_name = 'Sravya'.
        it-emp_profile_msg-empno = '80101'.
        it-emp_profile_msg-DEPARTMENT_NAME = 'NetWeaver'.
    now instead of the DT being in this way : i.e. :
    EMPProfile_MSG       OCCURENCE
      EmpNo                 1
      EmpName               1
      DeptName              1
    Instead if the DT / MT for which the proxy is generated is in this format for table data input then whats the way ?
    EMPProfile_MSG       OCCURENCE
    .....Item            0..Unbounded
    ...........A              1
    ...........B              1
    ...........C              1
    ...........D              1
    Please advice,
    Krishna

    Hi,
    Did you create a Data type,message type and Message interface and generated the proxy in trnx SPROXY?
    If so, then a class gets created like ZCO...........
    under which, structure gets created as you did in IR of XI.
    Need to implement a BADI and Ztable on the Abap stack.So you get the values dynamically to your proxy.
    For each change in your emp details,there will be a record in Ztable.
    Hope you understand this.
    Regards,
    Joslyn

  • Call .html file in ABAP report (se38)

    Hi,
    My question is, is it possible to call and execute an html file in a report?
    For example, you have 2 containers in the report, 1 is for the html part and the 2nd for some ALV table (which is not the problem in this discussion).
    The HTML part is a separate .html file on the server which works with a few .js files called in it.
    I've done some research but couldn't find anywhere how read the HTML file in a report, and to work just like it does in a browser.
    All I found was how to create a javascript from a report (only some simple examples like show a string..), or how to create an HTML file from a report and execute it in se38, but instead I need to know how to read an HTML in the report and place it in a container (which is a little more complex because of all the javascripts that it calls within).
    Can anybody help me with this?
    Thanks!

    I saw this program but I couldn't figure out where is this called from: document_url      = 'HTMLFrame1.htm' on line 100.
    To be more precise i need to call this HTML file which is on the server, and i need it to be executed in the container of the report, alongside with the javascript files it calls within:
    <!doctype html>
    <html>
    <head>
        <title>Essential Studio for JavaScript : Radial Gauge - Default</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0" charset="utf-8">
        <link href="bootstrap.min.css" rel="stylesheet">
        <link href="ej.widgets.all.min.css" rel="stylesheet" />
        <link href="default.css" rel="stylesheet" />
        <link href="default-responsive.css" rel="stylesheet" />
        <script src="jquery-1.10.2.min.js" type="text/javascript"></script>
        <script src="jquery.easing.1.3.min.js" type="text/javascript"></script>
        <script src="excanvas.min.js" type="text/javascript"></script>
        <script src="ej.web.all.min.js" type="text/javascript"></script>
        <script src="properties.js" type="text/javascript"></script>
    </head>
    <body>
        <div class="content-container-fluid">
            <div class="row">
                <div class="cols-sample-area" align="center">
                    <div id="circularframe">
                        <div id="CoreCircularGauge">TEXT
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script type="text/javascript">
            $(function () {
                $("#CoreCircularGauge").ejCircularGauge({
                    backgroundColor: "transparent", width: 500, load: "loadGaugeTheme",
                    scales: [{
                        showRanges: true,
                        startAngle: 122, sweepAngle: 296, radius: 130, showScaleBar: true, size: 1, maximum: 120, majorIntervalValue: 20, minorIntervalValue: 10,
                        border: {
                            width: 0.5,
                        pointers: [{
                            value: 100,
                            showBackNeedle: true,
                            backNeedleLength: 20,
                            length: 95,
                            width: 7,
                            pointerCap: { radius: 12 }
                        ticks: [{
                            type: "major",
                            distanceFromScale: 2,
                            height: 16,
                            width: 1, color: "#8c8c8c"
                        }, { type: "minor", height: 8, width: 1, distanceFromScale: 2, color: "#8c8c8c" }],
                        labels: [{
                            color: "#8c8c8c"
                        ranges: [{
                            distanceFromScale: -30,
                            startValue: 0,
                            endValue: 70
                            distanceFromScale: -30,
                            startValue: 70,
                            endValue: 110,
                            backgroundColor: "#fc0606",
                            border: { color: "#fc0606" }
                            distanceFromScale: -30,
                            startValue: 110,
                            endValue: 120,
                            backgroundColor: "#f5b43f",
                            border: { color: "#f5b43f" }
        </script>
    </body>
    </html>

  • Call to function from ABAP WebDynpro.

    Hello,
    I am trying to call  function module from WD ABAP. the function is calling to a sap transaction (IW22) with parameter.
    My code is:
    CALL FUNCTION 'ZPM_TEST'
    EXPORTING
       IQM           = '1000000531'
    The function ZPM_TEST is using '1000000531' as a parameter to the transaction.
    But when I  am executing my application  i am getting the following error:
    "Screen output without connection to user"
    Thanks.
    Regards,
    Shimon.

    You can not call a transaction from Web Dynpro.  Anything that invokes the SAPGUI can't work from within Web Dynpro.  Consider instead building a URL to the SAPGUI for HTML or if you are in the Portal or NWBC performing such navigation using the Object Based Navigation Portal APIs.

  • How to call C++ function in Crystal report

    Hi,
    i am working on serious issue now, i need some help, Could you please tell me how can i call my C++ method in crystal report designer (may be formula editor), i can see only this support VB and Crystal basic.
    Regards,
    Prabhakar J.

    Hi Prabhakar,
    The name of the UFL dll must begin with U2L. Rename your and if it's compile properly CR should find it when loading all of it's dependencies.
    Check the developers help file and search for Custom User Function Library.
    I should also mention that UFL's only support MBCS string formats so if you define them they must be defined this way or CR will have problems passing them from/to your UFL. CR uses UNICODE format internally but the UFL bridge will thunk them to MBCS format on the way out and expect that format on the way in. There is a possibility of data loss in the conversion routines.
    Thank you
    Don
    Edited by: Don Williams on Jun 12, 2009 11:24 AM

  • Help regarding calling BRFPLUS function through ABAP code

    Hi,
          I have  a situation where I have to input  data into a BRFPLUS function  as a table (i.e the data is input as select options where list or range of data can be provided).The corresponding output is also in the form a table .I've created this function in BRFPLUS and is working fine .Now I have to call it through ABAP code.Can someone kindly  provide me with the probable code for this scenario.
    E.g:
            ZT_MATNR  is the table in brfplus representing the list of MATNR values input along with other such inputs to function module Z_FM
            ZT_ATM   is the  resultant output table  of the function  which contains several fields.
    Now I have to call this BRFPLUS function with help of ABAP code.Could someone kindly help.

    Hello ,
    There should be a number of BRF+ tutorials available in SCN which discuss the FDT APIs. You can have a look at them to get an idea of the various APIs available and their uses.
    For your usecase, you should do the following.
            lo_fdt_function         TYPE REF TO if_fdt_function,
            lo_fdt_result           TYPE REF TO if_fdt_result,
    * Get function handle
          CALL METHOD lo_fdt_factory->get_function
            EXPORTING
              iv_id       = lv_function_id
            RECEIVING
              ro_function = lo_fdt_function.
    where lv_function_id is the GUID of the BRF+ function . You can either make it a constant , or you can use a FDT API to get the function GUID from the BRF+ application name and function name.
    *   Set function context
        TRY.
            CALL METHOD lo_fdt_context->set_value
              EXPORTING
                iv_id    =
                ia_value =
    This is one way to set the input context ( pass the input to the BRF+ function to process ). There are other ways to do this as well. Which one you use would depend on the kind of input you want to pass.
    * Execute BRFPLUS function
      TRY.
          CALL METHOD lo_fdt_function->process
            EXPORTING
              io_context = lo_fdt_context
            IMPORTING
              eo_result  = lo_fdt_result.
    * Get result output
      TRY.
          CALL METHOD lo_fdt_result->get_value
            IMPORTING
              ea_value =
    Another direct way of doing it would be to use the method PROCESS of the class CL_FDT_FUNCTION_PROCESS.
    I have not gone into much explaination here , but it should provide you an idea of how you can go about it.Read the SCN docs on the APIs to get a better idea , or better still if you can get hold of a copy of the BRF+ book by Carsten Ziegler , you will get an end to end explaination of all BRF+ APIs in it.
    Regards,
    Indranil.

  • Calling a function in a report

    The following query brings in the calender month in a year but i want to get the fiscal year from the table.
    And to get the fiscal year from the table i created a function check_trans_date and tried calling the same in the query but while compling it is assuming that the function is a column from the table and gives a message ORA-00904 invalid column name. In order to eliminate this error i created the function in the database and then tried to compile the query then it gives me a different message -- not a group by function.
    Can anyone shed a light on this.
    QUERY :::
    select
    msi.segment1
    ,hla.location_code
    ,'Month'
    , decode(check_trans_date(trunc(mmt.transaction_date), 1), 'Y', decode(sign(sum(mmt.transaction_quantity)), -1, sum(mmt.transaction_quantity) * -1, sum(mmt.transaction_quantity)), 'N', 0, 0) "Month1"
    , decode(check_trans_date(trunc(mmt.transaction_date), 2), 'Y', decode(sign(sum(mmt.transaction_quantity)), -1, sum(mmt.transaction_quantity) * -1, sum(mmt.transaction_quantity)), 'N', 0, 0) "Month2"
    , decode(check_trans_date(trunc(mmt.transaction_date), 3), 'Y', decode(sign(sum(mmt.transaction_quantity)), -1, sum(mmt.transaction_quantity) * -1, sum(mmt.transaction_quantity)), 'N', 0, 0) "Month3"
    , decode(check_trans_date(trunc(mmt.transaction_date), 4), 'Y', decode(sign(sum(mmt.transaction_quantity)), -1, sum(mmt.transaction_quantity) * -1, sum(mmt.transaction_quantity)), 'N', 0, 0) "Month4"
    , decode(check_trans_date(trunc(mmt.transaction_date), 5), 'Y', decode(sign(sum(mmt.transaction_quantity)), -1, sum(mmt.transaction_quantity) * -1, sum(mmt.transaction_quantity)), 'N', 0, 0) "Month5"
    , decode(check_trans_date(trunc(mmt.transaction_date), 6), 'Y', decode(sign(sum(mmt.transaction_quantity)), -1, sum(mmt.transaction_quantity) * -1, sum(mmt.transaction_quantity)), 'N', 0, 0) "Month6"
    , decode(check_trans_date(trunc(mmt.transaction_date), 7), 'Y', decode(sign(sum(mmt.transaction_quantity)), -1, sum(mmt.transaction_quantity) * -1, sum(mmt.transaction_quantity)), 'N', 0, 0) "Month7"
    , decode(check_trans_date(trunc(mmt.transaction_date), 8), 'Y', decode(sign(sum(mmt.transaction_quantity)), -1, sum(mmt.transaction_quantity) * -1, sum(mmt.transaction_quantity)), 'N', 0, 0) "Month8"
    , decode(check_trans_date(trunc(mmt.transaction_date), 9), 'Y', decode(sign(sum(mmt.transaction_quantity)), -1, sum(mmt.transaction_quantity) * -1, sum(mmt.transaction_quantity)), 'N', 0, 0) "Month9"
    , decode(check_trans_date(trunc(mmt.transaction_date), 10), 'Y', decode(sign(sum(mmt.transaction_quantity)), -1, sum(mmt.transaction_quantity) * -1, sum(mmt.transaction_quantity)), 'N', 0, 0) "Month10"
    , decode(check_trans_date(trunc(mmt.transaction_date), 11), 'Y', decode(sign(sum(mmt.transaction_quantity)), -1, sum(mmt.transaction_quantity) * -1, sum(mmt.transaction_quantity)), 'N', 0, 0) "Month11"
    , decode(check_trans_date(trunc(mmt.transaction_date), 12), 'Y', decode(sign(sum(mmt.transaction_quantity)), -1, sum(mmt.transaction_quantity) * -1, sum(mmt.transaction_quantity)), 'N', 0, 0) "Month12"
    from inv.mtl_material_transactions mmt
    ,inv.mtl_txn_request_headers mtrh
    ,inv.mtl_system_items_b msi
    ,apps.hr_locations_v hla
    where
    mtrh.ship_to_location_id = hla.ship_to_location_id(+)
    and mtrh.ship_to_location_id is not null
    and mtrh.header_id = mmt.transaction_source_id
    and mmt.transaction_date BETWEEN :CP_month1_start and :CP_month12_end
    and mmt.transaction_type_id = 63
    and mmt.transaction_source_type_id = 4
    and mmt.organization_id = msi.organization_id
    and msi.segment1 between nvl(:P_Inventory_item_id_low, msi.segment1) and nvl(:P_Inventory_item_id_high,msi.segment1)
    and mmt.inventory_item_id = msi.inventory_item_id
    and msi.organization_id = :p_org_id
    group by
    msi.segment1
    ,hla.location_code
    ,to_date(to_char(mmt.transaction_date,'MON/YY'),'MON/YY')

    Check your code,
    decode(check_trans_date(trunc(mmt.transaction_date), 1), 'Y', decode(sign(sum(mmt.transaction_quantity)), -1, sum(mmt.transaction_quantity) * -1,
    sum(mmt.transaction_quantity)), 'N', 0, 0) "Month1"
    You are using the SUM() function twice in each line. This query is not valid without Group By Clause.
    Explain more about what you are trying to achieve.

  • Call program screen in ABAP Report

    I have a execute program which match to a transaction, in the program, which will generate a selection screen and do selection. After that, the program will call another program screen to do somethings, i want to know can i call program's screen in my execute report, thanks

    Hi
    To Call the Transaction :
      CALL TRANSACTION '<TCODE>' AND SKIP FIRST SCREEN.
    To call a Report :
      SUBMIT <REPORT> USING SELECTION-SCREEN <NO>.
    <b>Reward if Helpful</b>

  • Call transaction from the ABAP report

    Hi Gurus,
    Please help me with suggestion. I would like to access from SAP report with double click transaction FB03. I can access it, but in old transaction view ... How can I get the new transaction view?
    Here is the code,
    BR
    Saso
    IF fieldname CS 'BELNR'.
      PERFORM bdc_screen USING 'SAPMF05L' '100'.
          PERFORM bdc_field USING 'RF05L-BELNR' fieldvalue.
          PERFORM bdc_field USING 'RF05L-BUKRS' '0008'.
          PERFORM bdc_field USING 'RF05L-GJAHR' int-gjahr.
          PERFORM bdc_field  USING 'BDC_OKCODE' '/00'.
          CALL TRANSACTION 'FB03' USING bdc_data MODE 'E'.
          REFRESH bdc_data.
    ENDIF

    Try this Example:
    REPORT  ZABHI_TABSTRIP NO STANDARD PAGE HEADING
                 LINE-SIZE 80 LINE-COUNT 60.
    TABLES : sscrfields.
    DATA  activetab(6) TYPE c .
    DATA  mat_des TYPE makt-maktx.
    DATA  pl_des  TYPE t001w-name1 .
    DATA  mat_gro  TYPE mara-mbrsh .
    DATA  mat_typ  TYPE mara-mtart .
    SELECTION-SCREEN BEGIN OF SCREEN 001 AS SUBSCREEN NO INTERVALS.
    SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME TITLE text-002 NO INTERVALS.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 14(18) text-010 FOR FIELD matnr.
    PARAMETERS matnr TYPE mara-matnr.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK block1.
    SELECTION-SCREEN END OF SCREEN 001.
    SELECTION-SCREEN BEGIN OF SCREEN 002 AS SUBSCREEN NO INTERVALS.
    SELECTION-SCREEN BEGIN OF BLOCK block2 WITH FRAME TITLE text-003 NO INTERVALS.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 14(18) text-020 FOR FIELD matnr.
    PARAMETERS werks TYPE t001w-werks.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK block2.
    SELECTION-SCREEN END OF SCREEN 002.
    SELECTION-SCREEN BEGIN OF SCREEN 003 AS SUBSCREEN NO INTERVALS.
    SELECTION-SCREEN BEGIN OF BLOCK block3 WITH FRAME TITLE text-004 NO INTERVALS.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 14(18) text-030 FOR FIELD matnr.
    PARAMETERS mbrsh TYPE mara-mbrsh.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK block3.
    SELECTION-SCREEN END OF SCREEN 003.
    SELECTION-SCREEN BEGIN OF SCREEN 004 AS SUBSCREEN NO INTERVALS.
    SELECTION-SCREEN BEGIN OF BLOCK block4 WITH FRAME TITLE text-005 NO INTERVALS.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 14(18) text-005 FOR FIELD matnr.
    PARAMETERS mtart TYPE mara-mtart.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK block4.
    SELECTION-SCREEN END OF SCREEN 004.
    SELECTION-SCREEN BEGIN OF TABBED BLOCK tabb1 FOR 5 LINES NO INTERVALS.
    SELECTION-SCREEN TAB (15) tabs1 USER-COMMAND ucomm1
                                        DEFAULT SCREEN 002.
    SELECTION-SCREEN TAB (15) tabs2 USER-COMMAND ucomm2 .
    SELECTION-SCREEN TAB (15) tabs3 USER-COMMAND ucomm3.
    SELECTION-SCREEN TAB (15) tabs4 USER-COMMAND ucomm4.
    *                     DEFAULT SCREEN 002   .
    SELECTION-SCREEN END OF BLOCK tabb1.
    INITIALIZATION.
       tabs1 = text-002.
       tabs2 = text-003.
       tabs3 = text-004.
       tabs4 = text-005.
       activetab = 'TABS1'.
    AT SELECTION-SCREEN .
       CASE sscrfields-ucomm.
         WHEN 'UCOMM1'.
           tabb1-prog = sy-repid.
           tabb1-dynnr   = 001.
           tabb1-activetab = 'TABS1'.
           activetab = 'TABS1' .
         WHEN 'UCOMM2'.
           tabb1-prog = sy-repid.
           tabb1-dynnr   = 002.
           tabb1-activetab = 'TABS2'.
           activetab = 'TABS2'.
            WHEN 'UCOMM3'.
           tabb1-prog = sy-repid.
           tabb1-dynnr   = 003.
           tabb1-activetab = 'TABS3'.
           activetab = 'TABS3'.
            WHEN 'UCOMM4'.
           tabb1-prog = sy-repid.
           tabb1-dynnr   = 004.
           tabb1-activetab = 'TABS4'.
           activetab = 'TABS4'.
       ENDCASE.
    START-OF-SELECTION.
       CASE activetab.
         WHEN 'TABS1'.
           SELECT SINGLE maktx  FROM makt INTO pl_des WHERE matnr = matnr.
           WRITE: 'Material ' , matnr , mat_des .
           WHEN 'TABS2'.
           SELECT SINGLE name1  FROM t001w INTO pl_des WHERE werks = werks.
           WRITE: 'Plant ' , werks ,pl_des.
         WHEN 'TABS3'.
           SELECT SINGLE mbrsh  FROM mara INTO mat_gro WHERE mbrsh = mbrsh.
           WRITE: 'Material Group ' , mbrsh ,mat_gro.
           WHEN 'TABS4'.
           SELECT SINGLE mtart  FROM mara INTO  mat_typ WHERE mtart = mtart.
           WRITE: 'Material Type ' , mtart , mat_typ.
           ENDCASE.
    And let me know.

  • Call print function from ABAP/BSP

    Hi all,
    I've an holiday map that is called from portal as a bsp, it open in a new window without the functions "file", etc.. an window only with the top bar (minimize, maximize and close), then, if I press CTRL-P it opens print functionality, how can I call it from a buttom in the BSP !?!?
    Thanks all for the help,
    Best Regards,
    Pedro Rodrigues.

    Hello Pedro,
    the problem here is, that the Internet Explorer provides this image with a given size for the Windows Pinting environment. The easiest way to go is surely to have image wich can fit on the paper, or many printers support "scaling". You should find this on the print dialog >> preferences >> paper / quality >> advanced. /* E.g. oure HPLJ 4050 printer supports this */
    I hope it helps.
    Regards,
    Dezso

  • ORA-06502 when trying to call a function inside my report

    Hi guys,
    I have the following code in a function to get my open bal for a field in my report but I am getting ORA-06502 every time I try to run it.
    Does any one have any idea as why?
    ================================
    function CF_OPNE_BALFormula return Number is
    v_bal number;
    v_period char;
    v_prv_period char;
    BEGIN
    v_period := to_char(last_day(:p_date_From),'RRRRMM');
    if substr(v_period,5,2) = '01' then
    v_prv_period := to_char(to_number(substr(v_period,1,4))-1) ||'13';
    else
    v_prv_period := to_char(to_number(to_char(:p_date_From,'YYYYMM')-1));
    end if;
    v_bal := csh_acc_pkg.csh_get_acc_bal(:p_own_id,:P_GLA_acc_num,v_prv_period,'F','ACC');
    return(v_bal);
    EXCEPTION
    WHEN NO_DATA_FOUND THEN NULL;
    END;
    ====================================================
    Thanks
    Hali

    Try using varchar2 with length specified instead of char in the variable declarations.

  • Calling custom Infotype method from ABAP report

    Hi Experts,
    I am working on an application where i need to call a method of a custom defined infotype.
    I have done this -->
    1. Create a custom infotype 9111
    2. SAP creates a class of that infotype ZCL_HRPA_INFOTYPE_9111
    3. Inside this method there are few inherited method which provide me functionality of insert , update , delete
    i want to call methods IF_HRPA_INFTY_BL~MODIFY,
    IF_HRPA_INFTY_BL~INSERT
    However when i call these method from abap report this method does not work.
    where as when i try to insert an entry using PA30 transaction it works.
    Does anyone know why does this happen and what is the solution?
    Regards,
    Ashish Shah

    Hi,
    This is the code we are using. Just calling the read and modify methods of the check class. Very simple actually .. we just want once update/insert to work but it does not.
    <CODE>
    REPORT  ZTESTRAD_WD.
    FIELD-SYMBOLS <p9106> TYPE p9106.
    DATA : infty_container_tab TYPE hrpad_infty_container_tab ,
           message_list        TYPE REF TO cl_hrpa_message_list,
         w_ok type boole_d  ,
         ref_class TYPE REF TO ZCL_HRPA_INFOTYPE_9106,
         container        TYPE REF TO if_hrpa_infty_container,
         it9106_container TYPE REF TO cl_hrpa_infotype_container,
         p9106_ref        TYPE REF TO data,
        busilog type ref to if_hrpa_masterdata_bl.
    CREATE OBJECT  message_list.
    TRY.
            CREATE OBJECT ref_class
              EXPORTING
                tclas = 'A'
                infty = '9106'.
          CATCH cx_hrpa_violated_assertion .
            write :/ 'Error during initialization'.
      ENDTRY.
    call method cl_hrpa_masterdata_bl=>get_instance
       importing
         masterdata_bl = busilog.
    TRY.
    CALL METHOD ref_class->IF_HRPA_INFTY_BL~read
      EXPORTING
        tclas           = 'A'
        pernr           = 'XXXXXXXX'
        infty           = '9106'
        begda           = sy-datum
        endda           = sy-datum
        no_auth_check   = abap_true
        message_handler = message_list
      IMPORTING
        container_tab   = infty_container_tab
        is_ok           = w_ok.
    CATCH cx_hrpa_violated_assertion .
       WRITE :/ 'Infotype could not be read'.
    ENDTRY.
    *" Fill the local structure with container data:
      loop at infty_container_tab into container.
        it9106_container ?= container.
        TRY.
        CALL METHOD it9106_container->primary_record_ref
          IMPORTING
            pnnnn_ref =  p9106_ref.
         CATCH cx_hrpa_violated_assertion .
        ENDTRY.
        ASSIGN p9106_ref->* to <p9106>.
        write :/ <p9106> .
      endloop.
    *" Just change some field values of the record
      <p9106>-C1name2 = 'Test name'.
      <p9106>-C2name2 = 'Test name 2 3 4'.
    data : return TYPE BAPIRETURN1,
           return1 TYPE BAPIRETURN1.
    *CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
    EXPORTING
       number        = <p9106>-pernr
    IMPORTING
      RETURN        = return1
    *PERFORM do_nothing(sapfp50p).
    The container itself is modified
      container ?= it9106_container->modify_primary_record( <p9106> ).
    CREATE OBJECT message_list.
    the invocation - errors are always fatal !!!
      DATA : lx_exception  TYPE REF TO cx_root,
             update_mode type HRPAD_UPDATE_MODE,
             massn type massn,
             massg type massg.
      TRY.
          CALL METHOD ref_class->IF_HRPA_INFTY_BL~MODIFY(
            EXPORTING
               old_container =                   it9106_container
               massn                          = massn
               massg                         = massg
               update_mode =                 update_mode
               no_auth_check =                   'X'
               message_handler =                 message_list
            IMPORTING
               is_ok =                           w_ok
            CHANGING
               container =                       container
        CATCH cx_hrpa_violated_assertion INTO lx_exception.
          RAISE EXCEPTION TYPE cx_wd_no_handler
            EXPORTING previous = lx_exception.
      ENDTRY.
    </CODE>
    I have also tried by instantiating the cl_hrpa_masterdata_bl and then calling the methods on that object...... makes no difference.
    I used this link to proceed with the modifications:
    http://help.sap.com/saphelp_erp2005/helpdata/en/43/21d2254bba2bebe10000000a1553f7/frameset.htm
    The funny thing is that the WHOLE logic executes without any error messages or dumps or anything. I have now debugged almost every line of code that these methods call. PA30 works just fine. HR_INFOTYPE_OPERATION does not .. that's a whole differnt story.

Maybe you are looking for

  • Keeping Multiple Domains Separate

    I work in an 'enterprise' environment.  Lots and lots of subdomains, with many of them running ColdFusion apps and none of them coordinating.  We've run into a problem where app1.foo.bar.com sets CF cookies (CFTOKEN/CFID) on the bar.com domain and ap

  • Can't find UME Self-Registration

    Hi, I'm trying do configure a User Self-Registration to SAP Portal. But under System Administration-> System Configuration -> UME Configuration I cant't find the tab for it? I'm looking for the attribute Self-Registration? Thanks in advance, Christia

  • Weird things happened and now No Airport Card Installed.

    Last night, I was playing with my iPhone 4 hotspot with my macbook unibody. Out of the blue, my macbook freeze while connecting with wireless hotspot. So what else can I do, I hard press the button and restart my macbook. Upon restart, it show NO AIR

  • Problem with One-Step Approval of Contracts ws14000088

    Hi, I have a problem with the  One-Step Approval of Contracts ws14000088, the workflow can't find  approverat the task TS14007969 regards Dayana

  • Single Form with a button for two seperate form versions.

    Is it possible to create an option to select between two seperate Form Versions. For example. I have a Transfer Form. But there is an internation version and a domestic version. Both have some simple javascript.  I would like to combine these two for