2012 Mar 20 2:20 PM
Hi Gurus,
I am trying to go to the next screen using CALL TRANSACTION or PERFORM CALL_TRANSACTION_DISPLAY
by Double-Clicking on an invoice number, but I am failing.
What is the ABAP program code i can use ?
I have tried:
**************************************************************************************************
MODULE user_command_0100 INPUT.
CASE ok100.
WHEN 'INV'.
IF zdm_cms_sr-inv IS INITIAL.
* CALL TRANSACTION 'VF03'.
* READ TABLE zdm_cms_sr INDEX RS_SELFIELD-VF.
PERFORM call_display_transaction.
ENDIF.
ENDCASE.
form call_display_transaction.
* SET PARAMETER ID 'INV' FIELD ZDM_CMS_SR-INV.
call transaction 'VF03' AND SKIP FIRST SCREEN.
endform.
*******************************************************************************************************
Thank you in advance.
Watson
2012 Mar 20 2:27 PM
I think it should be:
SET PARAMETER ID 'VF' FIELD ZDM_CMS_SR-INV.
call transaction 'VF03' AND SKIP FIRST SCREEN.
The parameter ID for the invoice number is 'VF' and I assume that ZDM_CMS_SR-INV contains the invoice number you want to display
I think it should be:
SET PARAMETER ID 'VF' FIELD ZDM_CMS_SR-INV.
call transaction 'VF03' AND SKIP FIRST SCREEN.
The parameter ID for the invoice number is 'VF' and I assume that ZDM_CMS_SR-INV contains the invoice number you want to display
2012 Mar 20 2:27 PM
I think it should be:
SET PARAMETER ID 'VF' FIELD ZDM_CMS_SR-INV.
call transaction 'VF03' AND SKIP FIRST SCREEN.
The parameter ID for the invoice number is 'VF' and I assume that ZDM_CMS_SR-INV contains the invoice number you want to display
2012 Mar 20 2:34 PM
2012 Mar 20 2:29 PM
I don't know this "INV" parameter ID, use "VF" (press F1 on invoice number field and then press F9 or icon technical information)
SET PARAMETER ID 'VF ' FIELD VBELN.
* SET PARAMETER ID 'VFP' FIELD POSNR.
* PERFORM AUTHORITY_CHECK USING 'VF03'.
CALL TRANSACTION 'VF03' AND SKIP FIRST SCREEN.
You could also use FM BILLINGDOC_DISPLAY or BAPI_BILLINGDOC_DISPLAY. (or perform a where-used on VF03 transaction)
Regards,
Raymond
2012 Mar 20 2:33 PM
Hi,
WHEN 'INV'
* Get the value for the selected Invoice,
READ TABLE zdm_cms_sr INDEX RS_SELFIELD-VF.
SET PARAMETER ID 'VF' FIELD zdm_cms_sr-inv.
CALL TRANSACTION 'VF03' AND SKIP FIRST SCREEN.
ENDCASE.
Thanks & Regards
Bala Krishna
2012 Mar 20 2:52 PM
Hi Bala,
I get an error: '.' (fullstop) needed between zdm_cms_sr "and" INDEX
Thanks & Regards,
Watson
2012 Mar 20 3:00 PM
Hi,
Keep '.' after the WHEN 'INV'. in the code which i gave.
Thanks & Regards
Bala Krishna
2012 Mar 22 10:40 AM
Hi Bala,
I still get the same error about the fullstop.
Error: "." (fullstop) required after READ TABLE zdm_cms_sr
This is a the code i am using
*CALL TRANSACTION VF03 TO ANOTHER SCREEN.
WHEN 'SV_INV'.
* Get the value of the selected invoice
IF zdm_cms_sr-inv IS INITIAL.
READ TABLE zdm_cms_sr INDEX RS_SELFIELD-SV_INV.
.
PERFORM call_display_transaction.
ENDIF.
form call_display_transaction.
SET PARAMETER ID 'sv_inv' FIELD ZDM_CMS_SR-INV.
call transaction 'VF03' AND SKIP FIRST SCREEN.
endform.
2012 Mar 22 10:51 AM
Hi,
How you have declared internal table zdm_cms_sr? Just check the rs_selfield values there will be no sv_inv value.
Try below code
CASE v_fieldname.
WHEN 'SV_INV'.
* Get the value of the selected invoice
READ TABLE zdm_cms_sr INDEX rs_selfield-tabindex.
IF zdm_cms_sr-inv IS INITIAL.
PERFORM call_display_transaction.
ENDIF.
WHEN OTHERS.
ENDCASE.
*&---------------------------------------------------------------------*
*& Form call_display_transaction
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
FORM call_display_transaction.
SET PARAMETER ID 'VF' FIELD zdm_cms_sr-inv.
CALL TRANSACTION 'VF03' AND SKIP FIRST SCREEN.
ENDFORM. "call_display_transaction
Thanks & Regards
Bala Krishna
Message was edited by: Bala Krishna
2012 Mar 20 2:54 PM
Are you checking if your invoice is initial?
"IF zdm_cms_sr-inv IS INITIAL."
Is it not supposed to be filled to carry out the invoice number to be set as parameter on call transaction??
Should not be IF zdm_cms_sr-inv IS NOT INITIAL. ?
Regards,
Felipe
2012 Mar 22 9:56 AM
Hi Felipe,
Thank you for the response.
The aim is to go to another screen for transaction vf03 whn i double-click the invoice number.
Regards,
Watson
2012 Mar 22 10:21 AM
I don't think VF03 can perform this when using a hidden parameter-id as some other transactions do (Look at the PBO of transaction initial screen)
Better try to build a small BDC to go to the required screen, and use A CALL TRANSACTION 'VF03' USING lt_bdcdata OPTIONS FROM ls_opt, with ls_opt-nobiend set.
Regards,
Raymond
2016 Mar 30 6:00 PM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |