Suggest me way for calling Function Module in BSP page


Dear Friends,
I want to create sales order using BSP. For that there is an bapi called BAPI_SALES_CREATEFROMDAT2. I have two ways to do that.
1. I will create all the required structure on the BW system and then i can call the bapi.
2. I will create another function module which calls the BAPI_SALES_CREATEFROMDAT2. and i will pass all the require parameters to my created Function module.
In the first case i suppose to create structure for header data, order items and partner data. It is quite lenghty work.
In the second case i need not to create any kind of structure or types-pool.
If answer is case1 then should i create exact structure or i can create that many fields contained structure which i require?
Suggest me that whether should i follow first case or i should follow second case and also which one is more powerful?


Thanks for giving me answer.
I have tried to find through BAPI Browser for BAPI_SALESORDER_CREATEFROMDAT2 but unfortunately it is not creating the structure. This is very suprising for me because as per your weblog and as per your answer it should be generated. Now i have two choices :
1. I create same structure on 6.20 system manually for that i have to create around 100 data elements or may be more than that which are not exits on 6.20 system.
2. I will create another function module on 4.6c system which calls BAPI_SALESORDER_CREATEFROMDAT2 and i need to pass only selected parameters.
2nd option is suitable for me but i have doubt that is the proper way for working production?

November 30, -0001

Suggest me way for calling Function Module in BSP page

Dear Friends, I want to create sales order using BSP. For that there is an bapi called BAPI_SALES_CREATEFROMDAT2. I have two ways to do that. 1. I will create all the required structure on the BW system and then i can call the bapi. 2. I will create

Calling Function Modules from BSP

Hi, Can we call Remote Function Modules from a BSP page? If yes, can they be called from both Layout and Events and what's the proper way of calling them? Any help will be great.HI Aurang Calling RFC is similar to calling any other Function Module..O

Need help for the Function Module 'PFL_GET_PARAMETER_INFO'

Hi Experts, The FM 'PFL_GET_PARAMETER_INFO'  returns the value for Profile Parameters for a system . The inputs required for this FM are :   1.   Parameter name  : ( eg . login/min_password_lng etc. )                      2 . Parameter Type I am not


PLEASE ANYONE TELL ME, ABOUT  HOW TO CALL FUNCTION MODULE INSIDE SMARTFORM. IT IS VERY URGENT!!!!!!!!!1Hi,   Under Global Definitions, we have 'Form Routines' tab. Under this tab, u can have a dynamic subroutine call. With in FORM and ENDFORM, you ca

How 2 Develope user defined functions to call function modules in R/3 syst

How to Develope user defined functions to call function modules in SAP R/3 xiHIi, If those function modules are RFC enabled then we can call those function module from user defined functions. Please see below link /people/alessandro.guar

Dynamically call function module in the date rule

Hi Experts I am currently working on service request.I am facing a problem in the date management there.In my service request i have 5 statuses .One of my status is "Pending with consumer".I am using duration settings of service request.By durat

Exception Handling for a function module

There is a function module the program in which exceptions are handled. When the program is ran as a background job and when there is a exception arises does the background job fails or the exception gets handled ??? Pls help me raises an

Call function module in update task

Hi I am using the follwoing logic in my prog CALL FUNCTION 'Z_Update _Task'    In update task   EXPORTING     t_vbak        =  t_vbak. But the program goes to dump at call function Please let me know if the syntax i am using is correct. Edited by: ki

IPC Pricing with AP 7.00 Database Access/Call function module user-exit

Hi experts, we are running SAP ECO on SAP ECC 6.0 with IPC Pricing AP 7.00 running in the VMC. I'm facing a new requirement. In an user-exit for requirements the access to the ABAP database is needed. (I know that the SAP recommendation is, don't hav

Error handling for inbound function module

Dear all, I have written my custom function module for matmas idoc extention.In the begining of function module i have used IDOC_INPUT_MATMAS01  and then have coded my BDC.For handling errors in caese BDC fails i am filling  table  idoc_status. wih s

Best way to redistribute function modules...

Hi, The .NET application that I am working on communicates with SAP using some custom RFC enabled function modules. Now, we need to create a redistributable package that contains the custom FMs so that any customer can install it. In the past, we cre

CALL Function Module RV_CALL_CHANGE_TRANSACTION in a NEW session/window

Hi, I am modifying report VA14L. When a sales document is clicked on in the ALV grid, I need the sales document to open in a NEW window, not in the same. To determine and open the transaction, function module RV_CALL_CHANGE_TRANSACTION  is used. How

Call Function Module within an Extractor

Hello Experts. We have a requirement where a function module needs to be called from within an extractor to retrieve the data. The function module exists in the HR box. What would be the steps to follow? We can't create a generic data source based on

Call function module parallelly

Hi Experts, I have a function module in which i want to call three FM parallelly to get product information  and finally consolidate the final result and return into table parameter. I need ur suggestion how do i know that my all three FM executed an

Calling function module from solman

Hi Experts,                 I created one function module in solution manager with remote enabled type,  how to call that rfc into development sysytem. Regards, Thiru. Rhi, may be this link Re: TMS Error In Change Request Management can prove useful

Abap object as export parameter for remote function module

Hello all, I would like to know if there is any possibility to use an abap object as parameter within a remote function module. Thanks in advanceNo. You can't pass the Object Reference as the Parameters of the FM which could be run as an independent

Where-used for a function module

All,    I have a function module used in several update and transfer rules.  I would like to know EVERY place it is used.  The 'Where-used' button returns not found, even though I know it is used in several places.  I am on 3.5,  Is there any way to

Calling Function Module using Macro

Dear All, I have a function module ZGET_DATA Am passing date as input parameter. So i have defined the macro as below: ZGET_DATA( BUCKET_BDATE( Row:Forecast(From M05.2009) When i debug the function module, i see it is not picking the date, can you pl

Input values for CONVERT_OTF_2_PDF function module

Hi All , I am using this function module 'CONVERT_OTF_2_PDF ' in my report(which will convert smartform to PDF) . Can anyone please let me knw what are the input value should I pass to test this function .('CONVERT_OTF_2_PDF) OTF           DOCTAB_ARC

Authorization Object for Update Function Module

Hi I have a Update Function Module and that FM should be executed based on the Authorization Object . I had created a Auth Object with Proper roled assigned to user and i also  did the following AUTHORITY-CHECK OBJECT <Obj Name>            ID 'ACTVT