Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Call Transaction

Former Member
0 Likes
4,097

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

1 ACCEPTED SOLUTION
Read only

PeterJonker
Active Contributor
0 Likes
2,821

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

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

12 REPLIES 12
Read only

PeterJonker
Active Contributor
0 Likes
2,822

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

Read only

0 Likes
2,821

Thanks Peter.

Its clearer now.

Regards,

Watson.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,821

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

Read only

former_member585060
Active Contributor
0 Likes
2,821

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

Read only

0 Likes
2,821

Hi Bala,

I get an error: '.'  (fullstop) needed between zdm_cms_sr  "and" INDEX

Thanks & Regards,

Watson

Read only

0 Likes
2,821

Hi,

    Keep '.' after the WHEN 'INV'. in the code which i gave.

Thanks & Regards

Bala Krishna

Read only

0 Likes
2,821

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

Read only

0 Likes
2,821

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

Read only

Former Member
0 Likes
2,821

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

Read only

0 Likes
2,821

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

Read only

0 Likes
2,821

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

Read only

Former Member
0 Likes
2,821

This message was moderated.