Function Bulder / Importing parameters

do i need to call 3 times my function builder if i ve 3 import parameters s it.....function builder ll be validatin all the 3 import parameters dependin upon which s importd

Hi...
You are having 3 import parameters in your Function module. Then you can pass the 3 import parameters in a Single CALL FUNCTION 'your function module'.
No need to call it 3 times.
If you have still doubt explain your scenario clearly.. so that we can guide you...

Similar Messages

  • 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.

  • Bapi Function call from Crystal reports 2008. import parameters syntax.

    Dear,
    I have an issue with calling a function directly from Crystal reports (2008) in the R3 system.
    (if this belongs in another thread , please add the link if moved !)
    I try to get data through function "BAPI_CLASS_GET_CLASSIFICATIONS".
    Till now all possible input parameters have no data-result.
    I already read other threads stating that 'for example' the Language key needs to be provided in a single character. 'E' in stead of 'EN'.
    I also already created a Z-wrap-function that fills out all input parameters 'hardcoded'. This works.
    clearly there are som syntax changes in passing the values to R3 when called from Crystal Reports.
    Can someone state which syntax has to be followed for numeric fields, for datefields etc. (so when i make these dynamical, I know which syntax should be the outcome of the formula)
    in my function that doesn't work I use these selections:
    (this function is called in a standard report only calling this function)
    {BAPI_CLASS_GET_CLASSIFICATIONS_1.I_LANGU_ISO} = "E" and
    {BAPI_CLASS_GET_CLASSIFICATIONS_1.I_LANGU_INT} = "E" and
    {BAPI_CLASS_GET_CLASSIFICATIONS_1.T_CLASS_OBJECTS.OBJECT_TYPE} = "MARA" and
    {BAPI_CLASS_GET_CLASSIFICATIONS_1.T_CLASS_OBJECTS.OBJECT_KEY} = "000000000000000085" and
    {BAPI_CLASS_GET_CLASSIFICATIONS_1.I_CLASSNUM} = "DSWTEST" and
    {BAPI_CLASS_GET_CLASSIFICATIONS_1.I_CLASSTYPE} = "001" and
    {BAPI_CLASS_GET_CLASSIFICATIONS_1.I_KEY_DATE} = Date (2011, 08, 05)
    I already tried other languages or the 'EN' as input.
    (I would like to know how the date is passed exaclty to R3.)
    The function is of course RFC enabled.
    when I call the my Z-function with predefined inputparameters in R3 it does give the wanted result.
    FUNCTION ZBAPI_CLASS_GET_CLASSIFICATION.
    ""Local Interface:
    *"  TABLES
    *"      OBJECT_CLASSIFICATION STRUCTURE  BAPI_OBJECT_VALUES
    *"      CLASS_OBJECTS STRUCTURE  BAPI_CLASS_OBJECTS
    data ZOBJECT_CLASSIFICATION type TABLE OF BAPI_OBJECT_VALUES.
    data ZCLASS_OBJECTS  type TABLE OF BAPI_CLASS_OBJECTS WITH HEADER LINE.
    ZCLASS_OBJECTS-OBJECT_KEY = '000000000000000085'.
    ZCLASS_OBJECTS-OBJECT_TYPE = 'MARA'.
    Append ZCLASS_OBJECTS.
    CALL FUNCTION 'BAPI_CLASS_GET_CLASSIFICATIONS'
      EXPORTING
        CLASSTYPE                    = '001'
        CLASSNUM                     = 'DSWTEST'
    *   KEY_DATE                     = SY-DATUM
    *   LANGU_ISO                    =
    *   LANGU_INT                    =
    *   CHARACTS_OF_CLASS_ONLY       =
    * IMPORTING
    *   RETURN                       =
      TABLES
        OBJECT_CLASSIFICATION        = ZOBJECT_CLASSIFICATION
        CLASS_OBJECTS                = ZCLASS_OBJECTS
    OBJECT_CLASSIFICATION[] = ZOBJECT_CLASSIFICATION[].
    ENDFUNCTION.
    please advise.
    once again if this should be moved to another forum , add the link please!

    Dear,
    I just debugged my Z-function, after adding all input parameters as in the standard BAPI function.
    All parameters seems to be passed correctly except from the table parameters from
    CLASS_OBJECTS
    So all I_parameters are passed :
    {ZBAPI_CLASS_GET_CLASSIFICATION.I_LANGU_INT} = "EN" and
    {ZBAPI_CLASS_GET_CLASSIFICATION.I_LANGU_ISO} = "EN" and
    {ZBAPI_CLASS_GET_CLASSIFICATION.I_KEY_DATE} = Date (2011, 08, 05) and
    {ZBAPI_CLASS_GET_CLASSIFICATION.I_CLASSNUM} = "DSWTEST" and
    {ZBAPI_CLASS_GET_CLASSIFICATION.I_CLASSTYPE} = "001" and
    {ZBAPI_CLASS_GET_CLASSIFICATION.I_CHARACTS_OF_CLASS_ONLY.BAPIFLAG} = ""
    but the table parameters aren't coming through:
    {ZBAPI_CLASS_GET_CLASSIFICATION.T_CLASS_OBJECTS.OBJECT_TYPE} = "MARA" and
    {ZBAPI_CLASS_GET_CLASSIFICATION.T_CLASS_OBJECTS.OBJECT_KEY} = "000000000000000085" and
    these are 'blanco' in the function.
    also after the function is executed and all data is retrieved, when passing the data back to Crystal reports, once again, the table result isn't passed to Crystal Reports.
    please advise

  • Importing parameters in Function Module SD_VBFA_ARRAY_READ_VBELV

    Hi All,
    Please let me know the use of importing parameters in the Function Module SD_VBFA_ARRAY_READ_VBELV.
    The importing parameters are,
    I_BYPASSING_BUFFER
    I_REFRESH_BUFFER
    I'm having problem of memory overflow in the function module so I thought these importing parameters may help me.
    Kindly explainn me the use of these importing parameters and tell me whether they help m out to avoid memory overflow problem.
    Thanks a lot in advance,
    Rama Krishna

    Hello Rama
    If you bypass the buffer the fm will always read directly from the DB.
    And if you refresh the buffer the buffer is cleared and will be filled again with every call of the fm.
    Regards
      Uwe

  • 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

  • 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

  • VBA and RFC - How to deal with tables in export/import parameters

    Hi,
    maybe one of you can support me...
    I have a couple of vba modules reading and writing data to SAP by means of function modules. As usual, they use export and import parameters as well as tables (in the table section). They work very well.
    Now, I want to execute some newer function modules and they don't use tables in the table section (because they're obsolete nowadays), instead they expect the tables as export resp. import parameters. I tried it in a couple of ways, without any success.
    Has anybody tried this before? And if so, do you mind share some snippets?
    Best regards, Thomas

    Hello Thomas,
    I think we discussed the same problem here, but unfortunately without any result. Please, take a look at this post and let us know.
    Cheers
    Stefan

  • How to call an eCATT programmatically with import parameters

    Hi there,
    I am using function module ECATT_EXECUTE to call test scripts from within ABAP test code, like below. Unfortunately, I am not able to pass my actual import parameter values. It seems that the interface does not provide a way to pass import parameters to the eCATT.
    Although posted in November, this is still an issue for me. Does anybody know an answer?
      call function 'ECATT_EXECUTE'
        exporting
          to_execute              = lt_script
          display_log             = space
          i_supress_output        = 'X'
        importing
          executed                = lt_executed
          logid                   = ls_logid
          trace_prot              = lt_trace
        exceptions
          nothing_to_do           = 1
          too_many_scripts_called = 2
          others                  = 3.
    Does anybody reading this have a solution?
    Thanks and regards,
    Rüdiger
    Edited by: Rüdiger Plantiko on Jan 17, 2008 3:05 PM
    Edited by: Rüdiger Plantiko on Jan 17, 2008 3:05 PM

    Hello Rüdiger,
    direct passover would be fine - well, I've come to get used to finding workarounds in SAP though. Maybe, the function module will support the missing parameters in some forthcoming release.
    Btw I switched over to tables ECTC_VAR / ECTC_DATA and pass obj_type = 'ECTC' to ECATT_EXECUTE, since test configurations can directly be executed.
    You don't happen to know what has to be done, if the call of ECATT_EXECUTE results in a dump? After correctly executing the test configuration. Looks like eCatt tries to put the resulting log to nowhere. Perhaps I have to initialize some kind of a log receiver first or set some option in the start profile? I passed DISPLAY_LOG = SPACE, and SUPPRESS_OUTPUT = 'X'.
    Dump was:
    Laufzeitfehler         OBJECTS_OBJREF_NOT_ASSIGNED
    Datum und Zeit         05.03.2008 17:37:00
    Zeile Quelltext
         1 METHOD http_send_and_receive .
         2
         3   DATA: l_errortext       TYPE string.
         4   DATA: l_http_subrc      TYPE sy-subrc.
         5 *----------------------------------------------------------------
         6
    >>>>>   im_http_client->request->set_data( data = im_request ).
         8
    Aktive Aufrufe/Ereignisse
    Nr.   Art          Programm                            Include                             Zeile
          Name
        6 METHOD       CL_HTTP_TESTZONE_RESULT=======CP    CL_HTTP_TESTZONE_RESULT=======CM00Q     7
          CL_HTTP_TESTZONE_RESULT=>HTTP_SEND_AND_RECEIVE
        5 METHOD       CL_HTTP_TESTZONE_RESULT=======CP    CL_HTTP_TESTZONE_RESULT=======CM00O    16
          CL_HTTP_TESTZONE_RESULT=>HTTP_REQUEST_NEWRESULTID
        4 METHOD       CL_HTTP_TESTZONE_RESULT=======CP    CL_HTTP_TESTZONE_RESULT=======CM00T    34
          CL_HTTP_TESTZONE_RESULT=>SEND_TO_RESULT_REPOSITORY
        3 METHOD       CL_APL_ECATT_LOG_TO_RESREP====CP    CL_APL_ECATT_LOG_TO_RESREP====CM001   400
          CL_APL_ECATT_LOG_TO_RESREP=>GET_LOG_DATA
        2 FUNCTION     SAPLECATT_EXECUTE                   LECATT_EXECUTEU01                     888
          ECATT_EXECUTE
        1 EVENT        ZDSD_SL_VIA_CATT                    ZDSD_SL_VIA_CATT                       26
          START-OF-SELECTION
    Regards + have a nice weekend,
    Matthias

  • UDF Importing Parameters

    Hi all,
    I have a user defined function which contains 32 importing parameters to pass to RFC for RFC lookup.
    But in UDF editor its allowing only 20 importing parameters to enter.
    Can any one help me out in this?
    please suggest me a best way to proceed.
    Thanks in advance,
    Sri.
    Message was edited by:
            sri kanth

    Hi sri,
    make two UDFs:
    The first write 20 parameters in an arrayList and writes it to the global container element
    The second read the global container element and the remaining parameters.
    Regards Mario

  • Validating import parameters in Functin module

    Hi Eveyone,
    Anybody let me know how to validate import parameters to Function module,
    if the sy-subrc not equal to 0, what i have to do.

    Hi Madhavi,
    When you pass some parameters to any Function  Module , i.e. Import Parameters, First thing we do is validation.
    Check for the respective data lements and validate them, If sy-subrc fails, then throw an exception, or raise an error message, by using standard procedure of  structure type BAPIRET2 (For RFC's) or throw any respective error message.
    Hope this will resolve your Query.
    Reward alll the helpful answers.
    Regards
    Nagaraj T

  • Fm import parameters

    hi all,
    when i call a function module in a program,   why are the import paramters (which are export parameters of FM)commented out initially?
    thanks

    Lets use an example.  Look at the function module GUI_DOWNLOAD.
    *"*"Lokale Schnittstelle:
    *"  IMPORTING
    *"     REFERENCE(BIN_FILESIZE) TYPE  I OPTIONAL
    *"     REFERENCE(FILENAME) TYPE  STRING
    *"     REFERENCE(FILETYPE) TYPE  CHAR10 DEFAULT 'ASC'
    *"     REFERENCE(APPEND) TYPE  CHAR01 DEFAULT SPACE
    *"     REFERENCE(WRITE_FIELD_SEPARATOR) TYPE  CHAR01 DEFAULT SPACE
    *"     REFERENCE(HEADER) TYPE  XSTRING DEFAULT '00'
    *"     REFERENCE(TRUNC_TRAILING_BLANKS) TYPE  CHAR01 DEFAULT SPACE
    *"     REFERENCE(WRITE_LF) TYPE  CHAR01 DEFAULT 'X'
    *"     REFERENCE(COL_SELECT) TYPE  CHAR01 DEFAULT SPACE
    *"     REFERENCE(COL_SELECT_MASK) TYPE  CHAR255 DEFAULT SPACE
    *"     REFERENCE(DAT_MODE) TYPE  CHAR01 DEFAULT SPACE
    *"  EXPORTING
    *"     VALUE(FILELENGTH) TYPE  I
    *"  TABLES
    *"      DATA_TAB
    *"  EXCEPTIONS
    *"      FILE_WRITE_ERROR
    *"      NO_BATCH
    *"      GUI_REFUSE_FILETRANSFER
    *"      INVALID_TYPE
    *"      NO_AUTHORITY
    *"      UNKNOWN_ERROR
    *"      HEADER_NOT_ALLOWED
    *"      SEPARATOR_NOT_ALLOWED
    *"      FILESIZE_NOT_ALLOWED
    *"      HEADER_TOO_LONG
    *"      DP_ERROR_CREATE
    *"      DP_ERROR_SEND
    *"      DP_ERROR_WRITE
    *"      UNKNOWN_DP_ERROR
    *"      ACCESS_DENIED
    *"      DP_OUT_OF_MEMORY
    *"      DISK_FULL
    *"      DP_TIMEOUT
    *"      FILE_NOT_FOUND
    *"      DATAPROVIDER_EXCEPTION
    *"      CONTROL_FLUSH_ERROR
    call function 'GUI_DOWNLOAD'
      exporting
    *   BIN_FILESIZE                  =
        filename                      =
    *   FILETYPE                      = 'ASC'
    *   APPEND                        = ' '
    *   WRITE_FIELD_SEPARATOR         = ' '
    *   HEADER                        = '00'
    *   TRUNC_TRAILING_BLANKS         = ' '
    *   WRITE_LF                      = 'X'
    *   COL_SELECT                    = ' '
    *   COL_SELECT_MASK               = ' '
    *   DAT_MODE                      = ' '
    * IMPORTING
    *   FILELENGTH                    =
      tables
        data_tab                      =
    * EXCEPTIONS
    *   FILE_WRITE_ERROR              = 1
    *   NO_BATCH                      = 2
    *   GUI_REFUSE_FILETRANSFER       = 3
    *   INVALID_TYPE                  = 4
    *   NO_AUTHORITY                  = 5
    *   UNKNOWN_ERROR                 = 6
    *   HEADER_NOT_ALLOWED            = 7
    *   SEPARATOR_NOT_ALLOWED         = 8
    *   FILESIZE_NOT_ALLOWED          = 9
    *   HEADER_TOO_LONG               = 10
    *   DP_ERROR_CREATE               = 11
    *   DP_ERROR_SEND                 = 12
    *   DP_ERROR_WRITE                = 13
    *   UNKNOWN_DP_ERROR              = 14
    *   ACCESS_DENIED                 = 15
    *   DP_OUT_OF_MEMORY              = 16
    *   DISK_FULL                     = 17
    *   DP_TIMEOUT                    = 18
    *   FILE_NOT_FOUND                = 19
    *   DATAPROVIDER_EXCEPTION        = 20
    *   CONTROL_FLUSH_ERROR           = 21
    *   OTHERS                        = 22
    if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    Notice that the IMPORTING parameters of the funcion module are actually the EXPORTING parameters when calling the function module.  These parameters are commented out only when mark as optional or have a default value assigned to them.
    Notice the EXPORTING parameters of the function module,
    there is only one, FILELENGTH.  These are always commented out by default, because you don't need to bring them into the calling program.  Notice that when calling the function module, it is coming back thru IMPORTING parameter. 
    Tables parameters work just like IMPORTING paramaters where they can be optional.  If they are optional, they will be commented.
    Does this make sense now?
    Regards,
    Rich Heilman

  • 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

  • Function Module TABLES parameters

    Hi All,
           I want to pass my internal table to a function module but when I try to access the componenbts of the table it is giving me syntax error. Is it required that I should create DDIC structure for this? Is there any other option?
    I have declared the internal table using types. And in function module tables parameters just declared internal table.
    Regards,
    Dilip

    Hi
    In the function
    Say import parameter is TAB ( with no type definition )
    From program you pass an internal table ITAB .
    You don't need to define TAB in your function.
    In the code you can diretcly use
    LOOP AT TAB.
    ENDLOOP.
    ( At runtime TAB will take the structure of ITAB from program )
    Cheers

  • Are Import parameters compressed in external JCo RFC calls?

    I would like to send XML data from a Java program to an SAP ABAP System running on NW 7.02.
    The connection is done by Java Connector 3.0. The XML file should be passed as a parameter of an RFC function module.
    In older versions the data would have been passed as a TABLES parameter and would be compressed automatically if the payload exceeds 8kb or the connection would be marked as a slow connection. (see also Note 977407).
    Now I would like to use the basXML RFC protocol. There it is advised to use Table Types in Import parameters instead of TABLES parameters for table data. Now will the data be compressed if I send them as Table data in an Import parameter? And will they also be compressed when I send them as an Import parameter as STRING or XSTRING instead of a table?
    Unfortunately the help documentation is incomplete on these topics and I did not find any details for this scenario.

    Yes it is possible
    SAP JCo can be implemented with Desktop applications and with Web server applications.
    SAP JCo is used as an integrated component in the following applications:
    ●     SAP Business Connector, for communication with external Java applications
    ●     in the Application Server, for connecting the integrated J2EE server with the ABAP environment.
    SAP JCo can also be implemented as a standalone component, for example to establish communication with the SAP system for individual online (web) applications.
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/09/a4a9e1d51d11d6b2c200508b5d5c51/frameset.htm

  • Function module import parameter....Urgent

    Hi Experts,
    I am using User Exit M06E0004 which is using <b>FM EXIT_SAPLEBND_002</b>. It has 4 inport parameters
    I_CEKKO             LIKE CEKKO          
    IT_BEKPO            TYPE MMPUR_BEKPO    
    IT_BEKET            TYPE MMPUR_BEKET    
    IT_EKKNU            TYPE MMPUR_EKKNU    
    and 1 export paramenter E_CEKKO      LIKE      CEKKO
    I want to pass 1 more field MDSB-matnr(character type matnr for BOM child Items) which is not in any the structure  here.
    Its a standard FM so we have 1 include for enhancement in this exit. So what to do to get values for this. i need this matnr against a PO in CEKKO.
    I need to do all this for my requirement of IDOC. I have to send IDOC when any subcontract PO release and having Child Items(BOM materials MDSB-matnr) started with 'P'.
    Regards,
    Nik

    >>>
    <i>the requirement is,
    I have to send a customized IDOC to external application when a PO release. For sending IDOC automaticaly when PO release, I fount User exit M06E0004.</i>
    <<<
    OK.
    I take you did verify that this user exit is only triggered when you release the PO. Just asking because it's purpose, as it was said, is to influence the release strategy determination. This determination may happen when the PO is saved, not when the PO is actually released. In that case, this would be too early. But I'm not certain about the exact processing time, to be honest.
    If you determined that this is the right place, then it's all good.
    >>>
    <i>And IT_BEKPO, IT_BEKET are not internal tables , they are import parameters of table type MMPUR_BEKPO and MMPUR_BEKET.</i>
    <<<
    And what type do you think IT_BEKPO, etc. will be? Since they are defined with reference to a table type, they sure will be internal tables.
    If you want to read the content, you'd do something like this:
    DATA: W_BEKPO TYPE BEKPO.
    LOOP AT IT_BEKPO INTO W_BEKPO WHERE... <conditions>
      MOVE W_BEKPO-MENGE TO ...
      ...etc.
    ENDLOOP.
    As for reading MDSB, I don't know what your selection criterion is, but since MDSB is a view defined for table RESB, it only makes sense to use it if you do know the corresponding reservation number, item etc.
    You mentioned MATNR as the field you'd need from MDSB. Why? If you need the material number, it's readily available in IT_BEKPO. If you need reservation data in your IDoc then you'd read RESB with a proper indexed access (so for instance, with the material number from the PO item or something)...
    Regarding the whole 'sending IDoc when the PO is released' requirement, I'd probably try a different approach. My way of doing this would probably be to try to set up the regular message control with a specific output type generating the custom IDoc, and in the message determination I'd set a requirement that checks whether the PO is released... something like that.

Maybe you are looking for

  • How do you read a cluster over DataSocket with C?

    Hello All, I am new to Labview and DataSocket in particular, so any help would be greatly appreciated. I am trying to write a data viewer program in IGOR (www.wavemetrics.com) which will receive multi channel data being published to a DataSocket serv

  • How do I convert a PDF in Chinese to a Word doc in English?

    How to add Asian language support files in Acrobat X Pro?  Cannot locate "Custom Support Files"

  • Trouble Creating a pdf Using MS Office Word 2007

    When I try to convert a document in MS Office Word 2007 to a PDF the process starts but Word shuts down after 10% of the conversion has occurred. I've used Adobe Acrobat 8 Standard for the conversion and the Print function in Word but get the same re

  • Failure to access external drive (Thecus N2050)

    Hello, I have recently been unable to access my external hard drive -- a Thecus N2050 with two Seagate Barracuda drives (7200.10 500GB SATA2 3GB/S 7200RPM 16MB Cache) using RAID 1. My iMac is running OS X 10.5.5 Build 9F33. Upon turning on the extern

  • Extension Manager closes down as soon as i try to open

    I am a creative cloud member.  I have downloaded and updated the Extension Manager CC on my cloud desktop, also acquired Paper Textures Pro and Watercolours. I have Photoshop CC 2014 as part of my membership,   When I try to open the Extension Manage