Triggering of Function modules in FILASYST
Hi,
Can any please let me know when does the function modules mentioned in FILASYST config get triggered.
I am trying to create a service contract from CRMD_ORDER and trying to check if the function modules listed in FILASYST gets triggered on save of the service contract as i need to add a custom function module to add some entries in custom FICA table on saving the contract.
Thanks,
Ruby J.
Hi,
You can create a service call and specify the function module name you want to use. This will create a Controller Method which actually uses the FM.
Tell me if you need the detail steps.
Achyut
Similar Messages
-
Hi all,
I have requirement to send mails from BADI.For that i used following function modules-SO_NEW_DOCUMENT_SEND_API1
and
SO_NEW_DOCUMENT_ATT_SEND_API1,
Both of these two function module requires to use COMMIT WORK statement.
But if we use COMMIT WORK statement in BADI a run time error is occuring as its not allowed in BADI.
Can anybody provide solution for this or provide another function module.
Thank you.commit work not allowed in BADI.It gives runtime error
Information on commit work.
becos for commit work. sy-subrc will allways sets to zero.
you can better use commitwork and wait. it sets sy-subrc.
To avoid runtime error / dump you can check the sy-subrc value. if its not equal to zero. just
Roll back work.
Plz look at the piece of code below
commit work and wait.
if sy-subrc eq 0.
exit.
else.
rollback work.
wa_error-msg = "Failed to update the status in the database "
append wa_error to it_error.
exit.
endif.
Also check the badi signature. there you have a internal table to store the error messages.
if commit work fails then add the appropriate error message to the internal table .
Hope this gives you some idea on commit work.
But as everyone says, commit work is not required for that function module . i too agree with that.
if you try to update any database after you successfully send the file . then i think commit work statement is necessary for you.
Thanks,
Uma -
Find Triggered report name in the function module.
Hi All,
A function module is being called by many Reports say (100). Now the question is, I need to find out the Triggered report name in the function module where I can do required logic change based on the report. I cannot include an import parameter in the function module to capture the Report name, for this solution I need to change 100 reports. Is there any better way to find the Triggered report name in the Function Module?
thanks in advance.
raviTry system parameter SY-CPROG.
-
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,
AshishHi,
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 -
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 -
Debugging customized function module when Idoc is triggered via ALE
Hi,
Whenever we save the billing document, an outbound idoc is triggered via ALE. The logic for the data to be included in the idoc is written in a customized function module.
However we are making some changes and would like to include some more data in the idoc. But we find that when we put a breakpoint in the function module, on saving the billing document, the flow does not stop at the break point. We are 100% sure that the code in the function module gets executed based on the data in the idoc.
How do we get into debug mode and break the flow in the function module so that we can debug in the function module?
Any help would be greatly appreciated.
Thanks in advance,
MickHi Mick, this might be of some help 4 u.
ALE IDOC
Sending System(Outbound ALE Process)
Tcode SALE - for
a) Define Logical System
b) Assign Client to Logical System
Tcode SM59-RFC Destination
Tcode BD64 - Create Model View
Tcode BD82 - Generate partner Profiles & Create Ports
Tcode BD64 - Distribute the Model view
Message Type MATMAS
Tcode BD10 - Send Material Data
Tcode WE05 - Idoc List for watching any Errors
Receiving System(Inbound ALE )
Tcode SALE - for
a) Define Logical System
b) Assign Client to Logical System
Tcode SM59-RFC Destination
Tcode BD64 - Check for Model view whether it has distributed or not
Tcode BD82 -- Generate partner Profiles & Create Ports
Tcode BD11 Getting Material Data
Tcode WE05 - Idoc List for inbound status codes
ALE IDOC Steps
Sending System(Outbound ALE Process)
Tcode SALE ?3 for
a) Define Logical System
b) Assign Client to Logical System
Tcode SM59-RFC Destination
Tcode BD64 - Create Model View
Tcode BD82 - Generate partner Profiles & Create Ports
Tcode BD64 - Distribute the Model view
This is Receiving system Settings
Receiving System(Inbound ALE )
Tcode SALE - for
a) Define Logical System
b) Assign Client to Logical System
Tcode SM59-RFC Destination
Tcode BD64 - Check for Model view whether it has distributed or not
Tcode BD82 -- Generate partner Profiles & Create Ports
Tcode BD11 Getting Material Data
Tcode WE05 - Idoc List for inbound status codes
Message Type MATMAS
Tcode BD10 - Send Material Data
Tcode WE05 - Idoc List for watching any Errors
1)a Goto Tcode SALE
Click on Sending & Receiving Systems-->Select Logical Systems
Here Define Logical Systems---> Click on Execute Button
go for new entries
1) System Name : ERP000
Description : Sending System
2) System Name : ERP800
Description : Receiving System
press Enter & Save
it will ask Request
if you want new request create new Request orpress continue for transfering the objects
B) goto Tcode SALE
Select Assign Client to Logical Systems-->Execute
000--> Double click on this
Give the following Information
Client : ERP 000
City :
Logical System
Currency
Client role
Save this Data
Step 2) For RFC Creation
Goto Tcode SM59-->Select R/3 Connects
Click on Create Button
RFC Destination Name should be same as partner's logical system name and case sensitive to create the ports automatically while generating the partner profiles
give the information for required fields
RFC Destination : ERP800
Connection type: 3
Description
Target Host : ERP000
System No:000
lan : EN
Client : 800
User : Login User Name
Password:
save this & Test it & RemortLogin
3)
Goto Tcode BD64 -- click on Change mode button
click on create moduleview
short text : xxxxxxxxxxxxxx
Technical Neme : MODEL_ALV
save this & Press ok
select your just created modelview Name :'MODEL_ALV'.
goto add message type
Model Name : MODEL_ALV
sender : ERP000
Receiver : ERP800
Message type :MATMAS
save & Press Enter
4) Goto Tcode BD82
Give Model View : MODEL_ALV
Partner system : ERP800
execute this by press F8 Button
it will gives you sending system port No :A000000015(Like)
5) Goto Tcode BD64
seelct the modelview
goto >edit>modelview-->distribute
press ok & Press enter
6)goto Tcode : BD10 for Material sending
Material : mat_001
Message Type : MATMAS
Logical System : ERP800
and Execute
7)goto Tcode : BD11 for Material Receiving
Material : mat_001
Message Type : MATMAS
and Execute --> 1 request idoc created for message type Matmas
press enter
Here Master Idoc set for Messge type MATMAS-->press Enter
1 Communication Idoc generated for Message Type
this is your IDOC
Change Pointers
I know how to change the description of a material using ALE Change Pointers.
I will give the following few steps
1) Tcode BD61---> check the change pointers activated check box
save and goback.
2) Tcode BD50---> check the MATMAS check box save and comeback.
3) Tcode BD51---> goto IDOC_INPUT_MATMAS01 select the checkbox save and comeback.
4) Tcode BD52---> give message type : matmas press ok button.
select all what ever you want and delete remaining fields.
save & come back.
5) 5) go to Tcode MM02 select one material and try to change the description and save it
it will effects the target systems material desciption will also changes
6) goto Tcode SE38 give program Name is : RBDMIDOC and Execute
give Message type : MATMAS and Executte
ALE/IDOC Status Codes/Messages
01 Error --> Idoc Added
30 Error --> Idoc ready for dispatch(ALE Service)
then goto SE38 --> Execute the Program RBDMIDOC
29 Error --> ALE Service Layer
then goto SE38 --> Execute the Program RSEOUT00
03 Error --> Data Passed to Port ok
then goto SE38 --> Execute the Program RBDMOIND
12 Error --> Dispatch ok
Inbound Status Codes
50 Error --> It will go for ALE Service Layer
56 Error --> Idoc with Errors added
51 Error --> Application Document not posted
65 Error --> Error in ALE Service Layer
for 51 or 56 Errors do the following steps
goto WE19 > give the IDOC Number and Execute>
Press on Inbound function Module
for 65 Error --> goto SE38 --> Execute the Program RBDAPP01 then your getting 51 Error
cheers,
Hema. -
Overriding the messages that are triggered in the function module
Hi all,
Can anybody knows the way to override the messages that is triggered in the Function module.
Right now we are using a standard function module "SD_CONDITION_VALIDITY_PERIODS" to get validity period of a pricing condition. What happened is we have a missing pricing condition from the master so its checking the table T681 and giving the error. We want to override this condition. If anybody knows a way how we can implement this please let me know.
Thanks in advance.
Ved Nayak.Did you try going to the message app and clicking on the person name then go to the top and click the load earlier messages button.
-
How many times was a specific function module triggered?
Hi,
is there a transaction in SAP where i can get some information about function modules "how many times is a function module triggered".
regardsOnly this are available in ECC 6.0
RSSTAT1
RSSTAT15
RSSTAT26
RSSTAT30
RSSTAT40
RSSTAT50
RSSTAT60
RSSTAT61
RSSTAT62
RSSTAT70
RSSTAT700
RSSTAT82
RSSTAT83
RSSTAT84
RSSTAT87
RSSTAT88
RSSTAT90
RSSTAT92
RSSTAT93
RSSTAT98
RSSTAT99
RSSTATAL
RSSTATAP
RSSTATAS -
Hi all,
Can we Instantly trigger a remote enabled function module as and wen any transaction is updated and a document is created?? If yes please tell how?
Thank you.
Regards.for most of the tcodes u can find many BADIs ( USER EXIT POINTS ) defined... u can trigger ur code by implementing the BADIs.
u can check the ecistance of BADI by:
-> give a breakpoint in cl_exithandler->get_instance method.
-> run ur tcode.
-> the debugger will be triggered... see the EXIT_NAME variable.. from there u can get the exit and do ur changes there... -
Calling syntactically incorrect remote function module triggers short dump
Hi,
I have some Z Function modules in ABC system and i need to call them remotely from XYZ.
There are some syntax errors in the FM's of ABC system so in the call of XYZ I am getting dump.
Can I know how to capture if there is any syntax error in the remote FM of ABC system from XYZ.
I have got FUNCTION_EXISTS to check the existence.
Can I have like that some other function to check the syntax?
Thanks,
Sham Sundher.Hi,
Check if this link can be of any help.
[FM for Syntax Check of function modules]
Regards,
Vik -
Hi,
Does anyone know the standard function modules or tables related to the transaction CG02.
I have a requirement to fetch the plating data of certain specifications.The plating data is being displayed on the transaction.but we don't know from where it is being fed or stored.
Your suggestions would immensely help.
Thanks and Regards
Hema.As I don't have this Tcode configured in my system
OK.
In session 1.
Goto ST05 tcode and the click on Activate Trace
In session 2.
You execute your transaction CG02 and navigate to the place where the data you are looking for.
Back to session 1.
Click on deacticate Trace
Click on Display trace
This will display the database table triggered while you are executing in Session 2.
Hope am able to explain you....Have a try and let me know incase of any issues.. -
Error "Job already started" when calling a adobe form in Z function module
Hi All,
I have a error when calling a adobe form in a custom function module.
I am using FP_FUNCTION_MODULE_NAME to get the adobe form function module and then i am using FP_JOB_OPEN function module to control the printing parameters such as no print preview or no dialog ..etc.. I dont have any exceptions during the call of FP_JOB_OPEN function module ..
Later I am calling my function module which was generated for the adobe form and i am getting the error called " JOB ALREADY STARTED".
I tried executing the same function module in se37 and the PDF form output was generated, and also by commenting FP_JOB_OPEN function module the PDF form output was generated.
But i need the FP_JOB_OPEN function module to control the output based on the output type which triggers the form output such as the medium from nast record which says print or email or fax.. etc
Please let me know how to handling this error.Just as a followup note. If you are testing a function module from SE37 and the test button you will get a value in SY-CPROG. You must override this value for everything to work.
If you override the value of SY-CPROG with the main program that will be calling the function module you have no problem.
John W. -
Running Function Module in Background with Update Task is not working
Hello Friends,
I have a "Z" Report Program where I am running this Report in Background using JOB_OPEN, JOB_SUBMIT, JOB_CLOSE. I am calling this in BADI.
In this Report I am calling another Function Module PRICES_POST which is a standard Function Module and in this FM there is another FM 'CKML_UPDATE_MATERIAL_PRICE IN UPDATE TASK'. Now when I am running the BADI these values are not being updated.
Friends I would like to know whether can we run Function Modules which are included with UPDATE TASK as Background Job program?
Kindly help me in providing your valuable suggestions in proceeding further.
Thanks and Regards
Pradeep GoliUsually the sequence of CALLs in your report should look like
CALL FUNCTION 'CM_F_INITIALIZE'
EXPORTING
msg_on_screen = c_x.
CALL FUNCTION 'CKMS_BUFFER_REFRESH_COMPLETE'.
CALL FUNCTION 'PRICES_CHANGE'
EXPORTING
actual_bdatj = f_matpr-pp-bdatj
actual_poper = f_matpr-pp-poper
bukrs = p_bukrs
budat = p_date
xblnr = p_xblnr
TABLES
t_matpr = t_matpr.
READ TABLE t_matpr WITH KEY pp-xerror = ' '
TRANSPORTING NO FIELDS.
IF sy-subrc <> 0.
MESSAGE i046(ckprch).
ELSE.
CALL FUNCTION 'PRICES_POST'
EXPORTING
i_bktxt = p_bktxt
bukrs = p_bukrs
lis_update = 'X'
TABLES
t_matpr = t_matpr.
ENDIF.
COMMIT WORK.
If you forget the COMMIT-WORK each and every FM called in UPDATE TASK will not be triggered.
Regards,
Raymond -
Function module with UPDATE TASK
All,
Have a look at the below code. While debugging the control is not going inside the function module called using <b>call function ...... in update task</b> statement.
I believe the function module is not executed immediately, but is scheduled for execution in a special work process (update work process). For this purpose, the name of the function module including the passed actual parameters is stored as a log record in the database table VBLOG. If the statement is executed during the update task, the addition IN UPDATE TASK is ignored.
The actual execution is triggered by the statement COMMIT WORK which is not happening in this case. The formal parameters of the function module receive the values of the actual parameters from table VBLOG. How can I read the entries in VBLOG? Why the function module is not executed? Please suggest.
PERFORM bte_publish ON COMMIT LEVEL 9.
* syncron update
COMMIT WORK AND WAIT.
* Publish business transaction events. The function module have
* to call as last update module!
FORM bte_publish.
IF NOT gvt_nodes IS INITIAL.
CALL FUNCTION 'CUSTOMER_HIERARCHY_THROW_BTE' IN UPDATE TASK
EXPORTING
ffi_valid_on = knvh-datab
fti_event_list = gvt_nodes
fti_event_listx = gvt_nodesx.
ENDIF.
ENDFORM. " BTE_PUBLISH
Thanks,Right Naren. But I need to check inside the update function module, whether it is calling the BTE function module I had configured and the code which I had put in it. Any ideas?
The COMMIT WORK is returning 4 and hence I believe it is not popping up another debuggin session in which the update FM runs.
Thanks,
Message was edited by: Somen -
How to use SWC_CREATE_OBJECT in Function Module
Hi All,
I need to create a one function module to fill the work flow container field. this work flow builder had only one task, that task is triggering through QM Action box. I need to maintain this function module in AM Action box, FM when saving field.
Please help me how to create a new function module in QM Acion box. When run the QM02 with usage decesion option is triggered Associated task is triggering, now how i will pass the notification number to work flow container.
Please help meI think you can
SWC_CREATE_OBJECT 'QMObject' Object Key
Or you can pass the QM number to the Workflow and use GENERICINSTANTIATE Method of Business Object SYSTEM to instantiate the QM Business Object.
Thanks
Arghadip
Maybe you are looking for
-
Can you drag the wave file out of garage band?
I recorded some vocals and would like to send them to someone for editing. Is it possible to export the individual wave track?
-
How do I set all users to have complete permission access to all other users on a single Macbook? When one user uploads a picture from camera, the other user is told they don't have permission to view. Same with music.
-
Updating offercode(priority code) in campaign element
Hello, My requirement is to create Campagins and Campaign Elements from flat file through BAPIS. I have used BAPI MKT_ELEMENT_CREATE to create that. But in the attributes(IM_ATTRIBUTES) we dont have the offercode or the priority code field to be u
-
Help creating/updating external links
Hi, I'm a newbie to DW8, previously most familiar with DW4. In DW8, I cannot figure out how to create or update external links (to websites), such that when I click on that text or image on my site, an external webpage will open in the same (or new)
-
I have a tablet that i bought a few years ago and it has stopped charging. I am unsure of what model or anything as I can not get into the bios system as it will not charge. I have looked all over the tablet and find no numbers or anything. Any s