Function Module in a Generic Function Module Extractor
I want to use a generic function module (ZFM_CONNECTION_DETAIL) in a Generic Function Module based Extractor.
After Creating, I have checked it in RSA3... Data is showing properly on the Extractor Check.
And replicated on BW side, after triggering the extractor using infopackageu2026 only one record is coming on the target side (BW).
And one job is running endless on the source system.
Generic extractor on the normal code is working properly on both sides.
But problem occurs while I was using Function Module in the Generic function Module extractor.
Waiting for a Reply with solution...........
Hi Siegfried Szameitat,
I have searched a lot to find out the solution of my Question (Problem). But there is no solution for the problem I have.
Please let me to find out a proper solution of my issue....
Thanks
FUNCTION zcrm_questionnaire.
Its a full Load...
Codes are as followed..........
DATA:lv_times TYPE i.
DATA:lv_datapakid TYPE numc4.
CLEAR:lv_datapakid,lv_times .
STATICS: s_s_if TYPE srsc_s_if_simple,
sd_no_more_data TYPE flag.
DATA: l_s_select TYPE srsc_s_select.
DATA : s_counter_datapakid LIKE sy-tabix,
s_cursor TYPE cursor.
RANGES : date FOR zresult_lt-date.
DATA: lv_count TYPE i VALUE 1.
IF i_initflag = sbiwa_c_flag_on.
Initialization: check input parameters
buffer input parameters
prepare data selection
Check InfoSource validity
CASE i_dsource.
WHEN 'ZCRM_QUESTIONNAIRE'.
WHEN OTHERS.
IF 1 = 2. MESSAGE e009(r3). ENDIF.
log_write 'E' "message type
'R3' "message class
'009' "message number
i_dsource "message variable 1
' '. "message variable 2
RAISE error_passed_to_mess_handler.
ENDCASE.
APPEND LINES OF i_t_select TO s_s_if-t_select.
s_s_if-requnr = i_requnr.
s_s_if-dsource = i_dsource.
s_s_if-maxsize = i_maxsize.
APPEND LINES OF i_t_fields TO s_s_if-t_fields.
ELSE. "Initialization mode or data extraction
IF NOT sd_no_more_data IS INITIAL.
RAISE no_more_data.
ENDIF.
LOOP AT s_s_if-t_select INTO l_s_select .
MOVE-CORRESPONDING l_s_select TO date.
ENDLOOP.
DATA : v_questionire TYPE crm_svy_db_sid.
DATA : itab_questionire TYPE zsurveyid.
DATA : e_tt_data_get TYPE zresult_lt OCCURS 10.
v_questionire = 'CALL CENTER'.
APPEND v_questionire TO itab_questionire.
v_questionire = 'METER INSTALLATION TEAM'.
APPEND v_questionire TO itab_questionire.
v_questionire = 'METER READING & BILLING'.
APPEND v_questionire TO itab_questionire.
v_questionire = 'NO SUPPLY'.
APPEND v_questionire TO itab_questionire.
v_questionire = 'CASH COLLECTION CENTER'.
APPEND v_questionire TO itab_questionire.
v_questionire = 'STREET LIGHT'.
APPEND v_questionire TO itab_questionire.
v_questionire = 'CONSUMER CARE CENTER'.
APPEND v_questionire TO itab_questionire.
v_questionire = 'WEBSITE'.
APPEND v_questionire TO itab_questionire.
DATA : counter TYPE i,
high LIKE sy-datum,
low LIKE sy-datum.
CONCATENATE
l_s_select-high+6(4)
l_s_select-high+3(2)
l_s_select-high+0(2)
INTO
high.
CONCATENATE
l_s_select-low+6(4)
l_s_select-low+3(2)
l_s_select-low+0(2)
INTO
low.
BREAK-POINT.
do i_maxsize times.
CALL FUNCTION 'ZCRM_SURVEY_REPORTING'
EXPORTING
e_date_frm = low
e_date_to = high
e_questionire = itab_questionire
CHANGING
it_result = e_tt_data_get.
IF sy-subrc IS INITIAL.
e_t_data[] = e_tt_data_get[].
APPEND e_t_data.
ELSE.
EXIT.
ENDIF.
sd_no_more_data = 'X'.
ENDIF. "Initialization mode or data extraction ?
ENDFUNCTION.
lk
Similar Messages
-
FUNCTIONAL MODULE AS A GENERIC EXTRACTOR
Hi,
Im looking to extract fields in from the following tables and want to create a functional module as a generic extractor for that:
BSEG
BKPF
COEP
MBEW
EINA
Could some one tell me how I can create a FUNCTIONAL MODULE AS A GENERIC EXTRACTOR for this or send me a documet at mysapsource at gmail com
ThanksHi,
Please find the steps to create FM:
Step 1.
GO to transaction SE80.In the drop box list select function group enter your Z Function group name.Press enter it will ask for creating the function group.Create your function group.
OR
In SE37 transaction,in the menu bar Goto - > Function Group - > Create Group.Your Function Group will be created.
Step 2.
Go to transaction SE37.Enter your Z Function module name,your recently created function group name and the description.Press Enter.Now your FM is created.
Step 3.
Enter Export,Import parameters.In the source code tab write the code what you want to write.If any exception write in the exception tab.
Method 2:
First u have to create Function Group.
1.se37->Goto->Function Group--->Create.
2.Create FM.
3.maintain import /export parameters and tables , exceptions.
4.based on the ur requirement u have to bulid ur logic in Source Code by using there Import parameters and u can pass the results by using Export or table.
5.u can raise error by using exception.
Create Function Module:
http://help.sap.com/saphelp_nw04s/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/26/64f623fa8911d386e70000e82011b8/frameset.htm
Creating Function Modules.
Create Generic Datasource using Function Module:
Generick Extarction using Function Module.
Hope this helps u...
Regards,
KK.
Edited by: koundinya karanam on May 2, 2008 7:29 AM -
Can generic function module extractions possible with CRM data sources.
Hi Friends,
can generic function module extractions possible with CRM data sources.
90% extractions are generic function module extractions.
How is it possible without BW adapters..
It's very urgent ...Please.
Thanks,
Basava RajuHi Madhu,
Just curious ... if you already have a generic FM extractor then just go into it and find out where it is reading the data from. If its reading data from the CRM system then thre is no need for any BW adapter ... just in case you need any ABAP help ... post here ... I may be of use to you.
Best regards,
Kazmi -
FUNCTION MODULE CREATION FOR GENERIC DATA SOURCE
Hi BI gurus,
I am creating function module for generic datasource. For that I followed below mentioned steps
Steps
1. Created s structure with the fields that needed.
2. Created FM by copying the standard Function module
" RSAX_BIW_GET_DATA_SIMPLE " and Give a New name starting With
Y or Z .
3. IN SE37 ->Your Function module name -> Change, In table tab given structure
name by deleting the associated type given in E_T_DATA .
And inserted the required code given below
PROGRAM 'ZHU_BALANCE'.
*& Report ZHU_BALANCE
TABLES: VEKP, VEPO.
DATA: BEGIN OF T_DISPLAY,
DATE LIKE SY-DATUM,
EXIDV LIKE VEKP-EXIDV,
LGORT LIKE VEPO-LGORT,
WERKS LIKE VEKP-WERKS,
END OF T_DISPLAY.
DATA: ITAB_DISPLAY LIKE TABLE OF T_DISPLAY.
DATA: WA_ITAB_DISPLAY LIKE LINE OF ITAB_DISPLAY.
SELECT VEKPEXIDV VEPOLGORT VEPO~WERKS
INTO CORRESPONDING FIELDS OF TABLE ITAB_DISPLAY
FROM VEKP AS VEKP INNER JOIN VEPO AS VEPO
ON VEKPVENUM = VEPOVENUM
AND VEKPWERKS = VEPOWERKS
WHERE VEKP~VSTEL = SPACE
AND VEKP~VEGR1 = '401'
AND VEKP~VPOBJ = '12'
AND VEKP~STATUS = '0020'
AND VEPO~VEPOS = '000001'.
LOOP AT ITAB_DISPLAY INTO WA_ITAB_DISPLAY.
WA_ITAB_DISPLAY-DATE = SY-DATUM.
MODIFY ITAB_DISPLAY FROM WA_ITAB_DISPLAY TRANSPORTING DATE.
ENDLOOP.
WRITE:/ 'DATE', 20 'EXIDV', 40 'LGORT', 60 'WERKS'.
ULINE.
LOOP AT ITAB_DISPLAY INTO WA_ITAB_DISPLAY.
WRITE:/ WA_ITAB_DISPLAY-DATE, 20 WA_ITAB_DISPLAY-EXIDV , 40 WA_ITAB_DISPLAY-LGORT, 60 WA_ITAB_DISPLAY-WERKS.
ENDLOOP.
While checking the function module its populating the syntax error as
THE TYPE SRSC_S_IF_SIMPLE IS UNKOWN. (Though this is commented in program)
So pls suggest
Regards,
prafulhi indira,
thanx for ur reply we have created the funcion module successfuly it is also showing the output correct. But when we put that function module in the generic data source and try to extract data in RSA3 it shows the correct output of function module but with the msg ' 0 entries found in customer enhancement' and therfore zero records in the display list.
is there any correction or steps to be followed in data extraction
pls suggest
regards,
praful -
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 Module to fetch Partner Functions in PM Notification
Hi Expert,
I have one requirement to send mail to M2- Engineering Man in PM Notification after saving.
So I want to fetch all M2 (Engineering Man i.e. Partner Functions) from that Notification at runtime.
Right now I am writing the Logic in BADI "NOTIF_EVENT_POST" and I am not getting those M2: Engineering Man in this BADI.
If anyone know Function Module to fetch Partner Functions at runtime please let me know.
Thanks,
Jay.Hello,
Did you find any function module for updating the Partner address in the Notificaton
Regards,
sks. -
1...how to find that a function module belongs to normal function module or
Hi to all.........
1...how to find that a function module belongs to normal function module or remote enabled function module?
Thanks and regards,
K.Swaminath reddyHi Swaminath,
Go to Transaction SE37.
In The Remote enabled function module, in the Attribute tab radio Button "Remote Enabled module will be selected and in the Normal Function Module, Normal Function Module will be selected.
Regards,
Mukesh Kumar -
Please help me out with the function code of print option in module pool
please help me out with the function code of print option in module pool, along with CASE condition.
regards,
asifHi
you can use the Function module
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
destination = 'LP01' "'Printer name
list_name = 'TEST'
list_text = 'SUBMIT ... TO SAP-SPOOL'
immediately = ' '
line_size = '2000'
no_dialog = 'X' "pass space to Pop screen for Print option
IMPORTING
out_parameters = wa_pri_params
valid = w_valid.
"next call below things
NEW-PAGE PRINT ON NO DIALOG PARAMETERS wa_pri_params.
"and try to Print the values inside the new-page
NEW-PAGE PRINT OFF.
Prabhudas -
Functioning of Enqueue and dequeue function modules
Hi to all
Please tell me what is the actual functioning of HR_EMPLOYEE_ENQUEUE and HR_EMPLOYEE_DEQUEUE function modules.
My requirement is that if any one working on same employee no. or other tcode is processing same emp no then no one able to work on thet and an error message should be displayed.
How to do it.
Please advice.
Regards
Anubhav GuptaHi,
Use the following.
BAPI_EMPLOYEE_ENQUEUE
BAPI_EMPLOYEE_DEQUEUE.
Pass pernr to it.
Regards,
Nishant Gupta -
Hi...
2.....how to convert normal function module into remote enabled function module?
thanks and regards,
k.swaminath.Hi,
In the attributes tab select radio button as remote enabled instead of normal..
u can call the remote enabled fm as...
CALL FUNCTION <Function module> destination <destination name>
Regards,
Nagaraj -
Serial PDA function sub palette missing from Functions Palette in PDA Module 8.0
Hi:
I have a problem that I would like to solve without having to reinstall PDA module. Under the functions palette, Instrument I/O ... I have the Serial Compatability sub palette there but the VISA and the Serial ones are now questions marks instead of a sub palette. Has anyone had this problem and if so how is it fixed. If I copy and paste the VI's from Labview 8.0 (for PC) to the PDA vi I'm writing, they seem to work fine but what a pain that is ... anyone have an suggestions? Thanks
GreycatHello Greycat,
The subpalettes for the VISA and Serial subVIs are suppose to be
unavailable if your target is a PDA device. LabVIEW loads a
seperate palette set for each target. Since VISA is currently not
supported on the PDA, you cannot directly open the the VISA functions
or the Serial functions when you are targeting a PDA device.
Instead, you can use the Serial Compatibility VIs, which then call the
appropriate VISA calls.
Hope
Wendy L
LabWindows/CVI Developer Newsletter - ni.com/cvinews -
CAN ANYBODY EXPLAIN ME THE GENERAL FUNCTIONING OF THE SD, MM, PP MODULES.
CAN ANYBODY EXPLAIN ME THE GENERAL FUNCTIONING OF THE SD, MM, PP MODULES.
Hi Santosh,
Seems u r new to SAP.
SD, MM, PP, FI ,CO,CRM ,etc... are the functional areas dealing in the SAP R/3 ERP.
They all have their own transaction code and tables. But all are integrated and related to each other.
For more info check these links.
http://www.sap-img.com/sap-mm.htm
http://www.sap-img.com/sap-sd.htm
http://www.sap-img.com/sap-pp.htm
Hope this will resolve ur query.
Reward if helpful.
Regards. -
CU65 Variant Function cannot be released - check function module interface
Hi ,
Getting this error while Releasing the variant Function in CU66. Function Module trigerred by this function is of the same name as well as correctly acitvated and released , but while releasing the Function I get this error : 'Function cannot be released - check function module interface' . Following are two characeteristics that are maintained in the variant function :
1. Customer_Type
2. Maintenance_Contract
While executing the Function Module alone I get Raise Inernal Exception i.e it is not identifying the argument name 'Maintenance_Contract' in the FM 'CUOV_GET_FUNCTION_ARGUMENT' exception
Below is the code for reference . Pls point out if any mistakes :
""Local Interface:
*" IMPORTING
*" REFERENCE(GLOBALS) TYPE CUOV_00
*" CHANGING
*" REFERENCE(ZQUERY) TYPE ZQUERY
*" REFERENCE(ZMATCH) TYPE ZMATCH
*" EXCEPTIONS
*" FAIL
*" INTERNAL_ERROR
" Data Declaration
DATA : l_main LIKE CUOV_01-atwrt,
l_cust LIKE CUOV_01-atwrt.
" Get value of Input Characteristic Maintenance Contract
call function 'CUOV_GET_FUNCTION_ARGUMENT'
exporting
argument = 'MAINTENANCE_CONTRACT'
IMPORTING
SYM_VAL = l_main
tables
query = ZQUERY
EXCEPTIONS
ARG_NOT_FOUND = 1
if sy-subrc <> 0.
RAISE INTERNAL_ERROR.
endif.
" Get value of Input Characteristic Customer Type
call function 'CUOV_GET_FUNCTION_ARGUMENT'
exporting
argument = 'CUSTOMER_TYPE'
IMPORTING
SYM_VAL = l_cust
tables
query = ZQUERY
EXCEPTIONS
ARG_NOT_FOUND = 1
if sy-subrc <> 0.
RAISE INTERNAL_ERROR.
endif.
IF l_main EQ 'NO'.
IF l_cust EQ 'CURRENT'.
l_cust = 'NEW'.
ELSEIF l_cust EQ 'VAR CURRENT'.
l_cust = 'VAR NEW'.
ENDIF.
ENDIF.
" Set value for the output characteristic
call function 'CUOV_SET_FUNCTION_ARGUMENT'
exporting
argument = 'CUSTOMER_TYPE'
vtype = 'CHAR'
SYM_VAL = l_cust
NUM_VAL =
tables
match = ZMATCH
EXCEPTIONS
EXISTING_VALUE_REPLACED = 1ZMATCH and ZQUERY are two table types created in SE11 , both of type CUOV_01.
-
Difference between BAPI Function Module and Remote Enable Function Module
Dear Experts,
I want to know the main difference between BAPI Function Module and Remote Enable Function Module ?
One main difference that I know is BAPI FM are declared in Methods of Business Object ie BAPI are methods of BOR where as Remote Enabled FM are not. What are other differences? Is it possible to convert a Remote Enable FM to BAPI FM .
regards
ManishHello,
Did u create any ZBAPI?
The Procdure for Creating the Customer BAPI is Create a Remote Enabled Function module and then goto the tcode BAPI.
Once u go in to that just take the Project tab and enter the details.
by this way u can create a Customer BAPI.
With Regards,
Sumodh.P -
Difference between Generating Function, Generic Function, Conversion func
Difference between Generating Function, Generic Function, Conversion function?
Hi,
Generating functions are those functions which do not fetch any values from the source message,but generate target message based upon some conditions.All functions(regardless of whether Used Defined or standard) which do not take any values are called generating functions.functions of the Constant function category(e.g.constant,copyvalue,sender,receiver) are generating functions.
conversion is used to convert the data from one format to the other.
for ex: we use the FCC parameters to get the desired solutions .
http://help.sap.com/saphelp_nw04/helpdata/en/43/4c38c4cf105f85e10000000a1553f6/frameset.htm
SAP conversion agent it a tool that helps to convert unstructured data
(like EDI messages, work files, pdf files etc) into XI (or from XI)
you just use an IDE to develop the program that you can later on
put inside the adapter module (for fiel adapter for example)
so no programming (as it's drag and drop)
for many documents
generic function?
All functions (regardless of whether they are standard or user-defined functions) that do not have input values are refered to as Generating Functions (Constant, Sender, Receiver and CopyValue() are generating functions).
Thanks
Vikranth
Maybe you are looking for
-
Early watch alert - problem with generating word document
Hello experts, since last week I am not able to generate word documents of early watch reports. I have access to 4 different solution manager installations (of customers) where the generation was working without problems but stops since last week. SA
-
I developed purchase register for vendor wise when i am displaying out put it is taking 4 lines gap for each vendor. my output is coming as below. Afton chemicals 100020 01.2.2008 sector 6 10021 02.2.2008 Mumbai. here it is taking 4 l
-
Import SMS with *.csv to Nokia6288
Hallo, i have exported all my SMS from a 6230 into a .csv file on my computer. Now I want to store the messages on my new 6288 but the Import button in the menu is disabled... Can someone help me? greetings Hasu0bs
-
When i install Oracle 10g software the wizard identifies the database instance and asks me if I want to upgrade.But after installation of 10g.When the DB Upgrade Assitant opens it does not show the database instance in the DBUA screen.Does the instal
-
Dock consuming all memory leading to crash
Several times a week, my MacBook Pro on 10.7.2 started to crash over night. I turned on Activity Monitor to look at what was happening, and pretty consistently I see the Dock application start to use up all the memeory on the system, growing uncontr