BSP - Function Module - UWS_BW_GET_LONGTEXTS_FOR_SRVY - Inputs
Dear Experts,
I need to fetch the Long Texts for the Survey application.
Which is submitted by the user.
I am using the below function module to fetch the Long Text.
'UWS_BW_GET_LONGTEXTS_FOR_SRVY'
For this FM. We need to pass the input to the structure 'IT_GUID' which is of Type 'UWS_T_BW_SURVEY'.
So IT_GUID contains the following fields:
1) BW_APPLICATION
2) WS_SURVEY
3) APPLICATION
4) ID
5) GUID
6) VERSION
I have got the below inputs:
3) Application -
Name of the Application
5) GUID -
Survey GUID from the table 'TUWS_SURVEY_LOG'
But not getting the inputs for the rest of the fields.
Kindly help me What are all the Inputs needs to be provided in the remaining fields.
And correct me if my input is wrong in (3) and (5)
Regards,
Ragunathan.R
Dear Ravi,
If i pass the value of Survey GUID field of the table TUWS_SURVEY_LOG to the F.M.
i am getting the values as below
1) Application -- WBSURVEY
2) Survey -
3) Qstnnr --- <Questionarie Name>
4) Name --- TE18 / TE34
5) Reporting_Label --- ..........
I am not getting any long text.
My Scenario is: Once the User submits the questionarie with answers.
The answers may contain Radio Button / Comment (Free Text) fields.
I need to fetch those Free Texts in R/3.
How can i achieve the same.
As per my work around in the table 'TUWS_SURVEY' has the field CLUSTR & CLUSTD to store the Long Texts.
which is of LRAW Data Type. To fetch the text in this field i am using the above F.M.
But not getting any values.
Kindly suggest.
Regards,
Ragunathan.R
Similar Messages
-
Function module to input dates
Hi All,
Require function module where i can input From Date and To Dates as input parameters.
This should appear as a dialog box.Hi,
I think, we can create a Module Pool program with a Screen of Input of From / To dates inside a Function Group.
And call the above screen from a function module.
Rgds,
Ramani N. -
Generic function module for input two Infocubes and output one infocube-APO
Hi All,
My requirement is we have to pick data from two infocubes(Billing and Backlog) and send to One info cube.
can you please send me an;y generic function module is available in APO or explain me how to solve my requirement.
waiting for your response.
Thanks for Advance.
Shubhojit.Hi,
I recommend using a multi-cube also but if you insist in JOINing two cubes then you can do that in an ABAP SELECT statement. You need to join the fact table and the dimension tables for all dimensions (for all InfoCubes). Please only retrieve data whose OBJVERS="A".
Please post again if you need more help.
Regards,
Emmanuel -
Function modul CRM_MKTBP_MAINTAIN_OW input
Hello,
i need to use FM CRM_MKTBP_MAINTAIN_OW.
what exactly is the PROFILE_TEMPLATE_ID which is required in the input structure of this FM?
Which database-table field is this?
Thank you
Best regards
ManfredHi,
I am using this FM CRM_MKTBP_MAINTAIN_OW. In importing structure CRMT_MKTBP_WRK you nee to pass the attribute set name to the field PROFILE_TEMPLATE_ID.
- BR
Sudhakar Puppala -
how to work with standard function modules
To work with standard function modules,
First Check the function module in se37 and also read the function module documentation if available
execute the function module.
u will get a screen.
You need to give some inputs in the output of the function module. say object-id as a input 4400000456.
Also check the import and export parameters which gets updated once u execute the function modules after feeding inputs to the function module.
actually in the example, 4400000456.
once u give the input. the corresponding internal tables related to that object-id get automatically thru the fM.
then u can retrieve the related information from the internal tables of function modules.
say Get the number of days for a particular month
in this function module my input is month and year.
this will return no of days for that particular month.
CALL FUNCTION 'NUMBER_OF_DAYS_PER_MONTH_GET'
EXPORTING
par_month = p_bumon
par_year = p_bdatj
IMPORTING
par_days = lv_days.
Similary u can work with other function module , which is necessary for your requirement
Thanks -
Using Function modules in BSP - Operations on Service Orders
Hi,
We are creating a custom BSP application for scheduling resources and updating appointments for resource personnel.
The process is as follows:
From the list of Service Orders with some product added as line item, with status OPEN, the user selects a SO and makes an online payment.
Returning from the site, the Status of the Service order is changes to Released. Following this, the available resource is assigned to the Service order and the appointment details are populated in the Service Order. Subsequently, another line item of the Service order is set to Released.
We are using the following function modules in the order as given below:
To set status of a line item to Released
1) CRM_ORDER_INITIALIZE
2) CRM_STATUS_SET_INTERN_OW
3) CRM_STATUS_SAVE_OW
4) COMMIT WORK
To assign a resource to the Service Order
1) WFD_RES_GET_AVAIL
2) CRM_ORDER_INITIALIZE
3) WFDS_GET_ASSIGNMENT_TO_SO_ITEM
4) CRM_ORDER_INITIALIZE
5) WFDS_CRM_SRV_ASSIGNMENT_MODIFY
6) WFDS_SAVE
7) WFD_TRANSACTION_COMMI
To update the assignment dates in Service Order
1) CRM_ORDER_DEQUEUE
2) CRM_ORDER_INITIALIZE
3) CRM_ORDER_INIT_OW
4) CRM_ORDER_MAINTAIN
5) CRM_ORDER_SAVE
6) BAPI_TRANSACTION_COMMIT
To set status of a second line item to Released
1) CRM_ORDER_INITIALIZE
2) CRM_STATUS_SET_INTERN_OW
3) CRM_STATUS_SAVE_OW
4) COMMIT WORK
Using these FMs in a report program or even in Debug mode works fine, except in the BSPs where the behavior is random.
The issue that we are facing:
1) Calling the Function modules sequentially, it takes time to update the order after execution of a BAPI/RFC and at times the order gets locked although we are using the Function Module CRM_ORDER_DEQUEUE after a logical block, and the Service Order is un-available for subsequent actions
2) At times, the Steps get executed correctly
3) At times the Steps get executed correctly after adding certain delay after each logical block of steps, but at times the time is not enough for the order to get updated.
Can someone help us solve this un-predictable behavior?
If someone has previously worked on such a requirement, please provide inputs on the scenario.
Also, please let me know if there is a fail-proof procedure to ensure that the steps get executed completely and also if there is a need to use alternative BAPIs in a specific order.
Thanks,
Regards,
Siddhartha JainI am afraid you would have :
- to copy the standard FM 'MS_EXCEL_OLE_STANDARD_DATA' (it is wrapped up into EXCEL_OLE_STANDARD_DAT)
- to comment this line in this newly created FM
SET PROPERTY OF obj_ex_app 'Visible' = 1.
- to call your own 'ZMS_EXCEL_OLE_STANDARD_DATA'
That should do the trick. -
Adding a function module in BSP
Hi all,
I want to add a call to an exisitng function module to run once a user exits the BSP page.
Any body has idea on how this is done ?
UcheHi,
I would suggest to work a bit like the logoff session described in https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/564ba07e-0701-0010-06ab-da25f77004ff
and
/people/eddy.declercq/blog/2005/11/15/enemy-of-the-state
In the start page of your app, you create a frame where your actual app resides in. Then you use the onunload event in Javascript to submit staring page. In the oninputproecessing of the BSP page in that upper frame you put the FM you want to run.
It looks a bit like this.
This is your starting page
<html>
<head>
<script language="JavaScript">
function exitBSPApplication(newTargetUrl) {
document.aform.submit();
</script>
</head>
<body scroll="no" bottommargin="0" leftmargin="0" topmargin="0" rightmargin="0" onUnLoad="exitBSPApplication();" >
<iframe id="fr0" frameborder=no height=100% width=100% src="pageb.htm">
</iframe>
<form name="aform">
<input type="submit" name="OnInputProcessing(callFM)" value="callFM">
</form>
</body>
Then in oninputprocessing:
case event_id.
when 'callFM'.
call .... your fm
endcase.
pageb.htm is the first page of your app.
Eddy -
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. -
Uncatchable exception: BSP calling Function Module
Hi all,
currently i'm facing a very weird problem. My application class calls function module
HR_INFOTYPE_OPERATION. Normally, in case of an error, the function module gives you back a return parameter. But if i call it from my BSP, the processing doesn't leave the function module. It directly throws an exception ERROR_MESSAGE_STATE instead of writing the message into parameter return.
If i call the function module with the same parameters from a report, it works fine and the error message is written to return parameter without throwing an exception.
What am i doing wrong? I don't want that exception and need to go on with filled parameter result.
Regards
Mark-AndréHi MA,
try using ERROR_MESSAGE in the exceptions list, like this.
CALL FUNCTION 'func_name'
EXPORTING
string = text
pos = position
IMPORTING
string1 = text1
string2 = text2
EXCEPTIONS
string1_too_small = 1
string2_too_small = 2
ERROR_MESSAGE = 3
OTHERS = 4.
Cheers
Graham Robbo -
Calling Z function module from BSP page
hi,
i am calling a z function module from BSP application ROS_SELF_REG ,The z function module is inside a z function group,It does not give any sytnax error..but while running BSP application ,it is going into dump saying that Z function module is not found..Any idea why this is happening???Hi,
Check whether the Z function module is spelled correctly. Also try activating the whole function group and function module in se80 transaction.
Check whether the BSP application is calling the Z FM from the correct server/client where it is available.
Regards,
Harish -
What are the input parameters for Function Module
Dear Experts,
I want to generate a Sales Tax returns report,those fields are not available in my existing Datasources.
For that i want to write a Generic Datasource with Function Module.
audat
bukrs
vkorg
vtweg
spart
aurat
auart
netwr
mwsbp
kschl zedp(consition type)
kschl zvat(condition type)
ksch zcst(condition type)
matkl material group
Here what are the Input parameters for Function Module.
Thanks in Advance.
Srinivasan.Srinivasan-
For creating a Generic extractor based on a FM, you first of all need to know what is going to be your structure.. i.e. what all fields you need to pull from what all tables. A functional consultant may help you identify the exact DB tables.
Once you know them, hand over the requirement and the pdf mentioned by Krishna to the ABAP guy, he would be able to take this up further.
Also decide 1st whether you would be using a full load or delta. There is a slight difference in the way they are built.
Let me know how it goes.
-Bhushan. -
Function module to validate input value
Hi all,
can you please provide me the name of the function module to validate input value.
I have a case where i have to validate decimal values. sometimes users may enter wrong decimal values by mistake instead of "0.23" "0..23' and it gives CONVT_NO_NUMBER runtime error so have to come up with some solutions to validate user input.
Please provide me Function module if anybody knows.
Thanks,Try this one
data: lv_htype TYPE dd01v-datatype.
CALL FUNCTION 'NUMERIC_CHECK'
EXPORTING
string_in = my_number
IMPORTING
htype = lv_htype.
IF lv_htype NE 'NUMC'.
Raise an error here...
ENDIF. -
How to call a Function Module in a BSP Page?
Hi there,
i have no deep knowledge about BSP Programming.
So what i wanna do is to call a Function Module in a BSP Site..
I go to SE80... create a new empty BSP Application under that a Page with FlowLogic:
I see the new empty BSP Page with this Test Button and Hello world in it.
So my Funtion Module is called Z_Subscribe
What i have to do that the FM is called when i open the BSP?
Thanks
Bjoern
Edited by: bjoern bayerschmidt on Mar 3, 2009 1:01 PMHi Bjoem,
Search the forum for tutorials and blogs...
Regards,
Anubhav -
How to call function module in R/3 from an BSP Page
Hi Experts,
I am new to ABAP and BSP as well.
I am creating an BSP page through which I want to call an function module in R/3 which will fetch a file from the application server and place into an internal table.
I have identified the function module.
My questions are:
Since I am going to have an web interface where on a button click the file should be uploaded to the intrernal table.So how do I call the function module.
Can I use JSP and ABAP together in an BSP page.
Thanks
AnkitHello Ankit,
Please check the following link:
http://help.sap.com/saphelp_47x200/helpdata/en/bd/ac1e3a0088e042e10000000a11402f/frameset.htm
I think it will answer all your queries.
Regards,
Siddhesh -
LSMW or ABAP Program:- I need BAPI function module or Direct input program
hi experts,
I have to develop the program which uploads the transportation pricing data for freight cost management.
the transcation code is XK15 for the application A.
There is a program called RV14BTCI which will uploads for the application V or M not for A.
So i can use lsmw or direct input program in both lsmw and abap program so plz help me if there is any BAPI function module or Direct input program for Application A.
thank you,
waiting for u r reply.
Edited by: SANTOSH MARUPALLY on Jan 22, 2008 6:27 AMHi Santosh
Am not really sure if RV14BTCI can not be used for other applications apart from V and M.
You can try using BAPI: BAPI_PRICES_CONDITIONS. Over the forum you can find few example coding.
Regards
Eswar
Maybe you are looking for
-
How to continue working on a project if I export the materials?
Hi, I am making a web series and came accross a problem. My computer's hard drive is almost full. I am trying to cut the raw footages and the finished copy of an episode to an external hard drive. I can paste the raw footages and the finished copy of
-
Import raw and JPEG and switch between them
Some background. The Epson R-D1 (and R-D1s) when set to B&W and asked to record raw + JPGs renders the JPG in B&W and leaves the raw alone. It also shows you the images in B&W on its LCD. This is great because, if you don't want to, you never have to
-
RFC for User Lock and Unlock for child systems in CUA
Dear All, Can anyone tell me, how to lock or unlock a user in child systems from CUA using a BAPI or RFC. As per the requirement I can not use TCode SU01 for this purpose. I can only use RFC/BAPI for the same. Thanks Om Edited by: Om Somesh on Apr 13
-
Set a parameter value using Search help exit
Hi All, I want a search help such as If I enter a warehouse number on my screen then search help for storage bins should have that warehouse number populated in selection dialog. I guess i have to write some code in search help exit if CALLCONTROL-ST
-
Whenever I go to pages where the Adobe Flash Player "plugin-container.exe" runs "FlashPlayerPlugin_xx_x_xxx_xx.exe" (x's being version number), it causes hundreds of empty "fap" files to save to my Firefox and C:\Windows\Temp folders. How can I preve