BAPI/FM Import Parameter Error.

Greetings all,
Could anyone please advice me, I'm getting syntax error on FM Import parameter.
please advice and thanks in advance.
========================================================================
TYPES:  ty_header TYPE zapo_gr_header.
DATA:   ty_item  TYPE zapo_gr_item.
DATA: t_header TYPE STANDARD TABLE OF ty_header,
      t_item   LIKE STANDARD TABLE OF ty_item,
  PERFORM goodsmvt_post TABLES  t_header
                                t_item.
FORM goodsmvt_post  TABLES   P_T_HEADER STRUCTURE zapo_gr_header
                             P_T_ITEM   STRUCTURE zapo_gr_item.
  CALL FUNCTION 'Z_APO_BAPI_GR_POST'
    EXPORTING
      I_GR_HEADER = P_T_HEADER
      I_GR_ITEM   = P_T_ITEM
    TABLES
      RETURN      = gt_gr_out.
ENDFORM.                 
FUNCTION Z_APO_BAPI_GR_POST.
*"*"Local Interface:
*"  IMPORTING
*"     VALUE(I_GR_HEADER) TYPE  ZAPO_GR_HEADER
*"     VALUE(I_GR_ITEM) TYPE  ZAPO_GR_ITEM
  LOOP AT I_GR_HEADER INTO wa_header.
  ENDLOOP.
**SYNTAX ERROR:****
****Function Module Z_APO_BAPI_GR_POST****
****"I_GR_HEADER" is neither specified under "TABLES" nor defined as an****
****internal table.*========================================================================*

There may be two causes which u need to check.
1)  First check that u need to pass the structure to the I_GR_HEADER  parameter
and it is not table.
2)  If you are passing the structure correctly,  the problem is with the type specification
FORM goodsmvt_post  TABLES   P_T_HEADER STRUCTURE zapo_gr_header
It should not be table.
Check that.
Venkat

Similar Messages

  • BAPI BAPI_GOODSMVT_CREATE import parameter problem

    Hi All,
    I am using BAPI BAPI_GOODSMVT_CREATE in function module ZQM06_FM_TASK_GOODS_MOVEMENT which is z copy of FM QM06_FM_TASK_GOODS_MOVEMENT. The FM get used in transaction IW52 i.e. Change Notification
    Now my query is the BAPI contain import parameter as GOODSMVT_CODE (Assign Code to Transaction for Goods Movement) and i don't know which value to pass to it.
    Could you please help me out?
    Thanks & Regards,
    Parag

    Hi,
    check the data element GM_CODE documentation for your requirement.
    Regards,
    Boobalan S

  • Importing BAPI with Import parameter Type Structure

    Hi All,
    I am importing BAPI as shown below:
    FUNCTION ZTEST_BAPIOC.
    ""Local interface:
    *"  IMPORTING
    *"     VALUE(A1) TYPE  ZLEVEL1 OPTIONAL
    *"  EXPORTING
    *"     VALUE(M1) TYPE  CHAR10
    Where ZLEVEL1 is Structure which contains many appended structures.
    ZLEVEL1  (SAP SE11 Structure)
    -ZLEVEL2A
    -ZLEVEL2B
    ZLEVEL2A   (SAP SE11 Structure)
    -ZLEVEL3A
    ZLEVEL2B   (SAP SE11 Structure)
    -FIELD1
    -FIELD2
    ZLEVEL3A   (SAP SE11 Structure)
    -FIELD3
    -FIELD4
    But after importing BAPI in XI I can see only A1 as follows :
    Structure--Category---Type
    ZTEST_BAPIOC------Element   
    A1--Element----ZLEVEL1
    For mapping to target I need whole structure on BAPI & ZLEVEL1.
    <b>Please help how to Import Or Design Strucure of BAPI with Import parameters Type as Structures?</b>
    Thanks & Regards

    Hi,
    Thanks for Reply.
    Actually User ID  I used for importing BAPI having some missing authorization.
    After getting Authorization I can see full structure of BAPI in XI.
    Thanks & Regards

  • "Invalid access code (Bad parameter)" error encountered when trying to import VSS DB into TFS 2012

    I'm trying to import a VSS DB into TFS 2012 using the VSS Upgrade Wizard.
    However, I'm getting an "Invalid access code (Bad parameter)" error when I click the "List Available Projects" link button.
    I have been able to get the wizard going with a different VSS DB, but not this one.
    How can I fix this and get the import going?

    Hi,
    Thank you for your post.
    Do you use OLE Automation objects when you log on VSS? Please refer to this
    FIX: VSS OLE Automation Error Message "Bad Access Parameter"
    Regards,
    Lily Wu
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • PI 711 Installation: Loading of 'SAPNTAB' import package: error but no log

    Hello,
    I'm perfromong an installation of a SAP PI 7.11 ystem on windoows Server 2003 and Oracle 10.2 .
    I've perfromed the installation of the DEV system without particular issue.
    But now when tryning to install the QAS system , I can't finish the installation : Im' stuck in the import ABAP step ...
    It is impossible to import the 'SAPNTAB' package. I couln't find the reason.
    I've tried updating the R3load binary, rebooting the server, restarting the instalaltion from scratch but it didn't help.
    Here I provide you the logs, maybe you can help me
    SAPNTAB.log
    E:\usr\sap\PIQ\SYS\exe\uc\NTAMD64\R3load.exe: START OF LOG: 20110223195542
    E:\usr\sap\PIQ\SYS\exe\uc\NTAMD64\R3load.exe: sccsid @(#) $Id: //bas/711_REL/src/R3ld/R3load/R3ldmain.c#6 $ SAP
    E:\usr\sap\PIQ\SYS\exe\uc\NTAMD64\R3load.exe: version R7.11/V1.4 [UNICODE]
    Compiled Dec 14 2010 22:52:23
    E:\usr\sap\PIQ\SYS\exe\uc\NTAMD64\R3load.exe -i SAPNTAB.cmd -dbcodepage 4103 -l SAPNTAB.log -stop_on_error -loadprocedure fast
    DbSl Trace: ORA-1403 when accessing table SAPUSER
    (DB) INFO: connected to DB
    (DB) INFO: DbSlControl(DBSL_CMD_NLS_CHARACTERSET_GET): UTF8
    (DB) INFO: SVERS deleted/truncated #20110223195543
    sapinst_dev.log
    Syslib info about system call. OS message 109 (The pipe has been ended.
    ) after execution of system call 'ReadFile' with parameter ((read end of child process output pipe)), line (403) in file (synxcpipe.cpp).
    WARNING    2011-02-23 19:56:12.607
               CJSlibModule::writeWarning_impl()
    Execution of the command ""C:\Program Files\sapinst_instdir\NW71\INSTALL\SYSTEM\ORA\STD\AS\sapjvm\sapjvm_5\bin\java.exe" -classpath migmon.jar -showversion -Xmx1024m com.sap.inst.migmon.imp.ImportMonitor -sapinst" finished with return code 103. Output:
    java version "1.5.0_14"
    Java(TM) 2 Runtime Environment, Standard Edition (build 5.1.024)
    SAP Java 64-Bit Server VM (build 5.1.024, Sep  4 2008 23:21:58 - 51_REL - optU - windows amd64 - bas2:106386 (mixed mode))
    Import Monitor jobs: running 1, waiting 28, completed 0, failed 0, total 29.
    Loading of 'SAPNTAB' import package: ERROR
    Import Monitor jobs: running 0, waiting 28, completed 0, failed 1, total 29.
    TRACE      2011-02-23 19:56:12.607
    Function setMessageIdOfExceptionMessage: nw.programError
    ERROR      2011-02-23 19:56:12.607
               CJSlibModule::writeError_impl()
    CJS-30022  Program 'Migration Monitor' exits with error code 103. For details see log file(s) import_monitor.java.log, import_monitor.log.
    import_monitor.log
    TRACE: 2011-02-23 19:55:42 com.sap.inst.migmon.imp.ImportStandardTask preCreate
    Parse of 'C:\Program Files\sapinst_instdir\NW71\INSTALL\SYSTEM\ORA\STD\AS\DDLORA.TPL' template file is started.
    INFO: 2011-02-23 19:55:42 com.sap.inst.migmon.imp.ImportStandardTask preCreate
    Parse of 'C:\Program Files\sapinst_instdir\NW71\INSTALL\SYSTEM\ORA\STD\AS\DDLORA.TPL' template file is successfully completed.
    Primary key creation: after load.
    Index creation: after load.
    INFO: 2011-02-23 19:55:42
    Data codepage 1100 is determined using TOC file 'E:\SAPCD\51036706\DATA_UNITS\EXP1\DATA\REPOSRC.TOC' for package 'REPOSRC'.
    INFO: 2011-02-23 19:55:42
    Version table 'SVERS' is found in STR file 'E:\SAPCD\51036706\DATA_UNITS\EXP3\DATA\SAPNTAB.STR' from package 'SAPNTAB'.
    INFO: 2011-02-23 19:55:42
    Data conversion tables 'DDNTF,DDNTF_CONV_UC,DDNTT,DDNTT_CONV_UC' are found in STR file 'E:\SAPCD\51036706\DATA_UNITS\EXP3\DATA\SAPNTAB.STR' from package 'SAPNTAB'.
    TRACE: 2011-02-23 19:55:42 com.sap.inst.migmon.LoadTask run
    Loading of 'SAPNTAB' import package is started.
    TRACE: 2011-02-23 19:55:42 com.sap.inst.migmon.LoadTask processPackage
    Loading of 'SAPNTAB' import package into database:
    E:\usr\sap\PIQ\SYS\exe\uc\NTAMD64\R3load.exe -i SAPNTAB.cmd -dbcodepage 4103 -l SAPNTAB.log -stop_on_error -loadprocedure fast
    ERROR: 2011-02-23 19:55:45 com.sap.inst.migmon.LoadTask run
    Loading of 'SAPNTAB' import package is interrupted with R3load error.
    Process 'E:\usr\sap\PIQ\SYS\exe\uc\NTAMD64\R3load.exe -i SAPNTAB.cmd -dbcodepage 4103 -l SAPNTAB.log -stop_on_error -loadprocedure fast' exited with return code -1,073,741,819.
    For mode details see 'SAPNTAB.log' file.
    Standard error output:
    sapparam: sapargv(argc, argv) has not been called!
    sapparam(1c): No Profile used.
    sapparam: SAPSYSTEMNAME neither in Profile nor in Commandline
    WARNING: 2011-02-23 19:56:12
    Cannot continue import because not all import packages with data conversion tables are loaded successfully.
    WARNING: 2011-02-23 19:56:12
    1 error(s) during processing of packages.
    INFO: 2011-02-23 19:56:12
    Import Monitor is stopped.
    Edited by: Raoul Shiro on Feb 23, 2011 8:11 PM
    Edited by: Raoul Shiro on Feb 23, 2011 8:12 PM

    Hello,
    Thank you for your answer.
    I already opened a sap cutomer call, they answered that it it not a database issue,
    I restarted the installationfriom scracth , but i still got the same error :
    Here is the full content of the file SAPNTAB.log
    E:\usr\sap\PIQ\SYS\exe\uc\NTAMD64\R3load.exe: START OF LOG: 20110225170643
    E:\usr\sap\PIQ\SYS\exe\uc\NTAMD64\R3load.exe: sccsid @(#) $Id: //bas/711_REL/src/R3ld/R3load/R3ldmain.c#4 $ SAP
    E:\usr\sap\PIQ\SYS\exe\uc\NTAMD64\R3load.exe: version R7.11/V1.4 [UNICODE]
    Compiled Dec 22 2008 00:13:12
    E:\usr\sap\PIQ\SYS\exe\uc\NTAMD64\R3load.exe -ctf I E:\SAPCD\51036706\DATA_UNITS\EXP3\DATA\SAPNTAB.STR C:\Program Files\sapinst_instdir\NW71\INSTALL\SYSTEM\ORA\STD\AS\DDLORA.TPL SAPNTAB.TSK ORA -l SAPNTAB.log
    E:\usr\sap\PIQ\SYS\exe\uc\NTAMD64\R3load.exe: job completed
    E:\usr\sap\PIQ\SYS\exe\uc\NTAMD64\R3load.exe: END OF LOG: 20110225170643
    E:\usr\sap\PIQ\SYS\exe\uc\NTAMD64\R3load.exe: START OF LOG: 20110225170643
    E:\usr\sap\PIQ\SYS\exe\uc\NTAMD64\R3load.exe: sccsid @(#) $Id: //bas/711_REL/src/R3ld/R3load/R3ldmain.c#4 $ SAP
    E:\usr\sap\PIQ\SYS\exe\uc\NTAMD64\R3load.exe: version R7.11/V1.4 [UNICODE]
    Compiled Dec 22 2008 00:13:12
    E:\usr\sap\PIQ\SYS\exe\uc\NTAMD64\R3load.exe -i SAPNTAB.cmd -dbcodepage 4103 -l SAPNTAB.log -stop_on_error -loadprocedure fast
    DbSl Trace: ORA-1403 when accessing table SAPUSER
    (DB) INFO: connected to DB
    (DB) INFO: DbSlControl(DBSL_CMD_NLS_CHARACTERSET_GET): UTF8
    (DB) INFO: SVERS created #20110225170643
    Regards.
    Raoul

  • How to use import parameter to be instead of SQL where sub-sentence ?

    I wrote a RFC to read data from SAP table. To fetch data flexibility, I want to use import parameter xx instead of where sub-sentence in SQL sentence.
       For example, "SELECT * FROM T WHERE XXX",  and "XXX" is a importing parameter.
       How can I use it.
       Thanks a lot.
       Frank.

    FUNCTION ZRFC_04.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(TARGETTABLE) LIKE  MAKT-MAKTX
    *"     VALUE(TWHERE) LIKE  MAKT-MAKTX
    *"  EXPORTING
    *"     VALUE(ZRETURN) LIKE  MAKT-MAKTX
    *"  TABLES
    *"      TMP_TEST1 STRUCTURE  ZTEST1
      DATA:
      TRANSACTION_ID LIKE ARFCTID,
      V_VAILD(1) TYPE C,
      scond(80) TYPE c.
      V_VAILD = 'X'.
    GET PARAMETER twhere fields scond.
    The error " 'LATE FIELDS' expected, not 'TWHERE FIELDS' " generated.

  • Assigning a timestamp to an Import Parameter in eCATT

    I am trying to assign a value to an Import parameter that will be unique every time the eCATT script runs.  I have inserted a piece of Inline ABAP code that looks like this:
    ABAP.
       DATA: BEGIN of wa,
          time_stamp TYPE P,
       END OF wa.
       GET TIME STAMP FIELD wa-time_stamp.
       I_DATETIME = wa-time_stamp.
    END ABAP.
    This only assigns a time stamp to I_DATETIME is the parameter is type V.  Unfortunately, the script produces an error unless I_DATETIME is type I, however the Inline ABAP produces a syntax error when I_DATETIME is type I. 
    For example, when I_DATETIME is type V I see in my
    LOG I_DATETIME statement that the value 20050518200719 or something similar has been assigned to that parameter.  However, in the SAPGUI command interface where I deleted the original number value and replaced it with parameter I_DATETIME it reads: Value = I_DATETIME = '
    Why can't I use parameters of type I and V interchangeably in the script and Inline ABAP?  Is there an easier way to go about getting a time stamp or unique value for an Import Parameter?
    Message was edited by: Ben Weisberg

    Ben,
    there are two issues here:
    <b>Parameter visibility in inline ABAP</b>
    In inline ABAP, <b>only</b> local variables (visibilty V) can be used. The reason for this was to minimize the amount of data that has to be transferred to the target system of the script when the inline ABAP is generated.
    <b>Avoiding inline ABAP where possible</b>
    You said yourself that you suspect your approach is inefficient. I always tell people that inline ABAP can be fun, using the eCATT script language is better
    You can generate yourself a timestamp in eCATT like this:
    First, declare a parameter with type C. Since you are going to fill it in the script, there is no need for it to be an importing parameter - local variable (V) will do - let's call it V_TIMESTAMP.
    Fill the field using <b>either</b>
    V_TIMESTAMP = &DATE & &TIME
    <b>or</b>
    V_TIMESTAMP = sy-datum & sy-uzeit
    <i>What's the difference?</i>
    If you use the eCATT variables &DATE and &TIME, you will always get the date and time of the <b>current target system</b>. If you use the ABAP system fields sy-datum and sy-uzeit, you will always get the date and time of the <b>local eCATT system</b>. Obviously, if you are working locally in a system, these two sets of values will be the same. However, if you start working remotely - possibly against app servers in different time zones - you will have to decide which you want to use.

  • How to use select-options in the function module of import parameter ?

    Hi ...
       I have created a BAPI and tested in SWO1 tcode , by giving the single value for an company code ( BUKRS ) , it executed properly .
    Same thing is working after implementing in a program .
    so now it is working for fetching a single company code details .
    My requirement is : I want to use select-options in program as well as in function module IN IMPORT PARAMETER.
    Program :
    REPORT  ZTEST.
    TABLES : T001 , ZBAPI_STR .
    TYPES : BEGIN OF TY_ITEM  .
              INCLUDE STRUCTURE ZBAPI_STR .
    TYPES : END OF TY_ITEM .
    DATA :WA_ITEM TYPE TY_ITEM ,
          ITEM LIKE STANDARD TABLE OF WA_ITEM INITIAL SIZE 0 .
    PARAMETER : BUKRS TYPE ZBAPI_STR-BUKRS.
    call function 'ZBAPI_FMT001'
      exporting
        bukrs         =  BUKRS
    IMPORTING
      RETURN        =
      tables
        itemtab       = ITEM
    IF ITEM IS NOT INITIAL .
      LOOP AT ITEM INTO WA_ITEM .
        WRITE : / WA_ITEM-BUKRS , WA_ITEM-BUTXT , WA_ITEM-ORT01 , WA_ITEM-LAND1 .
      ENDLOOP.
    ENDIF.
    FUNCTION MODULE :
    FUNCTION ZBAPI_FMT001.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(BUKRS) TYPE  EFG_TAB_RANGES
    *"  EXPORTING
    *"     VALUE(RETURN) TYPE  BAPIRET2
    *"  TABLES
    *"      ITEMTAB STRUCTURE  ZBAPI_STR
    SELECT BUKRS BUTXT ORT01 LAND1 FROM T001 INTO TABLE ITEMTAB WHERE BUKRS = BUKRS .
    ENDFUNCTION.
    Regards
    Deepa.

    I have given a similiar example which i did
    Declare a
    Table type:Z_TT_PONUM             
    Short text  :  Select options  PO Number
    in SE11 tcode with row type eg: Z_ST_PONUM
    create a structure (this will be the row type)
    Structure          Z_ST_PONUM            
    Short text         Select Options Field PO number
    Compenent  Compent type
    SIGN       BAPISIGN      Inclusion/exclusion criterion SIGN for range tables
    OPTION       BAPIOPTION      Selection operator OPTION for range tables
    LOW       EBELN                      Purchasing Document Number
    HIGH       EBELN                      Purchasing Document Number
    In the function module import
    give as
    I_PO_NUM     TYPE     Z_TT_PONUM     opt  pass value Select options  PO Number
    Hope this is exactly what you want to know.
    So you create a structure simliar to mine but the low an high whould be your component
    then a table type  and then include that in the BAPI.
    Then pass your select-option value to this BAPI when you call this BAPI in the program

  • ABAP Import Phase error during Install

    Hi out there. I am installing an ERP system ECC 6.0 SR3 with just the AS ABAP and ECC components. It is now on the ABAP import phase and returns the error that certain ABAP objects are failing out of the 112 objects that is processing. Current examples are : -
    =============================================================================
    Loading of 'SAPSDIC_2' import package: ERROR
    (DB) ERROR: DDL statement failed
    (CREATE  INDEX "VRSX2~1" ON "VRSX2" ( "RELID" , "OBJNAME" , "VERSNO"  ) )
    DbSlExecute: rc = 99
      (SQL error -602)
      error message returned by DbSl:
    =============================================================================
    Loading of 'DD03L' import package: ERROR
    ERROR : Execute for create index SEOSUBCO~001 on SEOSUBCO failed (dbrc=99).
      (SQL error -602)
      error message returned by DbSl:
    SQL-Statement: CREATE  INDEX "SEOSUBCO~001" ON "SEOSUBCO" ( "CLSNAME" , "CMPNAME" , "SCOTYPE"  )
    =============================================================================
    Loading of 'SAPAPPL2_9' import package: ERROR
    ERROR : Execute for create index SEOSUBCO~001 on SEOSUBCO failed (dbrc=99).
      (SQL error -602)
      error message returned by DbSl:
    SQL-Statement: CREATE  INDEX "SEOSUBCO~001" ON "SEOSUBCO" ( "CLSNAME" , "CMPNAME" , "SCOTYPE"  )
    =============================================================================
    I wish to know how else can 1 work around this ABAP import phase with errors such as these? Is there a manual procedure I can perform for this phase during installations so to avoid these errors that come up. And then re-run the install that goes past this?
    Any help will be greatly appreciated.
    Thanks in advance.

    Hi
    Try increasing your shared pool size
    login to database level
    sqlplus "/as sysdba"
    >show parameter shared_pool_size;
    if the value is some thing aroung 150 to 200 MB increase it to 250MB
    >alter sytem set shared_pool_size=250M scope=both;
    Hope this will solve your problem
    Regards
    Uday

  • How to pass import parameter it_header_guid to FM CRM_ORDER_READ

    Hi,
    I have an internal table with only one field GUID of type CRMT_OBJECT_GUID.
    Now I need to pass this into the import parameter of the FM CRM_ORDER_READ.
    I tried in many ways but getting a type conflict error.
    <removed_by_moderator>
    Thanks,
    Madhurima
    Edited by: Julius Bussche on Sep 15, 2008 12:49 PM

    Hi Madhurima,
    Post CRM Technical or Functional related queries in "Customer Relationship Management (CRM) - General & Framework" available under SAP Solutions in Expert Forums.
    And regarding your question,
    Your guid should be of  "CRMT_OBJECT_GUID_TAB" type and not CRMT_OBJECT_GUID.
    Eg,
    DATA : IT_GUID TYPE CRMT_OBJECT_GUID_TAB.
    APPEND '488628CFB8C600B0E1008000C0090137' TO IT_GUID.
    CALL FUNCTION 'CRM_ORDER_READ'
        EXPORTING
          IT_HEADER_GUID       = IT_GUID
    Hope this helps.
    Thanks.
    Best Regards,
    Arun Sankar.

  • Usage of Import parameter DUE_DATE of BAPI_OUTB_DELIVERY_CREATE_SLS

    Hello experts,
    Can I ask how one of the import parameter "DUE_DATE" works?
    Documentation on BAPI says that:
       Delivery creation date (DUE_DATE)
       The delivery creation date selected is December 12 9999, unless specified otherwise.
    However, it does not change any date within LIKP - for example, LIKP-BLDAT.
    I searched around some more and wonder if it is used as selection parameter to create deliveries.
    Then I tested by creating sales order where delivery date is today (quantity is confiemed on today's date) and tried the BAPI again with some patterns.
    If I input the sales order for SALES_ORDER_ITEMS-REF_DOC, delivery is created anyway regardless the date in DUE_DATE.
    Then I deleted SALES_ORDER_ITEMS-REF_DOC, and tried with DUE_DATE only - past date, today's date, and future date.
    But delivery was not created in all the case.
    My assumptionwas sales order is picked and delivery is created if DUE_DATE is today or so even though SALES_ORDER_ITEMS-REF_DOC is not filled.
    So I'm confused
    Do any of you know how this parameter is used?
    Thank you very much and best regards,
    Midori

    Hi Sampath,
    I tried both the FM's and couldn't work, I was looking all the user exits and BADI's(there were some posts in SDN with all user exits and BAID's ) and non seems to be talking about this problem. Could you please suggest me if you know something?
    I tried in service market place and couldn't find any notes also.
    and one more question you have written i should try IMPLICTLEY for User exit. could you please tell me what does this mean?
    Thanks
    SB

  • How to use ET_ATTACH importing parameter Function module BBP_PD_SC_CREATE

    hi,
    how to use ET_ATTACH importing parameter of Function module BBP_PD_SC_CREATE, my requirement is to create SC with attachment.
    an example would really help.
    Kind Regards,
    Kailash.

    Hi,
    Generally we create the SC from ITS or Portal, and there in the Create SC screen , once you add the item into the shopping cart , in the Item details, there is the section called , Documents and Attachements, where in you can upload the attachments which ever you want. Sometimes the extn .DOC, .pdf and .xls are allowed. but that also you can check which are the Authorized files extns avaialbe in Backend R/3.
    Using the FM RFC_READ_TABLE, in table pass TDWP and in the i_field pass 'APPSFX' and then you can get the authorized file formats. in Backend Transaction DC30 you can verify which are the allowed file formats.
    Moreover for restricting the User from uploading the attachment BADI BBP_ITEM_CHECK_BADI can be implemented for raising the error message if required.
    Regarding the ET_ATTACH, it is the structure of type BBPT_PDS_ATT_T,  so you have to provide the complete details for this structure. Like : GUID, P_GUID ,LOGICAL_SYSTEM, DESCRIPTION, URL, TYPE,DISP_URL, PHIO_EXT ,etc.
    Once all the entries are fine.
    You can create the SC, but the recommeded way for creating the SC is thru ITS or Portal.
    I hope this will help. Feel Free while asking questions.
    Thanks and Regards,
    Ankur Goyal

  • Create SAP RFC iView with a structure as import parameter

    Hello All,
    I'm creating a SAP RFC iView from Portal SAP 7.4.
    I try call a RFC that have as import parameter a structure with various fields, but the portal recognizes the structure as string field, then I cannot fill the fields values, and when  I do a preview the iview, the following error occurs:
    Function execution failed. Exception message: class java.lang.String:null incompatible with class com.sapportals.connectors.SAPCFConnector.execution.structures.RecordWrapper:sap.com/[email protected]MultiParentClassLoader@80d4ed6@alive
    And only is possible select a output object.
    Exists any way of receive a structure or a table as import parameter?, and as output parameters more of a element?
    Thanks for your collaboration.

    Hello All,
    I'm creating a SAP RFC iView from Portal SAP 7.4.
    I try call a RFC that have as import parameter a structure with various fields, but the portal recognizes the structure as string field, then I cannot fill the fields values, and when  I do a preview the iview, the following error occurs:
    Function execution failed. Exception message: class java.lang.String:null incompatible with class com.sapportals.connectors.SAPCFConnector.execution.structures.RecordWrapper:sap.com/[email protected]MultiParentClassLoader@80d4ed6@alive
    And only is possible select a output object.
    Exists any way of receive a structure or a table as import parameter?, and as output parameters more of a element?
    Thanks for your collaboration.

  • Input parameter error: "string too long"

    Hi,
    SAP4Rails and SAPNWRFC run really well now, and I have not experienced a problem for a long, long time.
    However, in an RFC I want to use, there is an import parameter (a plain value), which is of the type SYSUUID. The definition of this type says
    <Format - Data Type "RAW" - No. characters "16"> and <Output Characteristics - Output Length "32">. Locally it works with 32 characters of input, but if I try to call the RFC through SAP4Rails, the error "RfcSetByte string too long" occurrs. Any idea, why this could be?
    Thanks a lot in advance,
    Bernd

    This maybe a bug - if you can compile your own sapnwrfc can you try finding the following code:
        if (RSTRING(value)->len > max)
            rb_raise(rb_eRuntimeError, "RfcSetByte string too long: %sn", StringValueCStr(value));
    and changing it to:
    code]
        if (RSTRING(value)->len > max*2)
            rb_raise(rb_eRuntimeError, "RfcSetByte string too long: %s\n", StringValueCStr(value));
    [/code]
    and let me know what effect that has.
    Cheers.

  • Optional import parameter in abap webservice

    I am using ECC 6.40. I have generated a webservice for a function module. In this function module i have an import parameter refering to a structure defined in data dictionary (SE11).
    The import parameter is optional. I see this in the virtual interface of the webservice. But i would also like to make each field of the structure optional. Goal is that the WSDL will have nillable fields or minoccurs = 0.
    What i would like to have is like the wsdl from the bapi BAPI_CUSTOMER_CREATEFROMDATA1
    <xsd:element name="PI_COMPANYDATA" minOccurs="0" type="s0:BAPIKNA106" />
    - <xsd:complexType name="BAPIKNA106">
    - <xsd:sequence>
    - <xsd:element name="TITLE" minOccurs="0">
    - <xsd:simpleType>
    - <xsd:restriction base="xsd:string">
      <xsd:maxLength value="30" />
      </xsd:restriction>
      </xsd:simpleType>
      </xsd:element>
    - <xsd:element name="TITLE_KEY" minOccurs="0">
    - <xsd:simpleType>
    - <xsd:restriction base="xsd:string">
      <xsd:maxLength value="4" />
      </xsd:restriction>
      </xsd:simpleType>
      </xsd:element>
    In my case i get for the my defined structure ZcvClientfilterRec:
    <xsd:element name="FilterLow" minOccurs="0" type="tns:ZcvClientfilterRec" />
    - <xsd:complexType name="ZcvClientfilterRec">
    - <xsd:sequence>
      <xsd:element name="Clientno" type="n0:char10" />
      <xsd:element name="Clientgroup" type="n0:char2" />
      <xsd:element name="Clientstatus" type="n0:char3" />
    Can anyone help me with this or tell my how i can generate the wsdl so it looks like the standard bapi

    Hi everyone,
    Just faced the same problem, and while it's almost 2013, SAP doesn't have a solution for this problem, as stated in note 1341947.
    Cheers, Fred

Maybe you are looking for

  • How do i transfer photos from icloud to ipad

    How do i transfer photos from icloud to ipad

  • IMac 2.0 or 2.4GHz Intel Core 2 Duo

    Can't decide if I should get the iMac 2.0GHz or 2.4GHz Intel Core 2 Duo. Will the 2.0 handle Garageband, iMovie and iDVD or will I need to get the 2.4GHz. I do plan to add more memory either way. Will I still be happy with the 2.0 in 3 years? I'd app

  • Display Resolution on Solaris10

    I have downloaded and installed the free version of Solaris 10 I apologise if I appear dumb but how do I change the dislay resolution? Thanks in advance Meldrew

  • IPod touch  3rd Generation screen is very odd after updating

    I just updated my hardware on my iPod touch 3rd Gen. and the screen is HUGE! It's like it doubled in size. Is there any way to fix this problem? I have tried to restore the iPod but it did the same thing when I restarted it. Thanks for your help!!

  • Star Wars scrolling effect

    Does anybody know how to create the Star Wars scrolling into the distance titling effect? I assumed it was just a matter of manipulating the aspect ratio of the frame inside Livetype, but I couldn't find the controls to do this! How do I create this