Problem with Call transaction method in function module
Dear Frndz,
I am converting its services into webdynpro.
I developed a rfc[function module] for travel management [TRIP] . In that rfc i used call transaction method[BDC] to upload the data. The same rfc will be called from the frontend[portal].It is working fine in development for whome se37 execution authorization was assigned. It is not working for other users. I hope it is something relevant to authorization .If suppose can i create a authorization object for this rfc and assign it to the profile.
Normally users can be given authorization to run the tcode.
similarly i want to give the authorization to be given users to execuste this funtion module.
huv can i do it ?? any suggestion.
Rgds.
siva
Use ST01 transaction to start authorization trace, you will then see what authorizations are missing (if your assumption is right of course, i.e. if it's really an authorization problem)
Similar Messages
-
Problem with Call Transaction opt-RACOMMIT = 'X'.
Hello Experts
I am having a problem with call transction. I am calling a Z transaction in function module. Within the Z transaction I am furhter calling some function modules and doing commit work and then some more processing after the comit work inside So to make sure the code after comit work is fired I am using opt-RACOMMIT = 'X' in call transaction. Whenever I set this parameter opt-RACOMMIT = 'X' call transaction fails and gives error saying No batch Input data for screen XXXX. However the Z tcode processed succesfully.
By changing the Mode to E i found that it remians at the last screen of call transction after executing the Z transaction and never comes back
But if I donot use RACOMMIT = 'X' everything is fine. Please let me know if anyone came across such problem. Any help will be apreciated.
Thanks,
kamalHello,
as you said, if there is more than commit statement in your ztransaction, then you should put RACOMMIT to 'X'.
I think the problem is in your bdcdata: change it to be sure to get back to the 1st screen of your ztransaction. Then, at this point (1st screen) hit "back" button.
Cordialement,
Chaouki -
Problem with calling onApplicationStart() method
Hi all,
I have a problem with calling application.cfc's methods from coldfusion template. The problem is like when i am calling "onapplicationstart" method inside a cfml template i getting the error shown below
The onApplicationStart method was not found.
Either there are no methods with the specified method name and argument types or the onApplicationStart method is overloaded with argument types that ColdFusion cannot decipher reliably. ColdFusion found 0 methods that match the provided arguments. If this is a Java object and you verified that the method exists, use the javacast function to reduce ambiguity.
My code is like below.
Application.cfc
<cfcomponent hint="control application" output="false">
<cfscript>
this.name="startest";
this.applicationtimeout = createtimespan(0,2,0,0);
this.sessionmanagement = True;
this.sessionTimeout = createtimespan(0,0,5,0);
</cfscript>
<cffunction name="onApplicationStart" returnType="boolean">
<cfset application.myvar = "saurav">
<cfset application.newvar ="saurav2">
<cfreturn true>
</cffunction>
</cfcomponent>
testpage.cfm
<cfset variables.onApplicationStart()>
I have tried to call the above method in different way also like
1--- <cfset onApplicationStart()>
i got error like this
Variable ONAPPLICATIONSTART is undefined.
2---<cfset Application.onApplicationStart()>
The onApplicationStart method was not found.
Either there are no methods with the specified method name and argument types or the onApplicationStart method is overloaded with argument types that ColdFusion cannot decipher reliably. ColdFusion found 0 methods that match the provided arguments. If this is a Java object and you verified that the method exists, use the javacast function to reduce ambiguity
Please help me out.
Thanks
SauravYou can't just call methods in a CFC without a reference to that CFC. This includes methods in Application.cfc.
What are you trying to do, exactly, anyway? You'd probably be better served by placing a call to onApplicationStart within onRequestStart in Application.cfc, if your goal is to refresh the application based on some condition:
<cffunction name="onRequestStart">
<cfif someCondition>
<cfset onApplicationStart()>
</cfif>
</cffunction>
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/ -
Problem with call transaction KKS2
Hi all,
I am using call transaction method for KKS2 for variance calculation but it is not working.
Could you please let me know what can be the reason ? also do we need to use commit work after call transaction ?
Regards,
AnubhutiHI ,
It's not working means, are you getting any error?
Did you refresh your BDCDATA internal table?
check the syntanx for call transaction. Paste some code for better understanding. so that it l be easy to resolve the issue.
Regards,
Pravin -
Problem with CALL Transaction syntax
Hi All,
I have created a report in which Im displaying Sales order, planned order n production order details.
In the output if the user double clicks, anyone of the sales order/planned order/production order no, it has to take to concern transaction.
Sales order and planned order are perfectly working.
problem is with production order, it is not displaying, the exact order no.
my code:
WHEN '&IC1'.
IF rs_selfield-fieldname = 'VBELN'.
READ TABLE gt_final_so INTO wa_final_so INDEX rs_selfield-tabindex
SET PARAMETER ID 'AUN' FIELD wa_final_so-vbeln.
CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
ELSEIF rs_selfield-fieldname = 'PLNUM'.
READ TABLE gt_final_so INTO wa_final_so INDEX rs_selfield-tabindex.
SET PARAMETER ID 'PAF' FIELD wa_final_so-plnum.
CALL TRANSACTION 'MD13' AND SKIP FIRST SCREEN.
ELSEIF rs_selfield-fieldname = 'AUFNR'.
READ TABLE gt_final_so INTO wa_final_so INDEX rs_selfield-tabindex.
SET PARAMETER ID 'ANR' FIELD wa_final_so-aufnr.
CALL TRANSACTION 'COR3' AND SKIP FIRST SCREEN.
In debugging I checked, after call transaction, the system executing the following code, here CAUFVD-AUFNR is initial.
So, it has been picking some different no.
Starten Batchrezept über Einsatzplanung - DO-THANH
MODULE GET_PARAMETER OUTPUT.
IF CAUFVD-AUFNR IS INITIAL.
GET PARAMETER ID 'BR1' FIELD *CAUFVD-AUFNR.
IF NOT *CAUFVD-AUFNR IS INITIAL.
CAUFVD-AUFNR = *CAUFVD-AUFNR.
ENDIF.
ENDIF.
ENDMODULE. " GET_PARAMETER OUTPUT
Pls help me how to resolve the above problem.
Valuable suggesstion will be highly appreciated.
regards,
PriyaHi,
Note that the code as different Parameter id
you are setting the parameter 'ANR'
SET PARAMETER ID 'ANR' FIELD wa_final_so-aufnr.
Where as in that method it is reading the parameter id 'BR1'
GET PARAMETER ID 'BR1' FIELD *CAUFVD-AUFNR.
so try by setting the 'BR1' in set parameter.
ELSEIF rs_selfield-fieldname = 'AUFNR'.
READ TABLE gt_final_so INTO wa_final_so INDEX rs_selfield-tabindex.
SET PARAMETER ID 'BR1' FIELD wa_final_so-aufnr.
CALL TRANSACTION 'COR3' AND SKIP FIRST SCREEN.
Regards,
Kiruba. -
LT04 problems with call transaction
Hello,
I am using RF and creating screens for users to putaway material in a raw material warehouse based on a material document number from the GRN which is linked to a TR (transfer requirement). I am, however, having problems with the TO creation where the material is QM relevant.
I have used function module L_TO_CREATE_TR which works for non-QM relevant items but most of our items are QM relevant. I am trying to process these by creating a TO using LT04 as a call transaction.
However, before I can put in a bin , the screen that appears in order to enter the bin has an error message before anything has been input - 'No destination storage bin to be found in storage type 001 "(L3 009).
Anyone have any suggestions how I can get around this as I cannot create the TO in the background using LT04 because of this error.
Regards
Larissa MaryniukAs mentioned in my original question, I cannot use the LTOCREATE_FROM_TR FM for items set with stock category Q as these are QM relevant. If you try and create a TO from a TR using L_TO_CREATE_TR you get an error of 2 which is item is QM relevant. I cannot see how I can use WS_LM_TRANSFER_ORDER_CREATE as you cannot put in the TR number anywhere. Other than these 2 cannot see how I can create a TO from a TR without using LT04.
If I use LT04 and set as backrground I get the message specified. The way to get around the error using LT04 is only available if T04 is set as Foreground on the front screen instead of background.
Anyone have any suggestions?
Edited by: Larissa Maryniuk on Jan 25, 2010 11:41 AM -
CALL TRANSACTION in Update Function module
Hi all
AFIK, it is not possible to trigger a CALL TRANSACTION for BDC update in an update function module. Yet, i jus wanna to confirm it with the xperts. what are other options for posting a BDC data in an update function module?
thkx
PrabhuHi,
Try this..
Create a new RFC function module and in the function module do all the coding for the BDC and CALL TRANSACTION..
Inside the update module call the RFC function module IN BACKGROUND TASK.
I believe this should work..
Thanks
Naren -
Problem with call transaction and a query
Hi,
Whe have a query that has its own Z tcode, we are working with this "EXIT_SAPLCORF_103" within the tcode CO11N. Inside the include "ZXCOFU13" we call the query Tcode and it is displayed on screen but with no data.
The table "itbdcdata" record well the data of the inputs in the query recording so you can see with the WERKS and the number of reserve (3994) in the recording.
Why the call transaction display the query screen with no data...? and how can i pass the inputs to the query screen so it be executed.
Thanks on advance.
David Fúnez
Tegucigalpa, Honduras.
This is the recording:
AQZZZ_USER_GRMA=Z_QUERY_PP_003 1000X BDC_CURSOR SP$00002-LOW
BDC_OKCODE =CRET
S_WERKS-LOW 1202
SP$00002-LOW 3994
%ALV X
this is the code in the INCLUDE
*& Include ZXCOFU13
DATA: itbdcdata TYPE bdcdata OCCURS 0 WITH HEADER LINE,
optoption TYPE ctu_params.
REFRESH itbdcdata.
CLEAR itbdcdata.
itbdcdata-program = 'AQZZZ_USER_GRMA=Z_QUERY_PP_003'.
itbdcdata-dynpro = '1000'.
itbdcdata-dynbegin = 'X'.
APPEND itbdcdata.
itbdcdata-fnam = 'BDC_CURSOR'.
itbdcdata-fval = 'SP$00002-LOW'.
APPEND itbdcdata.
itbdcdata-fnam = 'BDC_OKCODE'.
itbdcdata-fval = '=CRET'.
APPEND itbdcdata.
itbdcdata-fnam = 'S_WERKS-LOW'.
itbdcdata-fval = '1202'.
APPEND itbdcdata.
itbdcdata-fnam = 'SP$00002-LOW'.
itbdcdata-fval = caufvd_imp-rsnum.
APPEND itbdcdata.
itbdcdata-fnam = '%ALV'.
itbdcdata-fval = 'X'.
APPEND itbdcdata.
CLEAR optoption.
optoption-dismode = 'A'. "A is visible
optoption-updmode = 'S'.
CALL TRANSACTION 'ZRESV' USING itbdcdata OPTIONS FROM optoption.problem solved.
-
Problem with "Call Transaction" which calls a view cluster
Hi Colleagues ,
I have a rare issue with the call transaction , here is the use case for it :
1> I call a transaction(calls a screen X) in a report ,
2> I have a button in the screen , which calls another transaction(calls a screen X2) .
3> On the screen X2 i have another button which calls transaction (calls the view cluster ).
problem :
i'm not able to see the navigation pane in the view cluster on the left. its missing .
but when the view cluster is called direclty , i'm able to see the navigation pane in the view cluster ..
My initial doubt was , is this the problem with nesting of 'Call Transaction' calls ????
please answer the thread , i have to fix this ASAP.
regards,
Dilipproblem solved.
-
Problem with CALL TRANSACTION SKIP FIRST SCREEN
Hi Experts,
I am having a functionality where in if i click the hotspot i go the specified transaction..I am able to do that using --
CALL TRANSACTION 'CAA3' AND SKIP FIRST SCREEN
Now if i press the back button on the standard transaction i am coming to the first screen of the CAA3 transaction..
Can i come back to my original ALV display instead of coming to the first screen of the CAA3 transaction which i have skipped while going there..
I have searched in all forums. But i couldn't get the proper solution.
Please Help me !!!
Regards,
RajeshHi friends,
What do you think the results?
I used alv hotspot.
FORM user USING r_ucomm LIKE sy-ucomm rs_selfield
TYPE slis_selfield .
READ TABLE gt_alv INTO gs_alv INDEX rs_selfield-tabindex.
IF rs_selfield-fieldname EQ 'BELGE'.
SET PARAMETER ID '80B' FIELD gs_alv-belge.
CALL TRANSACTION 'FPE3' AND SKIP FIRST SCREEN.
ELSEIF rs_selfield-fieldname EQ 'GPART'.
SET PARAMETER ID 'BPA' FIELD gs_alv-gpart.
CALL TRANSACTION 'FPP3' AND SKIP FIRST SCREEN.
ELSEIF rs_selfield-fieldname EQ 'VKONT'.
SET PARAMETER ID 'KT0' FIELD gs_alv-vkont.
CALL TRANSACTION 'CAA3' AND SKIP FIRST SCREEN.
ENDIF.
FPE3 and FPP3 is running. But CAA3 is incorrect.
is the correct answer enhancement ? -
Problem with CALL TRANSACTION 'VA33' with PARAMETER ID 'AUN'
I started to post this as a problem, but stumbled into the solution while testing further. Since I didn't find a solution in the SDN.SAP Forums I'm entering this to help others who may have the same problem.
This code would not work:
SET PARAMETER ID 'AUN' FIELD sy-lisel(10). "sy-lisel(10) contains the Scheduling Agreement on the selected line of the report.
CALL TRANSACTION 'VA33' AND SKIP FIRST SCREEN.
It would go to Transaction VA33 but would always default to the last Scheduling Agreement accessed manually instead of the one I needed to see via this call.
When I change the transaction to VA03 it works:
SET PARAMETER ID 'AUN' FIELD sy-lisel(10).
CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
We can not access a Scheduling Agreement from VA03 on-line, but for some reason this call displays the correct S/A, and System Status says it is running transactin VA03.
Perhaps it is because we are using a custome Order Type for Scheduling Agreements (YALZ)?
Best wishes to our SAP friends.Hi,
VA33 is for schedulinng Agreement so use..
SET PARAMETER ID 'LPN' FIELD sy-lisel(10).
AUN - Order number
LPN - Scheduling agreement number
now it works..
Regards,
Sathish Reddy. -
hello,
i am doing call transaction to ME41 in mode 'A' (visible). The problem is when it go to screen SAPLMLSP 0200, in this screen stop call transaction, no error, no okcode, no data,..why?
thanks,
regards,Hi,
Please check your BDC Program. i think you are not done the recording for that screen. Pleae do the recording one more time and check the program.
Thanks,
Venkat -
Problem with call transaction MMBE
Hello,
I need to make a call to the transaction MMBE from within my Z program. This is the code that I have written for it:
WHEN 'STOCKOVW'.
SET PARAMETER ID 'MAT' FIELD line_rec-matnr.
SET PARAMETER ID 'WRK' FIELD line_rec-werks.
CALL TRANSACTION 'MMBE' and SKIP FIRST SCREEN.
ENDCASE.
When I try to branch to MMBE, I get the error "The material does not exist or is not activated'. Upon debugging I noticed that the material is not getting filled up in the MMBE screen. The data element corresponding to the screen field has the parameter ID MAT and line_rec-matnr has a valid value.
Could someone please tell me what is going wrong here and how I can correct it?
Thanks,
RugmaniHi Rugmani,
<li> You used SET PARAMETER ID. There should be GET PARAMETER ID in MMBE transaction. The program for MMBE is RMMMBESTN. Use global search to find whether GET PARAMETER ID has been used in the program or not.
<li>If you find *GET PARAMETER ID in MMBE, check whether ine_rec-matnr has value or not when SET PARAMETER ID 'MAT' FIELD line_rec-matnr. is executed.
<li>I have searched for the same in ECC 6.0, I found GET PARAMETER ID in the include RMMMBENFF. Check the below one
*& Form RETTE_SPA_GPA
* Parameter-ID's, die innerhalb des Prg's umgesetzt werden und auch
* auf dem Selektionsbildschirm ziehen, müssen vor dem Umsetzen
* gerettet und nach dem Aufruf der entspr. Umfeldfunktion wieder
* zurückgesetzt werden
FORM rette_spa_gpa.
GET PARAMETER ID 'MAT' FIELD matnr_spa_gpa. "Material
GET PARAMETER ID 'WRK' FIELD werks_spa_gpa. "Werk
GET PARAMETER ID 'LAG' FIELD lgort_spa_gpa. "Lagerort
GET PARAMETER ID 'LGN' FIELD lgnum_spa_gpa. "Lagernummer note 620654
GET PARAMETER ID 'CHA' FIELD charg_spa_gpa. "Charge
* JH/4.0A/30.10.97 Int. Meld. 3484704 (Anfang)
GET PARAMETER ID 'EKO' FIELD ekorg_spa_gpa. "Einkaufsorganisation
* JH/4.0A/30.10.97 Int. Meld. 3484704 (Ende)
* tga / note 198614 wrong MRP area from sl-level / start
GET PARAMETER ID 'BERID' FIELD berid_spa_gpa.
* tga / note 198614 wrong MRP area from sl-level / end
GET PARAMETER ID 'KUN' FIELD kun_spa_gpa.
* tga / note 205042 wrong SPA/GPA for MB51 / end
* tga / note 323951 wrong SPA/GPA for MB51 / start
GET PARAMETER ID 'BES' FIELD ebe_spa_gpa.
GET PARAMETER ID 'AUN' FIELD kda_spa_gpa.
* tga / note 323951 wrong SPA/GPA for MB51 / end
ENDFORM. " RETTE_SPA_GPA
Thanks
Venkat.O -
Problem with call transaction 'FB08'
hi,
i want to call transaction FB08 and before calling, i set the parameter ids BLN (belnr), GJH (GJAHR) and BUK (bukrs). gjahr and bukrs can be set successfully but belnr couldn't set, belnr field is empty. my code is below.
set parameter id 'GJH' field gjahr.
set parameter id 'BUK' field bukrs.
set parameter id 'BLN' field belnr.
call transaction 'FB08'.
anybody have any idea??hello,
try this:
set parameter id 'GJR' field gjahr.
set parameter id 'BUK' field bukrs.
set parameter id 'BLN' field belnr.
set parameter id 'XST' field 'GO'.
call transaction 'FB08'.
regards,darek -
Holder(A008) is not maintaing in HRP1001 (BDC - Call Transaction Method)
Dear Friends,
Holder (A008) in HRP1001 is not maintained for some hiried persons through BDC - Call Transaction Method.
Except Holder update eveything is updated in the hrp1001.
When we hire a perosn through PA40, then its automatically maintaining Holder ( A008 ) in HRP1001. But for the same case through BDC program with Call Transaction method, its not maintaining Holder.
What can be reason behind not updating holder in HRP1001. How we can maintain Holder in this case.
Thanks
Rav
Edited by: Rav Jordan on Jan 10, 2012 8:03 AMHi Keshav,
Thanks for your response.
After running
CALL TRANSACTION 'PA40' USING BDCDATA
MODE CTUMODE " 'A'
UPDATE 'A'
MESSAGES INTO MESSTAB.
if sy-subrc eq '0'.
i am selecting perner created from pa0002.
now to update holder i am using fucntion module.
WA_HOLD-AEDTM = SY-DATUM.
WA_HOLD-UNAME = SY-UNAME.
WA_HOLD-OBJID = P_PLANS.
WA_HOLD-BEGDA = DT.
WA_HOLD-ENDDA = '99991231'.
WA_HOLD-OTYPE = 'S'.
WA_HOLD-PLVAR = '01'.
WA_HOLD-RSIGN = 'A'.
WA_HOLD-RELAT = '008'.
WA_HOLD-SCLAS = 'P'.
WA_HOLD-SOBID = GD_PERNR.
CALL FUNCTION 'RH_INSERT_INFTY'
EXPORTING
FCODE = 'INSE'
VTASK = 'A'
ORDER_FLG = 'X'
COMMIT_FLG = 'X'
AUTHY = 'X'
PPPAR_IMP =
OLD_TABNR = ' '
REPID = ' '
FORM = ' '
KEEP_LUPD =
WORKF_ACTV = 'X'
TABLES
INNNN = WA_HOLD
ILFCODE =
EXCEPTIONS
NO_AUTHORIZATION = 1
ERROR_DURING_INSERT = 2
REPID_FORM_INITIAL = 3
CORR_EXIT = 4
BEGDA_GREATER_ENDDA = 5
OTHERS = 6
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
endif.
This also not updating holder in the hrp1001 postion in the table.
May i know where to do change in the code so that holder can be maintained.
Thanks
Rav
Maybe you are looking for
-
How to remove en completely newly install a game app
Hi, I was playing a game, but i want to delete it and reinstall to start all over again from the start. I did al the things on this site discussions (hiding, removing etc.), but to no avail. In the store to download the app there's allways the 'cloud
-
My Game Center and games will not load on my iPad. Suggestions how to fix?
My Game Center page and most of my games will not load on my iPad Any suggestions to fix? The Game Center page is just blank
-
Excel Import of Dates while in Manual Task Mode
It appears that I cannot do an Excel import into start/finish fields for a task that is set to manual mode. Is this true, or am I overlooking something? This is annoying. I am having to import into the temporary fields of start1/finish1, then copy
-
I've searched high and low and cannot for the life of me answer my own question. There are plenty of obsolete references to holding down option keys and clicking on something advanced but it's long deceased. iTunes is a monster! Help! I've been rippn
-
I am uable to create charts out of Power Pivot.. It is only showing the table, but the data sheet for the charts is not available. Do you have a solution for this problem?