‎2010 Jan 19 5:12 AM
Hi,
I have defined the following User_Command
CASE RS_SELFIELD-FIELDNAME.
WHEN 'VBELN'.
SET PARAMETER ID 'VF' FIELD RS_SELFIELD-VALUE.
CALL TRANSACTION 'VF03' AND SKIP FIRST SCREEN.
WHEN 'VBELN_GRP' or 'VBELV'.
SET PARAMETER ID 'AUN' FIELD RS_SELFIELD-VALUE.
CALL TRANSACTION 'VA43' AND SKIP FIRST SCREEN.
* WHEN 'VBELV'.
* SET PARAMETER ID 'AUN' FIELD RS_SELFIELD-VALUE.
* CALL TRANSACTION 'VA43' AND SKIP FIRST SCREEN.
ENDCASE.when the field id VBELN,the call transaction is working fine.
in either case where VBELN_GRP / VBELV are the fields,the call transaction is not working.I have checked for the parameter ID.The error being the first screen of VA43 being displayed,or the OLD contract previously opened in different session is getting displayed.
please suggest changes to rectify this error.
Thanks.
‎2010 Jan 19 5:28 AM
try this,
FREE MEMORY ID 'VF'.
FREE MEMORY ID 'AUN'.
CASE RS_SELFIELD-FIELDNAME.
WHEN 'VBELN'.
SET PARAMETER ID 'VF' FIELD RS_SELFIELD-VALUE.
CALL TRANSACTION 'VF03' AND SKIP FIRST SCREEN.
WHEN 'VBELN_GRP' or 'VBELV'.
SET PARAMETER ID 'AUN' FIELD RS_SELFIELD-VALUE.
CALL TRANSACTION 'VA43' AND SKIP FIRST SCREEN.
WHEN 'VBELV'.
SET PARAMETER ID 'AUN' FIELD RS_SELFIELD-VALUE.
CALL TRANSACTION 'VA43' AND SKIP FIRST SCREEN.
ENDCASE.
‎2010 Jan 19 7:04 AM
Thanks Keshav for the prompt reply.
FREE MEMORY ID 'VF'.FREE MEMORY ID 'AUN'.Even the above statements are not working.
‎2010 Jan 19 5:30 AM
‎2010 Jan 19 5:31 AM
hi,
VBELN_GRP -
> must be of type VBELN
VBELV -
> must be of type VBELN
otherwise your statement are OK
I have checked it on my side it is perfect.
set a break-point before the set parameter id statement and check whether the value is correct in the FIELD RS_SELFIELD-VALUE.
Regareds,
Abhijit G. Borkar
‎2010 Jan 19 7:12 AM
Hi Abhijit,
Thanks for the reply.
The following fields are storing the correct value as per the ALV field we Click.
RS_SELFIELD-VALUE & RS_SELFIELD-FIELDNAME
When CALL TRANSACTION command is executed,it points to a different field.
Please advice.
‎2010 Jan 19 7:25 AM
hi,
just do one small test remove the skip screen statement and see if it is taking you to the transaction code: VA43 and the desired value is getting populated via the parameter id...
Just do this and let me know....
Regards,
Abhijit G. Borkar
‎2010 Jan 19 8:43 AM
Hi Abhijit,
the value in the following fields are as per the ALV grid:
RS_SELFIELD-VALUE
RS_SELFIELD-FIELDNAMEbut when the transaction comes,it has a different field value.If its 140 in ALV grid,then 160 is getting displayed.
Even removing the
SKIP FIRST SCREENdoes bring us to the initial screen,but the contract number is again an error.
Thanks.
‎2010 Jan 19 8:46 AM
Use the BDC Method like.
call transaction 'VA01' with bdcdata.
‎2010 Jan 19 9:02 AM
Hi Keshav,
CALL TRANSACTION 'VA43' USING BDCDATA_TAB.is not working.it goes to the initial screen of VA43,with the wrong value of contract.
please suggest.
‎2010 Jan 19 9:06 AM
Hi, <li>There should be corresponding GET PARAMETER ID 'AUN' FIELD xyz for the SET PARAMETER ID mentioned before you use CALL TRANSACTION 'VA43' AND SKIP FIRST SCREEN statement. <li> SAPMV45A is the program for VA43 transaction code. I searche with the term GET PARAMETER ID 'AUN' in that program. It was not found. So conclusion is, AND SKIP FIRST SCREEN is used when you have corresponding GET PARAMETER ID in the program of the transaction. Thanks Venkat.O
‎2010 Jan 19 9:10 AM
HI Venkat,
Thanks for the reply.
As you must have followed the question,its working fine for VF03 tcode.But for VA43 its giving error.
Please suggest.
‎2010 Jan 19 4:13 PM
‎2010 Jan 20 4:40 AM
Hi Venkat,
OK I have changed the code by leaving the following statement:
AND SKIP FIRST SCREEN.Now the double click takes us to the initial screen of VA43,but the value of the field is not populated.
Please advice.
‎2010 Jan 20 5:57 AM
Hi Venkat,
OK I have changed the code by leaving the following statement:
AND SKIP FIRST SCREEN.Now the double click takes us to the initial screen of VA43,but the value of the field is not populated.
Please advice.
‎2010 Jan 20 6:04 AM
hi
try this one VA43 field name shold be 'VBELN' .Please cehck the value(VBELN).
Edited by: dharma raj on Jan 20, 2010 11:35 AM
‎2010 Jan 21 4:39 AM
Hi Dharma,
That too is giving error,because the field name in ALV needs to be checked.
Thanks.
‎2010 Jan 21 4:50 AM
hi
for this it is working fine.
SET PARAMETER ID 'AUN' FIELD '40000231'.
CALL TRANSACTION 'VA43' AND SKIP FIRST SCREEN.
so please hard code the value and cehk the vaule or while debuggin the correct value is passing or not check it .
In ALV u r passing the VA43(contract no)? .
what error u r getting?
‎2010 Jan 21 5:15 AM
Hi Dharam,
The following code change is still not giving the result.
SET PARAMETER ID 'AUN' FIELD '161'.
CALL TRANSACTION 'VA43'AND SKIP FIRST SCREEN.It goes to initial screen of VA43 but there is an error,
"Enter the Document Number"Thanks.
‎2010 Jan 22 4:37 AM
hi
Have u tried this?
free memory id 'AUN'.
SET PARAMETER ID 'AUN' FIELD '161'.
CALL TRANSACTION 'VA43'AND SKIP FIRST SCREEN.
‎2010 Jan 22 5:19 AM
Hi Dharam,
The following code change is still not giving the result.
SET PARAMETER ID 'AUN' FIELD '161'.
CALL TRANSACTION 'VA43'AND SKIP FIRST SCREEN.It goes to initial screen of VA43 but there is an error,
"Enter the Document Number"Thanks.
‎2010 Jan 22 6:16 AM
hi
Try this but am not sure
Goto VA43 entrr the contract no 161 and come back.after excute the pgm.
‎2010 Jan 22 10:21 AM
Should I code the sequence as GOTO instead of CALL TANSACTION?
‎2010 Feb 11 5:17 AM
Thanks for all the inputs,but this is still not solved.
Closing the thread.
‎2010 Mar 31 11:08 AM
Hi,
I have the solution the parameter ID is "KTN", it's written when use F1 in the field "VBAK-VBELN" on firstscreen.
‎2010 Aug 11 6:34 AM
Hi
Did u get any solution?
I am also facing the similar problem.
Please advise if you got the solution.
Thanks & Regards
Gopal
‎2010 Jan 19 5:51 PM
hi,
put a break-point before you case statement and check the values in RS_SELEFIELD
if they are correct then in the case statement do this...
CASE RS_SELFIELD-FIELDNAME.
WHEN 'VBELN'.
SET PARAMETER ID 'VF' FIELD RS_SELFIELD-VALUE.
CALL TRANSACTION 'VF03' AND SKIP FIRST SCREEN.
WHEN 'VBELN_GRP' or 'VBELV'.
FREE MEMORY ID 'AUN'. -
SET PARAMETER ID 'AUN' FIELD RS_SELFIELD-VALUE.
CALL TRANSACTION 'VA43' AND SKIP FIRST SCREEN.
ENDCASE.
Hope it helps you,
Regards,
Abhijit G. Borkar
‎2010 Jan 20 5:58 AM
‎2010 Jan 22 4:20 AM