Enhancement spot - Function module not getting triggered in background
Hello Experts,
I have implemented an explicit enhancement spot. In the code implementation, I am calling a Function Module.
When I call that FM in background, things are not working as expected. But if I am calling that FM in normal mode, things are working fine.
I am passing parameter to FM by 'Value'.
Can anybody please let me know what I am doing wrong?
Regards,
Ashish
Hi,
Enhancement not getting triggered in BDC
Regarding on your query, You would go through below link.
Screen Enhancement of Transaction CO11N
I hope, it helps to you.
Regards,
Sekhar
Similar Messages
-
IDOC - Function Exit not getting triggered
I am doing an inbound IDOC for the message type WMMBXY and using basic type WMMBID02.
This is for goods movement based on PO.
I am doing an enhancement in the includeof the function module exit EXIT_SAPLLMDE_002.
This exit is supposed to get triggered for the message type WMMBXY.
when i tested the idoc in we19 it is sucessfully getting posted. I want to check my code in EXIT_SAPLLMDE_002. I have set breakpoint and tested using we19. But this is not getting triggered. But the idoc is getting sucessfully posted but with a status message 56 An inbound partner profile could not be found( I am not sure if this has something to do with above problem).Did you attach your exit to a CMOD project and activated the same(CMOD transaction)?
The error you see regarding the partner profiles is probably due to the non existance of a partner profile for your idoc type in we20 transaction.
Maintain the inbound partner profile in we20 transacttion. -
Functional module which get triggered after posting of the document F-22
Hi,
I am posting the documents using the transaction F-22. I need to update some table after the documet will get post.
I try to find out the BTE'S in the transaction FIBF but unable to find it out.
Can anyone help me to find out the relvant functional module which will get triggered after the posting of the documents.
Please help me with this.
Thanks in advanced.
Regards,
DarshanaHi Harini,
It is also not get triggered while i am posting the documents.
Can you please suggest me some more functional modules.
Thanks in advanced.
Regards,
Darshana -
Function Module Not Getting Activated
Hi,
We are using a customised function module which we are calling in a user exit. We would like to call this function module in update task in the user exit to populate data in a custom table.
We have given the following parameters to the function module
Import Parameters
ITAB LIKE ZPRUNDAT
Export Parameters
l_subrc TYPE sy-subrc
On the attributes tab of the function module, Update Module has been selected under processing type.
When we try to activate this function module we get the following message
EXPORTING parameters are not allowed in the update task.
and the function module does not get activated. What should we change to get the function module activated?
MickHi,
Please try this....
In function module
In tables Section add this...
RETURN TYPE BAPIRET2 and then activate.
if its useful reward points -
Function Module not getting called
Hi Experts,
I am calling a Z function module created by me like this:
When I do F5 while debugging, the debugger does not enter the FM at all.
CALL FUNCTION 'ZZBAPI_BUPA_ROLE_ADD' IN UPDATE TASK
EXPORTING
businesspartner = ls_but000-partner
businesspartnerrole = 'BUP002' . "Prospective Customer/Prospect
It is working in sandbox system but is not working in development system.
I have put the same attribute in processing type as update module and start immediately in the attribute section of the FM. I have also activated it but it is not working in development system.
Can anybody tell me the fix for this problem?
Regards,
Sangeeta.Hi Ankur,
I have explictely specified commit work after the FM in update task call but it is throwing dump.
This particular code which I have mentioned above is working in sandbox but not in development.
Also, since I am doing from Web UI, so I have put external debugging. When I am trying to save the particular update setting in debugging which you need to debug this kind of FMs, it is not working.
Regards,
Sangeeta. -
Urgent IDOC - EXIT_SAPLLMDE_002 not getting triggered.
I am doing an inbound idoc on message type WMMXY goods movement.
The idoc is sucessfully getting posted when tested through we19.
But the user exit EXIT_SAPLLMDE_002 where i am doing an enhancement is not getting triggered when the idoc is posted.
I have activated the exit functional module, the project in CMOD is also activated.
Some one pls help me .. if u have its document pls post it to me.Hi,
Please refer to this documentation of user-exit; may be of some help for you.
You can use this user exit to influence the processing of IDOCs of the
message type WMMBXY (goods movements) that are sent to SAP from external
systems via the MM-MOB or WM-LSR interfaces. You can also access
customer-specific processing in this case.
Call transaction and other important requirements
The user exit is performed in the function module that processes the
IDOCs of the message type WMMBXY, after the IDOC is withdrawn and
checked but before direct processing in the application has been
initiated. (That is, the data for the goods movement has already been
determined and edited, but the function module for updating this has not
yet been accessed. The standard function module for processing the
message type WMMBXY is called L_IDOC_INPUT_WMMBXY. The IDOC is processed
in an update task, which means that the source code is also executed in
the update.
If an error arises, then messages should not be issued since processing
is being carried out in the background and the result of processing must
always be returned to the ALE interface. For this reason language
elements such as MESSAGE, COMMIT WORK, LEAVE and the like should not be
used. If errors that should be passed on to the ALE interface or that
affect the result of processing are found in the user exit, you should
also use the user exit MWMIDI07(EXIT_SAPLLMDE_001) since it alone can be
used to take your errors into account (see documentation of the user
exit).
Parameters and options
The user exit in the program is the function module EXIT_SAPLLMDE_002.
In order to be able to use it, you must first create Include zxlidu10
and activate the enhancement by means of transaction CMOD. As
parameters, you can use the following data:
o Goods movement data already determined from the received IDOC:
- Transaction code that is given along with the application
function module (see interface description (import parameter
X_TCODE).
- Indicator: post only if all items o.k. (import parameter X_XALLP
). This indicator must be set by default, to enable IDOC error
processing.
- Indicator: Reset all tables (as primary call) (import parameter
X_XALLR). This indicator is not set by default to enable the
processing of several IDOCs. Normally you will not change these
two indicators.
- Goods movement items table (table parameter T_IMSEG)
o Received IDOC data:
- IDOC control record (import parameter I_IDOC_CONTROL)
- IDOC data records (table parameter T_IDOC_DATA)
This user exit can be used to:
o Influence the determined data for the goods movements. All data can
be changed in this case.
o Analyze and process data that is transferred using customer-specific
segments.
o Access additional activities.
Examples
A number of potential applications are described below.
A number of potential applications are described below.
o You want to inform a user by mail when the goods movements of
certain vendors or customers take place.
o You want to start your own label printout, for example at goods
receipt.
o You want to update your own tables, for example statistical data.
o You want to analyze a missing parts table at goods receipt and
redirect the goods receipt correspondingly.
Reward points if helpful.
Regards,
Pankaj Sharma -
IDOC - EXIT_SAPLLMDE_002 not getting triggered.
I am doing an inbound idoc on message type WMMXY goods movement.
The idoc is sucessfully getting posted when tested through we19.
But the user exit EXIT_SAPLLMDE_002 where i am doing an enhancement is not getting triggered when the idoc is posted.
I have activated the exit functional module, the project in CMOD is also activated.
Some one pls help me .. if u have its document pls post it to me.I am doing an inbound idoc on message type WMMXY goods movement.
The idoc is sucessfully getting posted when tested through we19.
But the user exit EXIT_SAPLLMDE_002 where i am doing an enhancement is not getting triggered when the idoc is posted.
I have activated the exit functional module, the project in CMOD is also activated.
Some one pls help me .. if u have its document pls post it to me. -
User command is not getting triggered in interactive ALV with LIST display
Hi experts,
I have developed an interactive ALV report with LIST display. Here, the issue is, when i double click a record in the primary ALV list, the control must go to the USER COMMAND event which i have written in my report. But the user command event is not getting triggered at all when i double click any record.
It gives the following information instead.
"Choose a valid function".
(My user command name and its respective form name are same.)
Here is my code..
START-OF-SELECTION.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = sy-repid
i_structure_name = p_table
i_callback_user_command = 'TST1'
i_callback_pf_status_set = 'SET_PF_STATUS'
TABLES
t_outtab = <dyn_table>
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
ENDIF.
FORM tst1 USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
* Local data declaration
DATA: li_tab TYPE REF TO data,
l_line TYPE REF TO data.
* Local field-symbols
FIELD-SYMBOLS:<l_tab> TYPE table,
<l_wa> TYPE ANY.
* Create table
CREATE DATA li_tab TYPE STANDARD TABLE OF (p_table).
ASSIGN li_tab->* TO <l_tab>.
* Create workarea
CREATE DATA l_line LIKE LINE OF <l_tab>.
ASSIGN l_line->* TO <l_wa>. CASE r_ucomm.
* When a record is selected
WHEN '&IC1'.
* Read the selected record
READ TABLE <dyn_table> ASSIGNING <dyn_wa> INDEX
rs_selfield-tabindex. IF sy-subrc = 0.
* Store the record in an internal table
APPEND <dyn_wa> TO <l_tab>.
* Fetch the field catalog info
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = 'Z_DEMO_PDF_JG'
i_structure_name = p_table
CHANGING
ct_fieldcat = i_fieldcat
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
Please advice what is the msitake i have done here..Read the following code:
pass the i_callback_user_command = g_user_command to the ALV function module and write the FORM user_command USING ucomm LIKE sy-ucomm
selfield TYPE slis_selfield.
as shown below.
thanx
Data for ALV display
DATA : gt_fieldcat TYPE slis_t_fieldcat_alv,
gt_events TYPE slis_t_event,
g_variant LIKE disvariant,
g_user_command TYPE slis_formname VALUE 'USER_COMMAND',
g_status TYPE slis_formname VALUE 'SET_PF_STATUS',
gt_list_top_of_page TYPE slis_t_listheader,
g_repid LIKE sy-repid,
gf_pos TYPE i
Data for ALV display
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = g_repid
i_callback_program = sy-repid
it_fieldcat = gt_fieldcat[]
it_events = gt_events[]
i_callback_user_command = g_user_command
i_save = 'A'
is_variant = g_variant
TABLES
t_outtab = it_print.
FORM user_command USING ucomm LIKE sy-ucomm
selfield TYPE slis_selfield.
CASE ucomm.
WHEN '&IC1'.
CASE selfield-sel_tab_field.
WHEN '1-KUNNR'.
READ TABLE it_print INTO wa_print INDEX selfield-tabindex.
IF sy-subrc = 0.
SET PARAMETER ID 'BPA' FIELD wa_print-kunnr.
CALL TRANSACTION 'BP'.
ENDIF.
WHEN '1-MATNR'.
READ TABLE it_print INTO wa_print INDEX selfield-tabindex.
IF sy-subrc = 0.
SET PARAMETER ID 'JP_ISS' FIELD wa_print-matnr.
CALL TRANSACTION 'JP29' AND SKIP FIRST SCREEN..
GET PARAMETER ID 'WRK' FIELD wa_zprint-werks.
SET PARAMETER ID 'VKO' FIELD wa_zprint-vkorg.
SET PARAMETER ID 'VTW' FIELD wa_zprint-vtweg.
CALL TRANSACTION 'JP29' AND SKIP FIRST SCREEN.
ENDIF.
Endcase.
Endform. -
Outbound IDOC not getting triggered while new master data is created
Hi Experts,
I am trying to trigger an outbound idoc for Cost Center master data when ever cost center is being created or cost center is being changed. (Usinf COSMAS)
I have successfully made use of change pointers and now able to trigger the idoc when ever Cost Center is getting changed. But while creating new Cost center, IDOC is not getting triggered.
I used the function module MASTERIDOC_CREATE_SMD_COSMAS for triggering the idoc.
Could one of you please let me what would have gone wrong? Since IDOC is getting triggered while changing the master data but not getting triggered while creating new master data.
Thanks in Advance,
VinothHello,
when you activate BD21 for a message type, it creates a entry in the SAP tables. that these Cost Centers have been sent already and any susequent changes to this will trigger a IDoc.
As for BD16, scheduling it wont help as, you need to specify the selection criteria, and i do not see how you will be able to dynamically get the selection criteria.
Try BD95, and BD59 to create a change pointer for a field, so when ever this fields is modified (new/updated) an idoc will be triggered.
regards,
Abhishek -
Data source enhancement thru function module
Folks,
I am trying to figure relation between data source enhancement, package, function module etc?
I see a function module where enhancement is done. when I go and try to see master data exit EXIT_SAPLRSAP_0002 ... I see include but I do not see reference of function module in this include?
All these codes are so simple... but I am struggling to figure out all these relation RSAP0001, exit_saplrsap* - include inside and function module attached?
Can somebody give very simple connection for all these components?
Thanks,
-SMHi,
All these codes are so simple... but I am struggling to figure out all these relation RSAP0001, exit_saplrsap - include inside and* function module attached?
Please note that for enhancing certain standard objects for meet customer needs, SAP provides different customer exits where we can code as per our requirements.
These customer exits starting with EXIT********* will be grouped by Enhancements e.g. RSAP0001
Thanks for your response. In RS02 it is clear that we can mention function module name for data source - that is good for generic extraction. But what do we do when we are enhancing SAP extractor?
When you want to enhance SAP extractors, you go for customer exits.
EXIT_SAPLRSAP_001 for Transactional datasources
EXIT_SAPLRSAP_002 for Master datasources
EXIT_SAPLRSAP_003 for Text datasources
EXIT_SAPLRSAP_004 for Hierarchy datasources
in se37 screen in table tab - sometime we see extract structure - that will establish which functional being called for which data source, but in my case - I do not see anything in table tab?
If your datasource is function module based, then the function module which is mentioned in RSO2 for your datasource would surely have e_t_data in tables tab with its associated type.
Only if the datasource is standard one and is processed by function module e.g. 2lis_18_i0notif which is processed by MCEX_BW_LO_API function module, these would not have associated type mentioned for them. To get their structure, you can go to RSA5/ RSA6 -
Function module for getting Vendor Address details
Hi,
Im new to this group,and new to ABAP
plz hep me out by solving ABAP Query...
i want to generate a report for getting Vendor Details
like Vendor address,Ph num and Email
input fields are Company code,country key and Account Group.
im Using Smart Forms for this..
but im not getting the Exact Function module to get All Required Details..
regards
Smithathanks for ur quick reply...
SELECT SINGLE LIFNR
FROM LFB1
INTO V_LIFNR
WHERE BUKRS EQ V_BUKRS.
CALL FUNCTION 'VENDOR_READ'
EXPORTING
i_bukrs = V_BUKRS
i_lifnr = V_LIFNR
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
this is the code i have written...
but my problem is there no table in the Function module....
for Example...
CALL FUNCTION 'QPAX_PLMKB_READ_FROM_PLKO'
EXPORTING
i_plnty = 'Q'
i_plnnr = V_PLNNR
I_PLNAL = V_PLNAL
i_sttag = V_DATUV
TABLES
T_PLMKB_TAB = IT_TAB
i want the function modules with tables and proper input... -
Function module to get customer balances
Hello , is there a FM to get customer balances?
hi Sooness,
i am not sure but you can check with the BAPI:
BAPI_AR_ACC_ GETKEYDATEBALANC E
function module to get AR (customer balance).
and also have a look in the link below:
http://www.sapbapi.com/bapi-list/
http://www.erpgenie.com/abap/functions.htm
With luck,
Pritam. -
Function module to get BOM which WOULD be created if I open a production
Is there a function module to get the BOM which WOULD be created if I open a production order?
note that I don't have the produciton order created.
I already tried with the FM CS_BOM_EXPL_MAT_V2 and CSAP_MAT_BOM_READ.
I debuged the CO01, but I did not find it.
This BOM should include materials which are under a phantom component.
Edited by: Rodrigo Pelos on Jul 20, 2011 6:55 PMHi Greetson Shunmugasundaram,
thanks for the reply, but for the FMs CO_SD_RESB_FROM_BOM_CREATE and CO_SD_NEW_BOM_ASSIGNEMENT it's necessay to have an production order but I don't have it. And with CS_ALT_SELECT_COUPLED_PRODUCT I could not get a BOM.
Let me explain in more details how I'm going to use this information, I think I was not clear in my post.
I'm creating a report to compare the BOM of a production order with BOM which would be created today if I open a production order.
Then I can check if there was changes in the reservation (RESB) of the production order. If this changes happened, how many pieces. I'll check also if there was differences in consumption, because during the production order confirmation it is possible to make changes.
I would not like to make the BOM explosion "manually" because there are too many variables in the BOM like phantom, alternative, scrap and so on, but I don't know if the function module that I'd like to use exists. -
Any Function Module For getting Shipment Details
Hi All,
I want to get all details of shipment. i tired , but unable to get any function? I was able to find the creation or change shipment function modules, but not able to find the function module for getting the details for Shipment.
like BAPI_SHIPMENT_CHANGE Change Shipment
BAPI_SHIPMENT_CREATE Create Shipment
similary
Do you have any idea for getting (display)the details of Shipments?
Regards,
Rajuhi,
you can use
VTTP,VTTK
or
RV_SHIPMENT_READ -
Table or Function Module to get Condition Values of Quotation
Hi MM Gurus
I created RFQ. Then I maintained Quotation for few Vendors. In the Quotation, I used tax code relevant to taxes in India (TAXINN procedure). I am asked to develop a Z report with the help of ABAPer to compare the quotations with Gross price, discounts, freight along with taxes like Excise Duty, VAT etc. When I had put this Quotation number in EKKO table, I am not getting the condition document number KNUMV. For other purchasing documents, this field is getting generated. Without this field, I can not get Condition values using KONV table as we need to link EKKO-KNUMV with KONV-KNUMV. Do you have any idea how we get the condition values of taxes for Quotation? Is there any function module to get it?
I really appreciate the quick answer.
Thanks
RaviHi
Try ME_GET_PRICE_CONDITION
Regards
Antony
Maybe you are looking for
-
Error while burning in Encore CS5
I am currently working on a Blu-ray 50gb project that I am finished with the programming. Last week I burned a review disc for the client and they had a few changes. I have attempted to burn a disc 5 time, each time it get about 18gb/20gb into the bu
-
Hi I am trying to download adobe photoshop cs5 on my new desktop computer
Hi I am trying to download adobe photoshop cs5 on my new desktop computer. The program was purchased several years ago so I called Adobe the other day and had them walk me through how to download on my new computer. I have done all the steps and it
-
I just restored my iphone4 in iTunes ( after not syncing it for about three months) and it wiped all my texts and contacts and I think restored it to three months ago. It seems it erased all texts and recent contacts since three months. Any way of un
-
Stream from Apple TV to 2 iOS devices simultaneously
Using a Mac, one can send iTunes music to more than one set of speakers if they are connected to an Airport Express and/Apple TV. With the latest updates, is it possible to stream music from an Apple TV to the speakers connected to the Apple TV and s
-
Photos quit unexpectedly and I then lost over 300 pictures
I was using Photos to edit pictures. The program "quit unexpectedly" (I received the error message). When I reopened the program, over 300 photos had been deleted. Where are they? Can I get them back?