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

set paramter ID info req?

Former Member
0 Likes
485

in an interact report,when the user clicks on a vbeln no,than i had used the below mentioned code

:when 'CHOOSE'.

set paramter ID 'AUN' field itab-vbeln.

call tcode 'VA32' & skip first screen.

my prob is like,its capturing the vbeln value,each time,but when opeing VA32,its not taking any value there,& showing an error to enter vbeln no.

please tell how to get value there?

in an interact report,when the user clicks on a vbeln no,than i had used the below mentioned code

:when 'CHOOSE'.

set paramter ID 'AUN' field itab-vbeln.

call tcode 'VA32' & skip first screen.

my prob is like,its capturing the vbeln value,each time,but when opeing VA32,its not taking any value there,& showing an error to enter vbeln no.

please tell how to get value there?

2 REPLIES 2
Read only

kiran_k8
Active Contributor
0 Likes
461

Vipin,

Check this piece of code.

FORM list1 USING r_ucomm LIKE sy-ucomm rs_selfield TYPE slis_selfield.

CASE r_ucomm.

WHEN '&IC1'.

IF rs_selfield-fieldname = 'TDNAME'.

READ TABLE it_lines INDEX rs_selfield-tabindex.

SET PARAMETER ID 'PLN' FIELD it_lines-tdname+4(8).

CALL TRANSACTION 'CA03' AND SKIP FIRST SCREEN.

ENDIF.

ENDCASE.

ENDFORM.

K.Kiran.

Read only

Former Member
0 Likes
461

Hi,

If you are using the interactive report why dont you read the value into a variable and then call the transaction,


*----------------------------------------------------------------------*
*  FORM DISPLAY_INVOICE_INFO                                           *
*----------------------------------------------------------------------*
*  Subroutine for calling the transaction VF03 to display Invoice info *
*----------------------------------------------------------------------*
*  There are no interface parameters to be passed to this subroutine.  *
*----------------------------------------------------------------------*
FORM display_invoice_info .

  DO.

    READ LINE sy-index FIELD VALUE w_cbox_inv.

    IF sy-subrc NE 0.

      EXIT.

    ELSEIF w_cbox_inv EQ c_flag_x.

      w_invc = sy-lisel+14(10).
      CLEAR w_cbox_inv.
      MODIFY LINE sy-index FIELD VALUE w_cbox_inv
                           FIELD FORMAT
          fs_prod_ship_cond-invc COLOR col_positive INTENSIFIED.
* To display the detailed information of a selected Invoice.
      SET PARAMETER ID c_parameter_id_vf FIELD w_invc.
      CALL TRANSACTION c_transaction_vf03 AND SKIP FIRST SCREEN.

    ENDIF.                             " IF SY-SUBRC NE 0

  ENDDO.

ENDFORM.                               " DISPLAY_INVOICE_INFO

Here I am calling the transaction VF03 and displaying the billing doc.