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

alv hotspot problem wth using parameter id

Former Member
0 Likes
1,149

dell experts

                plz help me regarding this.

when m just double click on production order no thn call co03 screen.

data  declaration         P_UCOMM LIKE SY-UCOMM,

                              P_FIELD TYPE SLIS_SELFIELD.

FORM USER_COMMAND USING P_UCOMM LIKE SY-UCOMM

      P_FIELD TYPE SLIS_SELFIELD.

   CASE P_UCOMM.

     WHEN '&IC1'.

       IF P_FIELD-FIELDNAME = 'aufnr'.

       CLEAR: WA_FINAL.

       READ TABLE IT_FINAL[] INTO WA_FINAL INDEX P_FIELD-TABINDEX.

*      CHECK  WA_FINAL-AUFNR IS NOT INITIAL.

*      IF SY-SUBRC = 0.

        SET PARAMETER ID 'ANR' FIELD WA_FINAL-AUFNR.

        IF WA_FINAL-AUFNR = 'PROD ORDER NO.'.

        CALL TRANSACTION 'CO03' AND SKIP FIRST SCREEN.

        ENDIF.

so what to di m confuced.

regards

narendra

4 REPLIES 4
Read only

krishna_k19
Contributor
0 Likes
950

Hi Narendra,

   What you written is correct only , what error your getting , can you elaborate .

Regards,

Krishna

Read only

Former Member
0 Likes
950

Try with

       IF P_FIELD-FIELDNAME = 'AUFNR'.


if still u face issue please share what error you are getting or what is happening.

Read only

0 Likes
950

solute it my way

FORM USER_COMMAND USING P_UCOMM LIKE SY-UCOMM

      P_FIELD TYPE SLIS_SELFIELD.

  CLEAR: WA_FINAL.

   READ TABLE IT_FINAL[] INTO WA_FINAL INDEX P_FIELD-TABINDEX.

   CASE P_UCOMM.

     WHEN '&IC1'.

       IF P_FIELD-FIELDNAME = 'AUFNR'.

*      CHECK  WA_FINAL-AUFNR IS NOT INITIAL.

*      IF SY-SUBRC = 0.

         SET PARAMETER ID 'ANR' FIELD WA_FINAL-AUFNR.

         CALL TRANSACTION 'CO03' AND SKIP FIRST SCREEN.

         ELSEIF P_FIELD-FIELDNAME = 'PLNBEZ'.

         SET PARAMETER ID 'MAT' FIELD WA_FINAL-PLNBEZ.

         CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.

         ELSEIF P_FIELD-FIELDNAME = 'MATNR'.

         SET PARAMETER ID 'MAT' FIELD WA_FINAL-MATNR.

         CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.

         ELSEIF P_FIELD-FIELDNAME = 'KDAUF'.

         SET PARAMETER ID 'AUN' FIELD WA_FINAL-MATNR.

         CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.

        ENDIF.

   ENDCASE.

Read only

0 Likes
950

thnx