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.
Similar Messages
-
Problems with Parameter Mapping
Hi All,
I have problems with parameter-mapping. For me its a black box, sometimes it works sometimes not.
Lots of times my mappings doesnt work, and I dont know the reason.
For example: I want to map my Execution-CO to the Display-CO. For that I map the in the affected Action.
But it doesnt work, although I do have the same Context Structures, because its the same CO. The technical Name is also the same.
What could it be?
Thanks for answering me
Bye SteveHi Andre,
sorry for my late answer, but I'm writing my diploma thesis and wasnt at work since wednesday and so I dont have a access to our GP-System.
Hope I understood you right.
The Use Case of parameter mapping is that Users of further steps has the possibility to see the Input of previous steps.
When I dont map the parameter inside one action, it isnt possible. I tried it out with the SAP example "Time-off-process". I took the CO "Create Request" and add it in one Action (as Display & Execution). When I understand you right mapping inside an action is not necessary, to see the Inputs from further Actions --> But this way I cannot see the Inputs.
The mapping of my application works before I changed it.
I know never touch a running system, but It was necessary, we need a new Input and Output Parameter.
Cause I have 20 parameter the mapping was very time-consuming, to map every single parameter. I read a method to reduce the time: Adding a structure requires only mapping of the two structures. But now the Mapping doesnt work.
Hope you can help me
Bye Steve -
Problems with parameter button in Crystal Report Server 2008
Dear all,
I have problems with parameter button in Crystal Report Server 2008.
when I created some parameters and groups in Crystal Report 2008, they showed both parameters in 'Parameter button' and group in 'Group button' on the left, so I can choose or type without clicking 'Refresh button' But when I added it to Crystal Report Server 2008 and I click parameter button , it doesn't show any parameter. Only click refresh button to choose them. On the other hand, for 'Group Tree' is ok. When go to Default Setting-> Parameter, all parameters are in 'Unused parameter' First time I think I had problems with my installation, but when I reinstalled it again, it was like before.
Could any one help me with this?
I appreciate looking forward to your reply
KetyaTry posting your questionin the correct forum, this is for SAP Business One, not Crystal reports Server
-
Problem with parameter and sql query
I've a problem with te query of my report. The query is:
SELECT [DESCRIPTN]
,[LOGTIME]
,[STATUS]
,[CARDNO]
,[LOGDATE]
FROM [Granta5P0].[dbo].[TIMELOG32]
where cardno in ({?cardNo})
the parameter as multiple values checked so I can query for more than one card.
If i put just one parameter everything works fine but when I put 2 or more I have his error
[http://www.megagaleria.com/pictures/Pic_10074_25.jpg]
I realized that the field as no ' delimiting the parameters, I have a function that already does it but I don't know how to put it in my sql command.
If anyone can help I appreciateYes, because your parameter is only looking for one card.
where cardno in ({?cardNo})
Will you only be creating querys on two cards or less ?
Are you trying to create an Array?
If two or less you could
where cardno = ({?cardNo}) or cardno = ({?cardNo2}) -
LastYearMTD and LastYearYTD problem with parameter
<p><br />Hi Friends,<br />I use crystal report ver 8.4 for generating reports with sql server.<br /> I have three tables </p><p>table1</p><p>id name orddate ordid<br />1 A 2006-01-01 1234<br />2 B 2006-05-30 5678<br />3 C 2006-12-31 9077</p><p><br />table2</p><p>orddate itemid sper amount1<br />2006-01-01 1 1 30<br />2006-05-30 2 1 40<br />2006-12-31 3 2 50</p><p><br />table3<br />id invoicedate amount2<br />1 2005-01-01 10<br />2 2005-05-30 20<br />3 2005-12-31 30 </p><p><br />now i want to generate report group by sales persone and <br />customer name at the same time i want last year current month status of customer<br /> within given date range parameter.</p><p>sr ordid saleMTD(amount2) amount1</p><p><br />I have tried everything but not getting exact answer.<br />the main problem in this is date range parameter.<br />I am not getting how i can use LastYearMTD with date range parameter.<br />Please help me.</p><p>Thanks in advance</p><p>crystal</p><p> </p><p> </p><p> </p>
Yes, because your parameter is only looking for one card.
where cardno in ({?cardNo})
Will you only be creating querys on two cards or less ?
Are you trying to create an Array?
If two or less you could
where cardno = ({?cardNo}) or cardno = ({?cardNo2}) -
Call Transaction 'FMWC' cashes parameter
Hallo,
I'm trying to implement following code fragment in ABAP:
SET PARAMETER: ID 'KBL' FIELD ZAHL_FMIOI-REFBN .
call transaction 'FMWC' AND SKIP FIRST SCREEN .
The problem ist that transaction FMWC takes not the parameter set, but the value from user-cash which was used by previous transaction call made by user via fordeground call of transaction in question. Has smbd. an idea how to preven this ?
Kind Regards
Alexey VoynikovNow the coding looks liike
data: kbl like fmioi-refbn.
free memory id 'KBL'. returns 4
get parameter id 'KBL' field kbl. returns 0, kbl = ' '.
SET PARAMETER ID 'KBL' FIELD sach_FMIOI-REFBN . returns 0
get parameter id 'KBL' field kbl. returns 0, kbl = '0123456789' (equals to sach_fmioi-refbn)
call transaction 'FMWC' AND SKIP FIRST SCREEN. parameter 'KBL' in TA Dynpro is not set (empty).
the fileld kbl is just for debugging purposes.
All semicolons are deleted.
Field sach_fmioi-knblnr is populeted and hidden in the line.
The combination set parameter, call transaction works perfect with other transaction , I have implemented it for fb03, me23n,as03 and further more. -
Commit work statement creating problem in CALL TRANSACTION
Hi Friends,
we are facing a problem where we need to call a standard program from a Zprogram.
we have tried the following ways.
1. Using SUBMIT statement , we are sending the parameters to the standard program, but when the standard program gives a
dump our program cannot process further records. we are calling the submit statment in a loop. As because the standard
program is giving dump our program is not able to process the next record in the loop and this should not be the case.
To avoid this we have used the second method.
2. we used a CALL transaction, we have created a Tcode for the standard program and called this transaction in the calling
program. We are passing the parameters for the standard program via BDC table. this works fine even when the standard
program gives a dump but when ever the control comes across a Commit work statement the the control comes back to our
calling program with out executing the rest of the statments after the commit.
now our concern is even though there is an commit work statement , statements after the commit work should also get executed in call transaction. Is thee any way?
Regards,
SravanHi All,
I got the solution
DATA: ctu_parameters TYPE ctu_params.
ctu_parameters-dismode = 'E'.
ctu_parameters-updmode = 'A'.
ctu_parameters-racommit = 'X'. "No abortion by COMMIT WORK
CALL TRANSACTION USING itab_bdcdata OPTIONS FROM ctu_parameters.
the above code will work even if there is an commit work . This might help some others. -
Problem in call transaction in interactive ALV
Hi All
I am displaying ALV report.
I want to make it interactive. After clicking on REFBN (COBK-REFBN) it should open FB03 transaction.
I am using followng code:
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
I_STRUCTURE_NAME =
IS_LAYOUT =
IT_FIELDCAT = it_fieldcat
TABLES
T_OUTTAB = it_final
EXCEPTIONS
PROGRAM_ERROR = 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.
FORM USER_COMMAND USING F_UCOMM LIKE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
READ TABLE it_final INDEX rs_selfield-tabindex INTO wa_final.
CASE F_UCOMM.
WHEN '&IC1'.
IF wa_final-refbn is not initial.
SET PARAMETER ID 'BLR' FIELD wa_final-REFBN.
CALL TRANSACTION 'FB03' AND SKIP FIRST SCREEN.
ENDCASE.
ENDFORM.
This code is not working. When I am double clicking on the REFBN field in my report nothing is happening.
Please help.
Thanks & Regards
DeeptiHello,
Try the below code
" while building the field catalog set the field HOPSPOT for the field REFBN
data: w_repid type syrepid.
w_repid = sy-repid.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
i_callback_user_command = 'USER_COMMAND'
it_fieldcat = it_fieldcat
TABLES
t_outtab = it_final
EXCEPTIONS
program_error = 1
others = 2.
IF SY-SUBRC = 0.
ENDIF.
FORM user_command USING f_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
CASE f_ucomm.
WHEN '&IC1'.
IF rs_selfield-value IS NOT INITIAL.
SET PARAMETER ID 'BLR' FIELD rs_selfield-value.
CALL TRANSACTION 'FB03' AND SKIP FIRST SCREEN.
ENDIF.
ENDCASE.
ENDFORM.
Hope this helps you.
Regards,
Sachinkumar Mehta -
Hi Problem in call transaction program of FB60
Hi Techies,
in my call transaction program for FB60 compnay code is defaulted in the initial screen.Every time i need to post different records with the different company codes.
when i record the company code change in FB60 through SHDB once i chnage the company code it is coming out of the recording.
pls let me know how can i continue FB60 transaction once i change the company code for further processing.
and let me know and logic to handle the compnay code when it is defaulted in FB60.
Thanks in advance
Krishna DHi,
Try this code and cross check with urs.
CASE SY-UCOMM.
WHEN '&BATCH'. "Batch Field
PERFORM F1000_BDC_MM03 USING LV_MATNR LV_WERKS.
endcase.
FORM F1000_BDC_MM03 USING P_LV_MATNR
P_LV_WERKS.
PERFORM BDC_DYNPRO USING 'SAPLMGMM' '4110'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=GESV'.
CALL TRANSACTION C_TRANSACTION_CALL_MM03 USING I_BDCDATA MODE 'E'
MESSAGES INTO I_MESSTAB.
ENDFORM. " f1000_bdc_mm03
&----& Form bdc_dynpro
&---- Appending the BDC dynpros to internal table BDCDATA
FORM BDC_DYNPRO USING PROGRAM DYNPRO.
CLEAR W_BDCDATA.
W_BDCDATA-PROGRAM = PROGRAM.
W_BDCDATA-DYNPRO = DYNPRO.
W_BDCDATA-DYNBEGIN = 'X'.
APPEND W_BDCDATA TO I_BDCDATA.
ENDFORM.
DATA: I_BDCDATA TYPE STANDARD TABLE OF BDCDATA,
Internal table to hold BDC messages
I_MESSTAB TYPE STANDARD TABLE OF BDCMSGCOLL.
&----& Form bdc_field
Appending the BDC FIELDS to internal table BDCDATA
FORM BDC_FIELD USING FNAM FVAL.
IF FVAL <> NODATA.
CLEAR W_BDCDATA.
W_BDCDATA-FNAM = FNAM.
W_BDCDATA-FVAL = FVAL.
APPEND W_BDCDATA TO I_BDCDATA.
ENDIF.
ENDFORM.
Tahnks & Regards,
Judith -
Problem in call transaction using FD33 t code
Hi all i'm developing a report in that in that i'm calling a tcode FD33.
I want to skip the initial screen.For that i need to pass Customer , Credit control area and status from my program to that tcode.
But my problem is that how to pass the value to check box.
i.m writing the following code
"Set parameter ID for transaction screen field
SET PARAMETER ID 'KUN' FIELD W_ALV-KUNNR.
SET PARAMETER ID 'KKB' FIELD W_ALV-VKORG.
"Execute transaction FD33, and skip initial data entry screen
CALL TRANSACTION 'FD33' AND SKIP FIRST SCREEN.
So how to set the value of the STATUS check box.
thanks in advanced.
Dheerajuse:
data: dynnr(40) value '/210'. "or number of another dynpro you wish to go
SET PARAMETER ID 'CDY' FIELD dynnr.
A. -
Weird problem after calling transaction...
Hello experts,
Please take a look at my code below:
AT LINE-SELECTION.
DATA: lv_fnam(50) TYPE c,
lv_fval(50) TYPE c,
lv_asset_dum TYPE anla-anln1,
lv_assetsub_dum TYPE anla-anln2.
GET CURSOR FIELD lv_fnam VALUE lv_fval.
IF sy-subrc = 0.
CASE lv_fnam.
WHEN 'WA_OUTPUT-ASSET_SUBNUM'.
SPLIT lv_fval AT '-' INTO lv_asset_dum lv_assetsub_dum.
SET PARAMETER ID 'BUK' FIELD wa_output-company.
SET PARAMETER ID 'AN1' FIELD lv_asset_dum.
SET PARAMETER ID 'AN2' FIELD lv_assetsub_dum.
CALL TRANSACTION 'AW01N' AND SKIP FIRST SCREEN.
WHEN 'WA_OUTPUT-EQUIP_NUM'.
SET PARAMETER ID 'EQN' FIELD lv_fval.
CALL TRANSACTION 'IE03' AND SKIP FIRST SCREEN.
ENDCASE.
ENDIF.
the value of WA_OUTPUT-ASSET_SUBNUM is shown as asset number + asset subnumber.
for example:
1468-0000
Now, when we look at transaction AW01N it requires the company code, asset number and the sub number.
When you look at my code, I am splitting WA_OUTPUT-ASSET_SUBNUM at '-' and put them in 2 variables
as shown above. But when I call transaction AW01N it says that 'No depreciation areas defined for
asset 1468-0. It weird since when I manually enter those values it is fine.
Help would be greatly appreciated. Thanks a lot guys and take care!Hello again experts,
here now is my revised code. It still has the same problem which says no depreciation areas defined for asset 1468-0.
After debugging it, lv_asset_dum has a value of 1468 and lv_assetsub_dum has a value of 0000. This should work fine if I enter it manually.
AT LINE-SELECTION.
DATA: lv_fnam(50) TYPE c,
lv_fval(50) TYPE c,
lv_asset_dum TYPE anla-anln1,
lv_assetsub_dum(4) TYPE n.
GET CURSOR FIELD lv_fnam VALUE lv_fval.
IF sy-subrc = 0.
CASE lv_fnam.
WHEN 'WA_OUTPUT-ASSET_SUBNUM'.
SPLIT lv_fval AT '-' INTO lv_asset_dum lv_assetsub_dum.
CONDENSE: lv_asset_dum, lv_assetsub_dum.
SET PARAMETER ID 'BUK' FIELD wa_output-company.
SET PARAMETER ID 'AN1' FIELD lv_asset_dum.
SET PARAMETER ID 'AN2' FIELD lv_assetsub_dum.
CALL TRANSACTION 'AW01N'.
WHEN 'WA_OUTPUT-EQUIP_NUM'.
SET PARAMETER ID 'EQN' FIELD lv_fval.
CALL TRANSACTION 'IE03' AND SKIP FIRST SCREEN.
ENDCASE.
ENDIF. -
ALV Interactive -Problem while calling transaction
Hi Experts,
FORM user_command USING cmd TYPE sy-ucomm
self TYPE slis_selfield.
CASE cmd.
WHEN '&IC1'.
READ TABLE gt_output INTO gs_output INDEX self-tabindex.
IF self-fieldname = 'VBELN' and gs_output-vbeln is not initial.
SET PARAMETER ID 'AUN' field gs_output-VBELN.
call transaction 'VA23' AND SKIP FIRST SCREEN.
ENDIF.
ENDCASE.
ENDFORM.
But in the above code my parameter id value is not properly fixed. Could anybody suggest me how I can fix my parameter id based on user selection so that I can call the desired transaction.
Regards,
Nehahi,
SET PARAMETER ID <pid> FIELD <f>.
This statement saves the contents of field <f> under the ID <pid> in the SAP memory. The code <pid> can be up to 20 characters long. If there was already a value stored under <pid>, this statement overwrites it. If the ID <pid> does not exist, double-click <pid> in the ABAP Editor to create a new parameter object.
in your statement check the id, if it is not available you can create id and store the field value.
for more information, follow this link.....
http://help.sap.com/saphelp_nw04/helpdata/EN/9f/db9e0435c111d1829f0000e829fbfe/content.htm
regards,
Ashok -
Problem in calling transaction on Portal through ITS
Dear All,
We are facing a problem in calling R/3 transaction through ITS on EP 6.0 , It is successfuly coming on the internet explorer 7.0 but on mozilla firefox, it is showing SAP GUI screen only. Plz suggest what we have to do. It is necessary to us to use this on Mozilla or other explorer like safari as our some user are using MAC OS.
Ankit GuptaAnkit,
You would have to verify your portal version and the browsers supported via the PAM.
Access this link using the service marker place id and password.
https://websmp202.sap-ag.de/pam
http://service.sap.com/pam
Cheers!
Sandeep Tudumu -
Problem with parameter of stored procedure....
HI,
I've this stored procedure:
CREATE OR REPLACE procedure ST_DAT (NAME_IN VARCHAR2) as
BEGIN
insert into REP_NAME
select COD_ID,DESCR_ID,AREA, NAME_IN, sysdate
from REP_TAB;
COMMIT;
END ST_DAT;
this procedure is called from an external program
It run correctly, but I have any problem when I tried to insert into tab REP_NAME one value of NAME_IN
with apostrophe.
for example if I write (from external program) Mary run correctly, but If I write Mary's Bar I get
this error:
ORA-01756: quoted string not properly terminated.
I tried with REPLACE:
insert into REP_NAME
select COD_ID,DESCR_ID,AREA, REPLACE(NAME_IN,'',''''), sysdate
from REP_TAB;
BUT I GET SAME ERROR:
How can I call this procedure with apostrophe?
Thanks in advance!You need to handle this in the calling program by escaping the apostophe with another apostrophe...
exec st_dat('Mary''s Bar')Of course that's easy to do when I'm typing in a literal. It's a bit trickier to automate :)
Cheers, APC -
Problem with Parameter on stored procedure for in() condition
Hello,
I would like to pass a parameter to a stored procedure like :
procedure sps_country(zones varchar2)
is
begin
select * from country where zone in (zones);
end sps_country;
My problem is : when i have one value in "zones" parameter all is OK but when i have 2, 3 ... values in zones with this format : ##, ##, ## there is no error, but there is no results found.
have you a solution please ?
ThanksAlso this document has some suggestions.
Maybe you are looking for
-
Upgrade R12.0.6 to R12.1.3 results in disabled currency
Hello, I was wondering if anyone has seen this when upgrading Oracle Financials R12.0.6 to R12.1.3: The foreign currency (in our case CAD) was disabled after the upgrade process. I had to manually go in and enable this currency. Thanks, Manish
-
Hi, I'm trying to extract cust related details, for which i'm using logical database. Logical database DDF is general data specific, Is there any other locgical database which contains all customer master tables ie.s general -company code data & sale
-
Adding / Positioning Email attachments MAIL 7.3
Recently upgraded to MAVERICK 10.9.3 along with MAIL 7.3. Have a problem positioning attachments inside outgoing emails. Whenever I select an attachment it always ends up at the very end of the email. In previous versions of Apple Email the at
-
Does any of you know how to configure certificates in ACS?, any reference for this issue? thanks
-
Failing podcast producer builds after 10.6.3 update
Here is a portion from my logs that shows the failing points, doesn't matter the workflow or user, always fails now.... has to be permissions of some kind but I don't know what to fix.. Thu Apr 8 10:30:39 wentube.wsd.wednet.edu xgridagentd[8814] <Not