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

about bdc usage

Former Member
0 Likes
724

hi guru's,

i have a program with me which calls an alv grid and if we click on the material in the alv, it calls the transaction mm03.

now i want to use BDC FOR SKIPPING THE FIRST 2 SCREENS OF THE TRN AND DIRECTLY GO TO THE DISPLAY OF THE INFO.( skipping the view selections for the material no, but automatically some views should be selected.)

as iam new t bdc, i need to know the procedure and the insertion of the forms of bdc in my program in DETAIL.

please give me stepd to go further.

snipet of my final code is:

-


FORM at_user_command USING fp_ucom TYPE sy-ucomm

fp_selfield TYPE slis_selfield. "#EC *

CASE fp_ucom.

WHEN '&IC1'.

READ TABLE i_makt INTO wa_final

INDEX fp_selfield-tabindex.

IF sy-subrc EQ c_0.

SET PARAMETER ID 'MAT' FIELD wa_final-matnr.

CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.

ENDIF.

WHEN OTHERS.

MESSAGE i009.

ENDCASE.

ENDFORM.

-


SO PLEASE GUIDE ME HOW TO GO ABOUT.

6 REPLIES 6
Read only

Former Member
0 Likes
699

Hi Friend,

Use transaction SHDB and do the recording for MM03.

Use that recording code in your program, append into BDCDATA. Pass the material dynamically to BDCDATA.

Call the transaction using this BDCDATA table.

Syntax: CALL TRANSACTION 'MM03' USING BDCDATA.

Hope it will solve your problem.

Regards

Krishnendu

Read only

Former Member
0 Likes
699

HI ,

i think this is not possible , because we have to enter the mandatory field product no here how can we skip from here.

regards,

venkat.

Read only

0 Likes
699

hi venkat,

the mandatory field is populated from the alv grid before call transaction.

SET PARAMETER ID 'MAT' FIELD wa_final-matnr.

CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.

so watever the user selects in the alv, for that material no, some dynamic views must be selected , and displayed.

i heard that this can be acheived using bdc.

regards,

chaitanya

Read only

Former Member
0 Likes
699

This question was answered here

Read only

0 Likes
699

hi paul after the recording is done, can u give how to proceed further.

where to insert and where from.

please, can u give me a step wise like u did earlier for recording.

i would be thankful to u for this detailed help.

regards,

chaitu

Read only

Former Member
0 Likes
699

Thank u