To overcome Authorization error while executing a Function module

Hello Friends,
In my custom workflow , I need to execute a validation  function module ( SAP standard ) in a dialog step  - Approval step.
But the issue is approvers will not have authorization to the FM ( They have minimum authorization - Just to approver the custom workflow ) .
So , I need to know is ther a option to execute the FM using another user ID ( a BATCH user ID ) .
thanks
Raghu V

make the validation task before the dialogue step. a general task will run in background from user WF-BATCH and that wont need to authorization issue...  after completion of this validation you can go for the dialogue step i.e the approval step..
  |
__u2193__
| u25BA__| Validation task
  u2193
__|___
|_?u25BA_| User decision
  |
  u25CF_______
  u2193       u2193reject
  |
approve

Similar Messages

  • Error while executing the function module BAPI_RE_CN_CREATE

    Dear All
    I was using the the function module BAPI_RE_CN_CREATE.  When I am trying to execute the function module I am getting the error message u201CBusiness transaction RECN doest existu201D. While inputting the parameters for the function module I have given RECN   In the input field TRANS. Requesting you to please kindly suggest.
    Regards.
    Varaprasad

    Hi Varaprasad,
    please try the following.
    1. Create a contract manually in the system
    2. Use BAPI_RE_CN_GET_DETAIL to show how the fields and structures are filled.
    3. Check and change the parameters for BAPI_RE_CN_CREATE accordingly.
    Hope that helps.
    Regards, Franz

  • Authorization error while executing IP function in Web

    Hi all,
    I have an application in WAD which has a planning sequence.
    The sequnece runs fine in Modeler.
    But while executing the sequence in WAD, it gives me an error that I am not authorized to run the sequence.
    Is there any specific authorization that I need here?
    Let me know.
    Thanks.
    Anand

    Well I think you do not have the follwoing auth objects added to your role
    S_RS_PLSE -->planning functions
    S_RS_PLSQ-->planning sequences

  • Runtime error while executing 'CUSTOMER_CLEARING' function module

    Hi Experts,
    When I execute fm 'CUSTOMER_CLEARING', I get a run time error that says that there is a type mismatch with respect to
    'I_MODE' parameter used. This dump occurs when there is a call to fm 'POSTING_INTERFACE_START' by this fm. I tried executing it with different values for 'I_MODE' ,such as 'A', 'S', 'E' etc but every time it gave a run time error.
    Kindly suggest what might have gone wrong.
    Thanks in advance,
    Regards,
    Puja

    CALL FUNCTION 'POSTING_INTERFACE_START'
           EXPORTING
                I_CLIENT           = SY-MANDT
                I_FUNCTION         = 'C'           "Call Transaction
                I_GROUP            = XT_BSSPARA-MAPPE
                I_MODE             = I_MODE
                I_HOLDDATE         = XT_BSSPARA-HOLDD
                I_KEEP             = XT_BSSPARA-KEEPM
                I_USER             = XT_BSSPARA-USERN
           EXCEPTIONS
                CLIENT_INCORRECT   = 01
                FUNCTION_INVALID   = 02
                GROUP_NAME_MISSING = 03
                MODE_INVALID       = 04
                UPDATE_INVALID     = 05.
    IF SY-SUBRC NE 0.
      break ruettgers.        "/ JWE P40K041774
        MESSAGE A217(68).       "/ JWE  P40K041774
    ENDIF.
    i think it is happening because of field lenghth declaration, try to find it .
    try like this
    Edited by: kpsgoutam on Nov 18, 2009 2:23 PM

  • Error while executing planning Function

    Hi All,
    I'm getting some error while executing planning function. Below are errors. Please check and provide solution.
    Errors occurred when executing planning function RTFMPF01/RTFMPG01
    Value 08 of chara Region does not correspond to the attrib.val MI of chara Store
    Value 10 of chara Region does not correspond to the attrib.val RM of chara Store
    Value 11 of chara Region does not correspond to the attrib.val NA of chara Store
    Thanks,
    Vamsi

    Hi,
    Value 08 of chara Region does not correspond to the attrib.val MI of chara Store
    Looks like there is a characteristics relationship which derives the attribute store from Region.
    Check the master data for Region for attribute Store and the corresponding values.
    The values that are maintained in the master data will only be allowed to enter in the cube.
    Thanks
    pratyush

  • Error while activating the function module

    hi,
    am getting error while activating the function module i.e. program or report statement is missing.
    thank you in advance
    karthik

    hii vinu,
    hi there....
    make sure that the Processing type in Attributes tab is 'Normal function module'. Also chk the general data, it must be having some name in the Program Name and include name column.try checking the program names in se38, if the program is of type include or not. you can also chk by writting  a program call the function module and test it
    I hope this will solve the query. in my case, SAPLZ123 is the program name and LZ123U28 is the include name.
    or
    Its common prob with Function module.
    Goto SE80->Give Function group name->Right click on it->Activate.
    regards,
    Shweta

  • Macro Error while executing planning functions or saving data

    Dear All,
    I am getting following error in BEx Analyzer while executing planning function or pressing a save button.
    Note: Excel is 2007 version.
    Cannot run the macro "XXXXXX.xlsx". The macro may not be available in this workbook or all macros may be disabled.
    I changed the settings in Macro Settings (Office Button -> Excel Options -> Trust Center -> Trust Center Settings-> Macro Settings) eventhough it is showing that above message.
    selected ->
    Enalble all macros
    Trust access to VBA project object model.
    If anybody faced this issue kindly reply to this.
    Best Regards,
    SG

    Hello everybody,
    i am facing exactlythe same issue! I am currently running GUI Patch Level 14 and BI Add on Patch Level 10.
    I have also adjusted all necessary settings in Excel Options like Activate all Macros and Trust VBA Coding.
    Does anybody have another Solution.
    As mentioned before Gui Patch 13 and BI Add On Patch 10 obviously arent the solutiuon.
    Best regards
    Janos

  • Error while using the function module..pack_handling_unit_dlvry

    Hi all...
    while using the function module pack_handling_unit_dlvry,
    we need to pass the handling unit number as per the functionality we require.
    but the mandatory field for the function module is the handling unit number in the form of bar code..
    so how to use this function module..
    All the useful answers will be regarded..
    Regards,
    Saroja.

    Have you tried using BAPI BAPI_HU_CREATE. Also view Function Module Documentation on its usage.

  • Authorization Error while executing a program

    Hi All,
               I have developed a program which calls VF02 transaction in background. But while executing it, the program fails with message'No authorization for sales organization XXXX'.
    The users who are executing the program does not have access to VF02 and for security reasons the access can not be given to the users.
    So my question is whether this error is due to no access to 'VF02' or with the sales organization?
    Can we give access to the users according to sales organization rather than giving authorization for VF02 ?
    If not then whats the solution to rectify this error without giving VF02 access to users?
    Please help.
    Thanks,
    Sanujit Acharya

    Hi Sandeep
    The OP's question appears to be 'If I give a custom transaction to a user it seems to then call an object unexpectedly that has a sales organisation value because I'm using it to call VF02".
    Due to SU24 not being updated for the custom transaction I'm guessing.
    A trace would probably assist when working with the functional team to decide what is really needed but I'm a little lost as to what is being asked of either the OP or the security/ABAP teams as this is pretty basic stuff...
    @Sanujit
    I have developed a program which calls VF02 transaction in background. But while executing it
    Have you had this program associated with a custom transaction yet?
    Regards
    David
    Edited by: David Berry on May 28, 2011 5:41 PM (got my sales orders mixed up)
    Edited by: David Berry on May 28, 2011 5:47 PM

  • Error while executing a function

    I had created a function F_GET_PRH_NO_QTY. While using this function in a query system is giving me error as given below :
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at "ORION_REPORTS.F_GET_PRH_NO_QTY", line 36
    CREATE OR REPLACE FUNCTION F_GET_PRH_NO_QTY(P_PWH_NO NUMBER)
    RETURN VARCHAR2
    AS
    L_RET_VAL VARCHAR2(4000);
    CURSOR C1 IS
    SELECT REP_NO, REP_QTY
    FROM
    SELECT PRH_NO REP_NO, NVL(PRSO_REP_QTY_BU/IU_CONV_FACTOR/IU_MAX_LOOSE_1,0) REP_QTY
    FROM OT_PR_HEAD, OT_PWO_HEAD, OT_PR_WO_DETAIL, OT_PR_STAGE_OUTPUT, OM_ITEM, OM_ITEM_UOM
    WHERE ITEM_CODE = IU_ITEM_CODE AND ITEM_UOM_CODE = IU_UOM_CODE
    AND PWH_SYS_ID = PRH_REF_SYS_ID (+)
    AND PRH_SYS_ID = PRWD_PRH_SYS_ID -- FROM OT_PR_WO_DETAIL TABLE
    AND PRWD_SYS_ID = PRSO_PRWD_SYS_ID -- FROM OT_PR_STAGE_OUTPUT TABLE
    AND PWH_NO = P_PWH_NO
    M_REP_NO VARCHAR2(40);
    M_REP_QTY VARCHAR2(40);
    M_TEMP1 NUMBER := 0;
    M_RNO_RQTY VARCHAR2(2000);
    BEGIN
    IF C1%ISOPEN THEN
    CLOSE C1;
    END IF;
    OPEN C1;
    LOOP
    FETCH C1 INTO M_REP_NO, M_REP_QTY;
    EXIT WHEN C1%NOTFOUND;
    M_TEMP1 := M_TEMP1 + 1;
    IF M_TEMP1 = 1 THEN
    M_RNO_RQTY := M_REP_NO||'-'||M_REP_QTY;
    ELSE
    M_RNO_RQTY := M_RNO_RQTY||', '||M_REP_NO||' - '||M_REP_QTY;
    END IF;
    END LOOP;
    --RETURN NVL(M_RNO_RQTY,'');
    RETURN L_RET_VAL;
    END;
    Yogesh

    you need to use pipelined function to break into small chunks...
    CREATE OR REPLACE
      FUNCTION F_GET_PRH_NO_QTY
          P_PWH_NO NUMBER)
        RETURN VARCHAR2 PIPELINED
      IS
        L_RET_VAL VARCHAR2(4000);
        v_counter NUMBER := 1;
        v_temp VARCHAR2(4000) := NULL;
        CURSOR C1
        IS
           SELECT REP_NO,
            REP_QTY
             FROM
            (SELECT PRH_NO REP_NO,
              NVL(PRSO_REP_QTY_BU/IU_CONV_FACTOR/IU_MAX_LOOSE_1,0) REP_QTY
               FROM OT_PR_HEAD  ,
              OT_PWO_HEAD       ,
              OT_PR_WO_DETAIL   ,
              OT_PR_STAGE_OUTPUT,
              OM_ITEM           ,
              OM_ITEM_UOM
              WHERE ITEM_CODE = IU_ITEM_CODE
            AND ITEM_UOM_CODE = IU_UOM_CODE
            AND PWH_SYS_ID    = PRH_REF_SYS_ID
            AND PRH_SYS_ID    = PRWD_PRH_SYS_ID  -- FROM OT_PR_WO_DETAIL TABLE
            AND PRWD_SYS_ID   = PRSO_PRWD_SYS_ID -- FROM OT_PR_STAGE_OUTPUT TABLE
            AND PWH_NO        = P_PWH_NO
        M_REP_NO   VARCHAR2(40);
        M_REP_QTY  VARCHAR2(40);
        M_TEMP1    NUMBER := 0;
        M_RNO_RQTY VARCHAR2(2000);
      BEGIN
        IF C1%ISOPEN THEN
          CLOSE C1;
        END IF;
        OPEN C1;
        LOOP
          FETCH C1 INTO M_REP_NO, M_REP_QTY;
          EXIT
        WHEN C1%NOTFOUND;
          M_TEMP1      := M_TEMP1 + 1;
          IF M_TEMP1    = 1 THEN
            M_RNO_RQTY := M_REP_NO||'-'||M_REP_QTY;
          ELSE
            M_RNO_RQTY := M_RNO_RQTY||', '||M_REP_NO||' - '||M_REP_QTY;
          END IF;
        END LOOP;
        LOOP
        v_temp := SUBSTR(v_xml,   v_counter,   4000);
        EXIT
        WHEN v_temp IS NULL;
        pipe ROW(v_temp);
        v_counter := v_counter + 4000;
        END LOOP;
        RETURN ;
      END;
      /untested....
    for executing above
    select * from table(F_GET_PRH_NO_QTY(<your variable inside quotes>))Ravi Kumar

  • Authorization Error  while executing Workbooks,

    Dear ALL
    We have authorization in place where users are restricted to execute Workbooks PLANT wise.
    For this 0PLANT is kept authorization relevant.
    0PLANT__0COMP_CODE  is Navigational Attribute of 0PLANT also marked as authorization relevant.
    Till now all user were assigned the Analysis authorization A_PLNT_XX as  0PLANT = XX
    But suddenly now the users are getting authorization error of NOT BEING AUTHORIZED .,
    The error log is as shown below.
    Relevant Characteristics for Detailed Authorization Check  
    (Characteristics with Full Authorization Are Not Listed!)
      List of Effective Authorization-Relevant Characteristics for InfoProvider ZMMIMMP05:  
    0PLANT 
    0PLANT__0COMP_CODE 
    0TCAACTVT 
    Subselection (Technical SUBNR) 1  
    Supplementation of Selection for Aggregated Characteristics
      Check Added for Aggregation Authorization:     0PLANT__0COMP_CODE  
      Authorizations missing for aggregation (":")  
    Characteristic  1 
    0PLANT__0COMP_CODE    Empty   
    Entries marked with red do not have aggregation authorization
    You can find more information about this here 1140831
      The authorization check stops here as this selection is no longer needed  
      Message EYE007: You do not have sufficient authorization  
      No Sufficient Authorization for This Subselection (SUBNR)  
    Following CHANMIDs Are Affected:
    51 ( 0PLANT )
      Authorization Check Complete  
    Please let me know the reason for the same.
    Also How can  i track these  changes to avoid such errors
    Regards,
    Ajit

    Hi Ajit,
    The authorization log has been improved constantly and try to make it easy to understand.
    It says:
    Authorizations missing for aggregation (":")
    Characteristic 1
    0PLANT__0COMP_CODE Empty
    Entries marked with red do not have aggregation authorization
    You can find more information about this here 1140831
    So please click the "1140831" which is a hyperlink bringing you to OSS note 1140831.
    The note says:
    1140831  Colon authorization during query execution
    Part 1:  Description of the authorization check
    You require aggregation authorization ("colon authorization") to view
    the values of an authorization-relevant characteristic in aggregated
    form. What does this mean exactly?
    Example:
    The calendar year (0CALYEAR) characteristic is authorization-relevant
    and is contained in the InfoProvider that is in use. You defined a query
    as follows:
    1.  0CALYEAR is in the free characteristics (not in the drilldown)
        without any selections
    - or -
    2.  0CALYEAR does not exist in the query at all.
    In both cases, no 0CALYEAR values are displayed in the query. Also, the
    query is not restricted to any 0CALYEAR values. A colon is required for
    the authorization check in this situation.
    The note contains some more detailed explanation. You could read through it to understand the concept.
    Regards,
    Patricia

  • Error while executing the function

    hi,
    I have a table with the following data.
    T_1          T_2 T_3        T_4
    a.1            1 aa         ff
    a.1            2 ab         ff
    a.2            1 ba         ff
    a.2            2 bb         ff
    a.2            3 bc         ff
    a.2            4 bd         ff
    a.3            1 ca         ff
    a.3            3 cc         ff
    a.4            2 db         ffi want the data in the following way.
    col_1       col_2         col3
    a.1         1,2             aa ,ab
    a.2         1,2 ,3,4       ba,bb,bc,bd
    a.3         1,3             ca,cc
    a.4         2                db         For this , i have written a package as shown below.
    create or replace package t_emp_pkg as
    type typ_emp is record
    tv_t_1 t_Emp.t_1%type,
    tv_t_2 varchar2(20),
    tv_t_3 varchar2(20));
    type typ_emp_tab is table of typ_emp;
    function t_emp_func(pv_value in varchar2) return typ_emp_tab;
    end t_emp_pkg;
    create or replace package body t_emp_pkg as
    function t_emp_func(pv_value in varchar2) return typ_emp_Tab is
    cursor c1(v_value varchar2) is
    select distinct t_1 from t_emp where t_4 = v_value ;
    cursor c2(pv_t_1 varchar2) is
    select t_2,t_3 from t_emp
    where t_1 = pv_t_1;
    typ_emp_table typ_emp_tab := typ_emp_tab();
    t_count number := 0;
    c1_cur_rec c1%rowtype;
    c2_cur_rec c2%rowtype;
    v_temp_value1 varchar2(30);
    v_temp_value2 varchar2(30);
    begin
    open c1(pv_value);
    loop
    fetch c1 into c1_cur_rec;
    exit when c1%notfound;
    v_temp_value1 := null;
    v_temp_value2 := null;
    open c2(c1_cur_rec.t_1);
    loop
    fetch c2 into c2_cur_rec;
    exit when c2%notfound;
    v_temp_value1 := v_temp_value1||','||c2_cur_rec.t_2;
    v_temp_value2 := v_temp_value2||','||c2_cur_rec.t_3;
    end loop;
    --close c2;
    t_count := t_count+1;
    typ_emp_table(t_count).tv_t_1 := c1_cur_rec.t_1;
    typ_emp_table(t_count).tv_t_2 := v_temp_value1;
    typ_emp_table(t_count).tv_t_3 := v_temp_value2;
    --dbms_output.put_line(typ_emp_table(t_count).tv_t_1);
    --dbms_output.put_line(typ_emp_table(t_count).tv_t_2);
    --dbms_output.put_line(typ_emp_table(t_count).tv_t_3);
    end loop;
    close c1;
    return typ_emp_table;
    end;
    end;
    When i executed the function , i got the following error.
    SQL> declare
    2 v t_emp_pkg.typ_emp_tab := t_emp_pkg.typ_emp_tab();
    3 begin
    4 v := t_emp_pkg.t_emp_func('ff');
    5 for i in v.first..v.last loop
    6 dbms_output.put_line(v(i).tv_t_1 ||', '||v(i).tv_t_2||', '||v(i).tv_t_3);
    7 end loop;
    8 end;
    9 /
    declare
    ERROR at line 1:
    ORA-06533: Subscript beyond count
    ORA-06512: at "SCOTT.T_EMP_PKG", line 30
    ORA-06512: at line 4
    but when i am running this queries in anonymous block (i.e) using declare,begin,end , i am getting the data correctly.
      1  declare
      2  pv_value varchar2(5) := 'ff';
      3   cursor c1(v_value varchar2) is
      4  select distinct t_1 from t_emp where t_4 = v_value ;
      5  cursor c2(pv_t_1 varchar2) is
      6  select t_2,t_3 from t_emp
      7  where t_1 = pv_t_1;
      8  --typ_emp_table typ_emp_tab := typ_emp_tab();
      9  t_count number := 0;
    10  c1_cur_rec c1%rowtype;
    11  c2_cur_rec c2%rowtype;
    12  v_temp_value1 varchar2(300);
    13  v_temp_value2 varchar2(300);
    14  begin
    15  open c1(pv_value);
    16  loop
    17  fetch c1 into c1_cur_rec;
    18  exit when c1%notfound;
    19  v_temp_value1 := null;
    20  v_temp_value2 := null;
    21  open c2(c1_cur_rec.t_1);
    22  loop
    23  fetch c2 into c2_cur_rec;
    24  exit when c2%notfound;
    25  v_temp_value1 := v_temp_value1||','||c2_cur_rec.t_2;
    26  v_temp_value2 := v_temp_value2||','||c2_cur_rec.t_3;
    27  end loop;
    28  close c2;
    29  t_count := t_count+1;
    30  --typ_emp_table(t_count).tv_t_1 := c1_cur_rec.t_1;
    31  --typ_emp_table(t_count).tv_t_2 := v_temp_value1;
    32  --typ_emp_table(t_count).tv_t_3 := v_temp_value2;
    33  dbms_output.put_line(c1_cur_rec.t_1);
    34  dbms_output.put_line(v_temp_value1);
    35  dbms_output.put_line(v_temp_value2);
    36  end loop;
    37  close c1;
    38* end;
    39  /
    a.2
    ,1,2,3,4
    ,ba,bb,bc,bd
    a.3
    ,1,3
    ,ca,cc
    a.4
    ,2
    ,db
    a.1
    ,1,2
    ,aa,ab
    PL/SQL procedure successfully completed.So can anybody tell me why it is not executing correctly when executing as a function.
    Thanks in advance.

    hi devmiral,
    I am not sure exactly where i am making the mistake. I have modified the package but still i am getting the error.
    create or replace package body t_emp_pkg as
    function t_emp_func(pv_value in varchar2) return typ_emp_Tab is
    cursor c1(v_value varchar2) is
    select distinct t_1 from t_emp where t_4 = v_value ;
    cursor c2(pv_t_1 varchar2) is
    select t_2,t_3 from t_emp
    where t_1 = pv_t_1;
    typ_emp_table typ_emp_tab ;
    --:= typ_emp_tab();
    t_count number := 0;
    c1_cur_rec c1%rowtype;
    c2_cur_rec c2%rowtype;
    v_temp_value1 varchar2(30);
    v_temp_value2 varchar2(30);
    begin
    open c1(pv_value);
    loop
    fetch c1 into c1_cur_rec;
    exit when c1%notfound;
    v_temp_value1 := null;
    v_temp_value2 := null;
    open c2(c1_cur_rec.t_1);
    loop
    fetch c2 into c2_cur_rec;
    exit when c2%notfound;
    v_temp_value1 := v_temp_value1||','||c2_cur_rec.t_2;
    v_temp_value2 := v_temp_value2||','||c2_cur_rec.t_3;
    end loop;
    --close c2;
    t_count := t_count+1;
    typ_emp_table(t_count).tv_t_1 := c1_cur_rec.t_1;
    typ_emp_table(t_count).tv_t_2 := v_temp_value1;
    typ_emp_table(t_count).tv_t_3 := v_temp_value2;
    typ_emp_table := typ_emp_tab(c1_cur_rec.t_1,v_temp_value1,v_temp_value2);
    typ_emp_table.extend;
    end loop;
    close c1;
    return typ_emp_table;
    end;
    end;
    SQL> @t_emp_pkg_body.sql
    Warning: Package Body created with compilation errors.
    SQL> sho err
    Errors for PACKAGE BODY T_EMP_PKG:
    LINE/COL ERROR
    36/1     PL/SQL: Statement ignored
    36/18    PLS-00306: wrong number or types of arguments in call to
             'TYP_EMP_TAB'
    36/18    PLS-00306: wrong number or types of arguments in call to
             'TYP_EMP_TAB'
    36/18    PLS-00306: wrong number or types of arguments in call to
             'TYP_EMP_TAB'Thanks in advance.

  • Exception While Executing a Function Module (BAPI_STANDARDMATERIAL_CREATE"

    Hi,
    I have Developed a New WepDynPro Appn (Java) .It will connects with R/3 BackEnd and Execute a Bapi Module Called "BAPI_STANDATRDMATERIAL_CREATE ".It will Create a new Material in R/3.
    while Running This Application Its Showing The Exception
    "Exception :com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException:      Screen output without connection to user.                           , error key: RFC_ERROR_COMMUNICATION "
    [But in d Same Appln i used another Bapi Module tO get a material Details..]
    what exception is that ? How To Solve This ?
    Plz Help me out...
    Regards,
    Ramganesh

    Hi
    Try This
    1. Test The JCO Connections (Test JCO Connection )in Content Administrator
    2. Restart the Engine
    This will help You
    See this Help
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/526bd490-0201-0010-038e-d3ff7eb1d16e
    Kind Regards
    Mukesh

  • Error while creating a function module

    Hii Experts
    I am adding a table name to the tables parameter in a already created function module, But it is giving a error : TABLES parameter is obselete
    the table which I am adding is
    IT_GRAPH  TYPE  ZTY_GRAPH ( zty_graph is a structure which i made in se11 comprising of 2 fields)
    Thanx in advance

    Hi,
    Give table parameters as:
    IT_GRAPH LIKE ZTY_GRAPH,
    It will give a warning, just press enter and proceed.
    Thanks & Regards,
    Navneeth K.

  • Error while using the function module GUI_UPLOAD

    Hi,
    My requirement is to upload the data from .txt file into internal table.
    I have given my code like this
    PARAMETERS: p_fname LIKE rlgrap-filename.
    data: begin of gt_string occurs 0,
           record type char255,
          end of gt_string.
    AT SELECTION-SCREEN ON VALUE-REQUEST for p_fname.
      CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
       EXPORTING
        PROGRAM_NAME        = SYST-REPID
        DYNPRO_NUMBER       = SYST-DYNNR
        FIELD_NAME          = ' '
         STATIC              = 'X'
        MASK                = ' '
        CHANGING
          file_name           = p_fname
       EXCEPTIONS
         MASK_TOO_LONG       = 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.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                      = p_fname
         FILETYPE                      = 'ASC'
         HAS_FIELD_SEPARATOR           = 'X'
         HEADER_LENGTH                 = 0
        READ_BY_LINE                  = 'X'
        DAT_MODE                      = ' '
        CODEPAGE                      = ' '
        IGNORE_CERR                   = ABAP_TRUE
        REPLACEMENT                   = '#'
        CHECK_BOM                     = ' '
        NO_AUTH_CHECK                 = ' '
      IMPORTING
        FILELENGTH                    =
        HEADER                        =
        tables
          data_tab                      = gt_string
       EXCEPTIONS
         FILE_OPEN_ERROR               = 1
         FILE_READ_ERROR               = 2
         NO_BATCH                      = 3
         GUI_REFUSE_FILETRANSFER       = 4
         INVALID_TYPE                  = 5
         NO_AUTHORITY                  = 6
         UNKNOWN_ERROR                 = 7
         BAD_DATA_FORMAT               = 8
         HEADER_NOT_ALLOWED            = 9
         SEPARATOR_NOT_ALLOWED         = 10
         HEADER_TOO_LONG               = 11
         UNKNOWN_DP_ERROR              = 12
         ACCESS_DENIED                 = 13
         DP_OUT_OF_MEMORY              = 14
         DISK_FULL                     = 15
         DP_TIMEOUT                    = 16
         OTHERS                        = 17
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Here I am getting dump error as 'Type conflict when calling a function module.
    The function module interface allows you to specify only fields
    of a particular type under "FILENAME". The field "P_FNAME" specified here has a different field type'.
    What would be the reason for this error?
    Can anyone help me?
    Regards,
    Hema

    see this sample program for F4 help
    *& Report  ZSD_EXCEL_INT_APP
    REPORT  ZSD_EXCEL_INT_APP.
    parameter: file_nm type localfile.
    types : begin of it_tab1,
            f1(20),
            f2(40),
            f3(20),
           end of it_tab1.
    data : it_tab type table of ALSMEX_TABLINE with header line,
           file type rlgrap-filename.
    data : it_tab2 type it_tab1 occurs 1,
           wa_tab2 type it_tab1,
           w_message(100)  TYPE c.
    at selection-screen on value-request for file_nm.
    CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
    EXPORTING
      PROGRAM_NAME        = SYST-REPID
      DYNPRO_NUMBER       = SYST-DYNNR
      FIELD_NAME          = ' '
       STATIC              = 'X'
      MASK                = ' '
      CHANGING
       file_name           = file_nm
    EXCEPTIONS
       MASK_TOO_LONG       = 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.
    start-of-selection.
    refresh it_tab2[].clear wa_tab2.
    file = file_nm.
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
      EXPORTING
        filename                      = file
        i_begin_col                   = '1'
        i_begin_row                   =  '1'
        i_end_col                     = '10'
        i_end_row                     = '35'
      tables
        intern                        = it_tab
    EXCEPTIONS
       INCONSISTENT_PARAMETERS       = 1
       UPLOAD_OLE                    = 2
       OTHERS                        = 3
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    loop at it_tab.
      case it_tab-col.
       when '002'.
        wa_tab2-f1 = it_tab-value.
       when '004'.
        wa_tab2-f2 = it_tab-value.
      when '008'.
        wa_tab2-f3 = it_tab-value.
    endcase.
    at end of row.
      append wa_tab2 to it_tab2.
    clear wa_tab2.
      endat.
    endloop.
    data : p_file TYPE  rlgrap-filename value 'TEST3.txt'.
    OPEN DATASET p_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    *--- Display error messages if any.
      IF sy-subrc NE 0.
        MESSAGE e001(zsd_mes).
        EXIT.
      ELSE.
    *---Data is downloaded to the application server file path
        LOOP AT it_tab2 INTO wa_tab2.
          TRANSFER wa_tab2 TO p_file.
        ENDLOOP.
      ENDIF.
    *--Close the Application server file (Mandatory).
      CLOSE DATASET p_file.
    loop at it_tab2 into wa_tab2.
      write : / wa_tab2-f1,wa_tab2-f2,wa_tab2-f3.
    endloop.

Maybe you are looking for

  • NEF files ... help!?

    Im shooting on a Nikon D40, however i can't open my NEF files in photoshop ( version cs2 ) I've tried downloading all the plug -ins and still nothing. Any sugestions?!

  • Modem on PCI TO PCMCIA adapter not working.

    Hello, I'm new here so please be gentle if im asking about something obvious. Like i wrote in subject i have problems on my desktop PC (not laptop) with my pcmcia Huwaei 870 modem wich is inserted into PCI TO PCMCIA adapter (Ricoh). On Windows(same m

  • Unable to lauch application after OS update

    I have compiled and application somewhere, put a copy of the bundle into /Applications and everything worked well 3 months ago. Made recent upgrades through software upgrade menu. Now impossible to launch the applications by clicking on it in the /Ap

  • Lowest Level in APO DP Heirarchy

    In APO DP, how would a charecteristic is identified or noted as the lowest level in a heirarchy. I mean, if i have a product heirarchy as Main Grp -> Sub Grp -> SKU and SKU is my lowest level, how do i inform APO about the same. While creating POS th

  • How to Assigning the company code to the billing units from ecc to crm

    Hi, Iam doing the roll out project , i require the help. can any one suggest me how to assign the company code to the billing units from ecc to crm. Thanks Mustafa