Import parameters for FM's

Hi
  I have to use the FM 'SERNR_DELETE_FROM_HU' to delete the existing serial number and FM 'SERNR_ADD_TO_HU' to add a new serial number. Can anyone please  tell me what are the import parameters for these FM's.
Thanks in advance.
Vasudha

which system are you using?
i guess the FM name is :SERNR_DEL_FROM_HU
you can just see the where used list of that FM.
its used in LV51PF17, use in similar way

Similar Messages

  • What are  import parameters for bapi

    please tell me what are the minimum  fields i  has to pass for bapi
    " BAPI_SALESDOCUMENT_CHANGE ".
    if  possible  give me with example
    Moderator message: please (re)search yourself first.
    Edited by: Thomas Zloch on Dec 8, 2010 9:07 AM

    Hello,
    It will all depend on what you need to change in the sales order.
    For example, if you want to change something in the header only, then you need to pass ORDER_HEADER_IN and ORDER_HEADER_INX.
    Similarly, if you want to change something only in the sales items then you need to pass the value in SALESDOCUMENT, ITEM_IN and ITEM_INX.
    So, it will all depend on your need.
    But, always pass a table in RETURN so that you get to know whether BAPI has executed successfully or there is some error in the processing.
    Hope it helps.
    Regards,
    Himanshu

  • Selection for up to 3 import parameters

    Hi,
    I am creating a FM for a BAPI that has to select data based on the following prerequisites:
    2 tables are to be used:
    table_h:
    salesman_no  key     BusinessPartner
    record last changed   DATS
    table_i
    Salesman_no  key    BusinessPartner
    ProductID                
    ProductPrice
    A bapi has to be generated from a FM that has these import parameters:
    I_Salesman_no1
    I_Salesman_no2
    I_Salesman_no3
    The user who requests the data can ask for 1 to 3, but at least 1. That gives the 3 possible combination of searched:
    Salesman_no1 only (mandatory for search)
    Salesman_no1 and Salesman_no2
    Salesman_no1 and Salesman_no2 and Salesman_no3
    The search has to find productprices for either 1, 2 or 3 salesmen and return the data to an output table within the FM.
    What puzzles me is: How to handle the various numbers of import  parameters / selections in the source code for the FM ?

    You can create a range and fillup the values in the range and use that range in the selection.
    Like:
    DATA: R_KUNNR TYPE RANGE OF KNA1-KUNNR,
    LA_KUNNR LIKE LINE OF R_KUNNR.
    IF I_IMPORT_1 IS NOT INITIAL.
    LA_KUNNR-SIGN = 'I'.
    LA_KUNNR-OPTION = 'EQ'
    LA_KUNNR-LOW = I_IMPORT_1.
    APPEND LA_KUNNR TO R_KUNNR.
    CLEAR LA_KUNNR.
    ENDIF.
    IF I_IMPORT_2 IS NOT INITIAL.
    LA_KUNNR-SIGN = 'I'.
    LA_KUNNR-OPTION = 'EQ'
    LA_KUNNR-LOW = I_IMPORT_2.
    APPEND LA_KUNNR TO R_KUNNR.
    CLEAR LA_KUNNR.
    ENDIF.
    IF I_IMPORT_3 IS NOT INITIAL.
    LA_KUNNR-SIGN = 'I'.
    LA_KUNNR-OPTION = 'EQ'
    LA_KUNNR-LOW = I_IMPORT_3.
    APPEND LA_KUNNR TO R_KUNNR.
    CLEAR LA_KUNNR.
    ENDIF.
    SELECT KUNNR
    INTO IT_KNA1
    FROM KNA1
    WHERE KUNNR IN R_KUNNR.
    Regards,
    Naimesh Patel

  • Need for separate BAPI Structure for import parameters

    Hi All,
    I have a doubt regarding the logic behind declaring a separate BAPI structure for import paramters and use it.
    Let me explain you clearly,
    Whenever we pass an import parameter(like vendor number/sales order number) to an normal function module we declare it using either like/type referring to an existing dictionary structure field. but when the number of import parameters increase we may think of creating a single structure with all and use it for simplicity.
    But when it is the case with a BAPI, it is suggested that we create a structure even when we have single import parameter.
    for example.
    supposing that we create a normal function module to get the details of a given Vendor, then we declare the import parameter as below
    VENDORNO LIKE LFA1-LIFNR
    But <b>if we observe the BAPI_VENDOR_DISPLAY, We find that declaration for the same as
    VENDORNO like BAPIVENDOR_ID-VENDOR_NO,
    where BAPIVENDOR_ID is a separate BAPI sturcture created and assocaited only with Business object "Vendor".</b>
    I tried it by declaring as for a normal FM, even then it work fine.
    Now my question is,
    If SAP Suggests that we have a separate structure for all import parameters starting with name BAPI and use only those fields to reference with,
    what is the logic/reason behind asking so.
    I had created a BAPI with paramters referring to standard database fields like
    VENDORNO like LFA1-LIFNR and it is still working
    <b>I had also written interface programs using VB/ .NET to access the data from my own BAPI and standard BAPI's and both were working alike.</b>
    so anyone <b>please give me the reason/logic behind declaring a separate BAPI stuture for all the import parameters to be used in a method</b>.
    Thanks in advance,
    Lakshmi

    I would say that it really comes down to simplicity.   Think of it this way,  you are not an ABAPer, you must right a VB or a java program to call this BAPI from outside the system, you know nothing about R/3 or its data structures/tables.    Now that said,  think of what it would be like if all of the fields in the BAPI signature were like we find in the standard tables,  LIFNR, etc.  What is LIFNR, right?    Since we are ABAPers we know that it is Vendor, but for others,  they may not know.  This is why you will find the signature of a BAPI very descriptive, notice that all of the fields describe the field in english.  This is good for non-ABAPers.   To organize all of these fields that may be used in the BAPI interface,  it is good to put all of them in one defined structure,   that way they are all in one place, and can be referenced as such.    Again,  BAPIs are designed to be used by ABAPers and non-ABAPers, so simplicity is important.
    Regards,
    Rich Heilman

  • How to log input parameters for Function Modules?

    Hi,
    I need to create a Logging system to trace input parameters for function modules.
    The log functionality could be done by developing a class method or a function module (For example 'write_log'), and calling it within each function module that I want to log. The 'write_log' code should be independent from the interface of the Function Module that I want to log.
    For example, I'd like to write a function/class method that can log both these functions modules:
    Function DummyA
       Input parameters: A1 type char10, A2 type char10.
    Function DummyB
       Input parameters: B1 type char20, B2 type char20, B3 type char20, B4 type Z_MYSTRUCTURE
    Now the questions...
    - Is there a "standard SAP" function that provide this functionality?
    - If not, is there a system variable in which I can access runtime all parameters name, type and value for a particular function module?
    - If not, how can I loop at Input parameters in a way that is independent from the function module interface?
    Thank you in advance for helping!

    check this sample code. here i am capturing only parameters (import) values. you can extend this to capture tables, changin, etc.
    FUNCTION y_test_fm.
    *"*"Local Interface:
    *"  IMPORTING
    *"     REFERENCE(PARAM1) TYPE  CHAR10
    *"     REFERENCE(PARAM2) TYPE  CHAR10
    *"     REFERENCE(PARAM3) TYPE  CHAR10
      DATA: ep TYPE STANDARD TABLE OF rsexp ,
            ip TYPE STANDARD TABLE OF rsimp ,
            tp TYPE STANDARD TABLE OF rstbl ,
            el TYPE STANDARD TABLE OF rsexc ,
            vals TYPE tihttpnvp ,
            wa_vals TYPE ihttpnvp ,
            wa_ip TYPE rsimp .
      FIELD-SYMBOLS: <temp> TYPE ANY .
      CALL FUNCTION 'FUNCTION_IMPORT_INTERFACE'
        EXPORTING
          funcname                 = 'Y_TEST_FM'
    *   INACTIVE_VERSION         = ' '
    *   WITH_ENHANCEMENTS        = 'X'
    *   IGNORE_SWITCHES          = ' '
    * IMPORTING
    *   GLOBAL_FLAG              =
    *   REMOTE_CALL              =
    *   UPDATE_TASK              =
    *   EXCEPTION_CLASSES        =
        TABLES
          exception_list           = el
          export_parameter         = ep
          import_parameter         = ip
    *   CHANGING_PARAMETER       =
          tables_parameter         = tp
    *   P_DOCU                   =
    *   ENHA_EXP_PARAMETER       =
    *   ENHA_IMP_PARAMETER       =
    *   ENHA_CHA_PARAMETER       =
    *   ENHA_TBL_PARAMETER       =
    *   ENHA_DOCU                =
       EXCEPTIONS
         error_message            = 1
         function_not_found       = 2
         invalid_name             = 3
         OTHERS                   = 4
      IF sy-subrc = 0.
        LOOP AT ip INTO wa_ip .
          MOVE: wa_ip-parameter TO wa_vals-name .
          ASSIGN (wa_vals-name) TO <temp> .
          IF <temp> IS ASSIGNED .
            wa_vals-value = <temp> .
          ENDIF .
          APPEND wa_vals TO vals .
        ENDLOOP .
      ENDIF.
    ENDFUNCTION.

  • How to differentiate which is exporting and importing parameters when calling dynamically using CL_ABAP_OBJECTDESCR

    Hello All,
    First of all sorry for posting the question in general abap queries, since somehow I am not able to post in ABAP objects discussions.
    My requirement is
    Step 1 :  To get table name as input  and dynamically derive all fields which is going to be passed as parameters for a method
    I did this using  cl_abap_typedescr class
    Step 2:  Then Pass the values into the relevant fields using below code
    ptab_line-name = 'DATA_TAB'.
    ptab_line-kind =
    cl_abap_objectdescr=>changing.
    GET REFERENCE OF text_tab INTO
    ptab_line-value.
    INSERT ptab_line INTO TABLE ptab.
    Step 3:  Later I am calling dynamic class like
        CALL METHOD (class)=>(meth)
          PARAMETER-TABLE
            ptab
          EXCEPTION-TABLE
            etab.
    I have read most of the post using Class cl_abap_typedescr=>describe_by_name to get parameter where I have to give correct parameter type.
    But my issue is that I also need to know which fields are acting as importing , exporting and changing parameter.
    Is there anyway to determine and pass method's paramter type as well ?
    Thanks!
    Regards,
    Ramya

    Might be I can use table view VSEOMEPARA

  • Exporting and importing parameters

    Hi,
    Can any one explain how the exporting and imopting parameters work in case of function call.
    for example in the folowing code:
    CALL FUNCTION ‘DOWNLOAD’
         EXPORTING
              FILENAME     = <default file name>
              FILETYPE     = <default file type>
              MODE          = <create new or extend>
         IMPORTING
              FILESIZE     = <size of file in bytes>
         TABLES
              DATA_TAB     = <internal table to transfer>
         EXCEPTIONS. . . .
    Do we have to specify the importin parameters also in the program, and if yes what is the use of specifying them.
    Thanks,
    Dhiraj

    You need to fill only export parameter and tables parameter
    CALL FUNCTION ‘DOWNLOAD’
    EXPORTING
    FILENAME = <default file name> -> specify local file name
    FILETYPE = <default file type> 'ASC'
    MODE = <create new or extend> comment mode
    IMPORTING -> comment import parameters
    FILESIZE = <size of file in bytes> comment
    TABLES
    DATA_TAB = <internal table to transfer> -> give internal table
    EXCEPTIONS. . . . uncomment all exceptions
    this FM will download the data from internal table data to local file as like.txt or .xls
    Thanks
    Seshu

  • How does one pass import parameters to a report within a method?

    Hello all,
    Well how does one  pass import parameters to a report which is within a method ...end method.
    for example :
    method 123
    SUBMIT reportname using selection '1000'
    endmethod .
    Here we need to pass values into the selection screen and run the report for those values.
    The values are say 'ABC'   (  tablename "DEF" and field name "HIJ" ).
    I hope the question is clear, awaiting your response 
    Thanks and Regards,
    Sandeep.

    Go to SE24
    Parameters: Give the Parameter name, Typing method is "Type" is the domain type that u are selecting, say for e.g :  Parameter is "P_CONT" , its associated type "CHAR32" etc
    For Select Options:  Parameter name say "S_CUST", Type"importing". For this you need to give an associated type which must be created as "TABLE TYPE " in SE11. That table type needs to have a "LINE TYPE" .
    LINE TYPE is a Structure created with components "SIGN, OPTION, LOW & HIGH" for select-Options.
    NOTE: for a Table type related to Customer data fields "say KUNNR", the line type created must have the Component Type and data Type corresponding to the Data Element associated with "KUNNR" ;i.e: "CHAR" etc.
    See if this is clear to you or revert back in case of any Confusion.

  • What are minimum passing parameters for function module CS_BOM_EXPL_MAT_V2

    Hi
    Im going to use FM: CS_BOM_EXPL_MAT_V2 and I want to only pass WERKS, but when I execute FM is gives exception as CALL_INVALID.
    I saw all the Import parameters are Optional, but I think I need to pass more inputs to FM.
    Please let me know what are MINIMUM input parameters required to run this FM
    Thanks

    Hi
    In my requirement, there are range of WERKS and MATNR which has to be given from selection screen, where as In CS_BOM_EXPL_MAT_V2 function module I can only give single value for WERKS and MATNR.
    Can any one guide me how can I implement this?

  • Get Import Parameters of a Function Module

    Hi,
    Is there a way to find the import parameters and their Data Type of a Function Module in any Table??
    For example, i know i can find the name and the include of the Funtion Module in TFDIR. Is there anywhere i can find the list of Import Parameters and their Data Types??
    Thanks and Regards,
    Kaeyur

    you can use
    Data: lv_type type c.
    clear:lv_type.
    DESCRIBE FIELD p_bukrs TYPE lv_type.
    It will return C as its type C and p_bukrs is selection screen parameter.
    hope this helps.

  • Import parameters in a FM with a previous date

    Dear experts,
    I need to default the import parameters in one of my function modules with a previous date.
    For eg: if i hiit F8 on my Z** function module the default value should be YESTERDAYS date NOT todays date.
    How can i do this?
    Thanks
    Ricky

    Check in the code whether the import parameter was supplied, and if it wasn't, then calculate the value by deducting 1 from today's date.
    So something like:
    IF I_DATE IS NOT SUPPLIED.
      I_DATE = SY-DATUM - 1.
    ENDIF.
    Edit: Upon re-reading your question, I see that you want to set the default only in the FM test environment... off the top of my head, I don't know a way to calculate the previous day like that. But the above code works as setting a default if the FM is called from a program - provided the parameter is set up as 'Pass by value'.
    Edited by: Tamas Hoznek on Apr 21, 2011 12:07 PM

  • Import parameters in jco

    All,
    Can anyone tell me how to use a table import parameters in a jco call
    Thanks

    One Example using Sap Enterprise Connector with JCO:
    RFC: BAPI_FLIGHT_GETLIST
    EnterpriseConectorTest connector = null;
    try {
         connector = new EnterpriseConectorTest();
         connector.client = JCO.getClient(POOL_NAME);
         System.out.println("Client: " + connector.client.getAttributes());
         Bapi_Flight_Getlist_Input input = new Bapi_Flight_Getlist_Input();
         BAPI_FLIGHT_GETLIST_PortType proxy = new BAPI_FLIGHT_GETLIST_PortType();
         proxy.messageSpecifier.setJcoClient(connector.client);
         //BapisfldatType datType = new  BapisfldatType();
         //datType.setAirline("AA");
         //Bapi0002_1Type types = new Bapi0002_1Type();
         //types.setComp_Code("AA");
         input.setAirline("AA");
         Bapi_Flight_Getlist_Output output = proxy.bapi_Flight_Getlist(input);
         BapisfldatType[] list = output.getFlight_List();
         System.out.println("Size: " + list.length);
         for (int i = 0; i < list.length; i++) {
              BapisfldatType type = list<i>;
              System.out.println(type.getAirline() + " - " + type.getCityfrom());
    } catch (Exception e) {
         e.printStackTrace();
    Regards
    Marcos

  • How to run Import/Export for Portal Page

    Hi all !
    I have to export the Portal page .What are the steps I have to follow to complete the process ?I'm new to Oracle portal..
    Please help . Thanks in advance
    chris

    You could check out the Export/Import FAQ for some of your questions
    http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/OTN_CONTENT/MAINPAGE/DEPLOY_PERFORM/EXPORT_IMPORT_FAQ_1120.HTM
    Also see if you can get access to configuration guide for your version of portal. There has to be a chapter on how to use Export/Import utilities in Portal
    The simplest way to explain the process is
    1. Click on Export link next to the object to be exported
    2. Give a name for the transport set and export it.
    3. Download scripts for migrating the content and run it in export mode to generate the dump file.
    4. FTP the script and dump file to target
    5. Run the script in import mode to transfer the contents of dump file in target portal. The usage of scripts in export/import mode is given when you run the script without any parameters
    6. Go to the Export/Import portlet and select the transport set for import.
    7. View the logs to see if the migration has been successful.
    8. Go to the navigator and check if the object you migrated has been brought in successfully.

  • Archivelink Parameters for Adobe Form

    Hello,
    I am trying to Archive outbound correspondence (SAP Adobe Form) to a content repository that I set up for Inbound correspondence using Archivelink.
    Archivelink is configured and working for Inbound corresponence that resides on my local drive, however I am unsure how to send a form outbound using the Import Parameters in the Adobe Form generated Function Module. 
    I am trying to test this using a SAP standard delivered form: (F140_ACC_STAT_01) (function module: /1BCDWB/SM00000012).
    Can someone please help me with specific values needed for the Parameters to get Outbound archiving to work properly?
    Some of the below params are obvious (i.e. langu, country, etc). However, some are ambiguous even after reading any documentation that I have found (i.e. Function, sap object, ar_object, object id). I tried to drill down on the params data el. to find value tables, but had no luck.
    Here is are my related objects:
    Business Object = BUS1006, Cont. Repos = Z1, Document Cl = 'PDF', Doc Type = 'ZBPDOCTYP' (w/pdf doc cl), Link tbl = 'TOA01'.
    Here is the FM structure, can you please tell me how to fill it based on your experience and the above given values?
    /1BCDWB/DOCPARAMS
           LANGU       =
           COUNTRY   =
           FILLABLE   =
           DYNAMIC   =
           DARATAB
                 FUNCTION  =
                 MANDANT  =
                 DEL_DATE  =
                 SAP_OBJECT  =
                 AR_OBJECT  =
                 OBJECT_ID  =
                 FORM_ID  =
                 FORMARCHIV  =
                 RESERVE  =
                 NOTIZ  =
           REPLANGU1  =
           REPLANGU2  =
           REPLANGU3  =
    Your help is greatly appreciated. Thank you.
    Kind Regards,
    Jason

    Hi,
    Do you want to know what values have to be passed to the following parameters:
                 FUNCTION  =
                 MANDANT  =
                 DEL_DATE  =
                 SAP_OBJECT  =
                 AR_OBJECT  =
                 OBJECT_ID  =
                 FORM_ID  =
                 FORMARCHIV  =
                 RESERVE  =
                 NOTIZ  =
    If yes? Then I could help a lil bit here:
    MANDANT = client (by default its taken as the logon client)
    DEL_DATE = date of deletion of the Outgoing document stored
    SAP_OBJECT = Business object = BUS1006
    AR_OBJECT =  Document type = ZBPDOCTYP
    OBJECT_ID = would ideally be the document number (has to be passed by the calling application)
    RESERVE = document class = PDF
    I am not sure of the FORM_ID and FORMARCHIV.
    Generally the function module ARCHIV_CREATE_OUTGOINGDOCUMENT is called for creating the ArchiveLink documents. Applications like MM, FI call this function module. This is further called by the function module CONVERT_OTF_AND_ARCHIVE. If you could check these function modules, it might be of some help.
    Best Regards,
    Sindhu Sreedharan.

  • Find Import user for transports

    Hi,
    We need to write a report which will run on production and find the import user certain transports.
    I know how to obtain the user who released the transport (in E070), and
    I am aware that the transport history in transaction STMS shows the actual import user, but I have not been able to find the table/function module that will return this information to be used in my program.
    Does anyone know how to obtain the import user for a transport?
    Regards,
    Eugene

    Hello Eugene
    The function module which is behind the <i>Transport History</i> button is:
    - TMS_TM_GET_HISTORY
    Call this function module using the following parameters:
    IV_SYSTEM = <sysid>                    " e.g. E01
    IV_DOMAIN = DOMAIN_<sysid>      " e.g. DOMAIN_E01
    and set values for CV_START_DATE and CV_END_DATE. I believe the functions of the other IMPORTING parameters are quite obvious.
    In addition to this function module have a look at threads:
    Table Name for Transport Requests & Program name
    There you will find another interesting function module (<b>TR_READ_GLOBAL_INFO_OF_REQUEST</b>) described.
    Regards
      Uwe

Maybe you are looking for