Skip to Content
author's profile photo Former Member
Former Member

Drill to MK03 for vendor contact details from ALV grid output

Hi Experts,

I am facing problem when drill to MK03 tcode for vendor contact details from ALV grid output from vendor column. I set the parameted id for Vendor number to call MK03 tcode by using CALL TRANSACTION 'MK03' and SKIP first screen. but in MK03 tcode we need to set a contact datails check box for display contact detailsonly.

How can i click the check box with out going into first screen and it does not have a parameted ID. How can i solve this problem.

Thanks in Advance,

Siva.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

9 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 24, 2009 at 09:50 AM

    Hi Siva,

    Following is the code which I have written for calling transaction XK03 on click of partcular vendor code:

    It has the same requirement as you have i.e skipping the first screen and going BACK

    FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM                       "capture user commands
                            RS_SELFIELD TYPE SLIS_SELFIELD.
    
      CASE R_UCOMM.
        WHEN '&IC1'.                    "double click event
          READ TABLE IT_FILE INTO WA_FILE INDEX RS_SELFIELD-TABINDEX.
          CHECK SY-SUBRC EQ 0.
          CASE RS_SELFIELD-FIELDNAME.
            WHEN 'LIFNR'.                                    "double click event is applied on vendor field only
              IF RS_SELFIELD-VALUE IS NOT INITIAL.
    
                REFRESH IT_BDC.
                PERFORM BDC_DYNPRO      USING 'SAPMF02K' '0101'.    "recording of transaction xk03
                PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                               'RF02K-EKORG'.
                PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                               '=MALL'.
                PERFORM BDC_FIELD       USING 'RF02K-LIFNR'
                                               WA_FILE-LIFNR.
                PERFORM BDC_FIELD       USING 'RF02K-BUKRS'
                                               WA_FILE-BUKRS.
                PERFORM BDC_FIELD       USING 'RF02K-EKORG'
                                               WA_FILE-EKORG.
                PERFORM BDC_DYNPRO      USING 'SAPMF02K' '0101'.
                PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                               'RF02K-LIFNR'.
                PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                                '/00'.
                PERFORM BDC_FIELD       USING 'RF02K-LIFNR'
                                               WA_FILE-LIFNR.
                PERFORM BDC_FIELD       USING 'RF02K-BUKRS'
                                               WA_FILE-BUKRS.
                PERFORM BDC_FIELD       USING 'RF02K-EKORG'
                                               WA_FILE-EKORG.
                PERFORM BDC_FIELD       USING 'RF02K-D0110'
                                               'X'.
                PERFORM BDC_FIELD       USING 'RF02K-D0120'
                                               'X'.
                PERFORM BDC_FIELD       USING 'RF02K-D0130'
                                               'X'.
                PERFORM BDC_FIELD       USING 'WRF02K-D0380'
                                               'X'.
                PERFORM BDC_FIELD       USING 'RF02K-D0210'
                                              'X'.
                PERFORM BDC_FIELD       USING 'RF02K-D0215'
                                                'X'.
                PERFORM BDC_FIELD       USING 'RF02K-D0220'
                                               'X'.
                PERFORM BDC_FIELD       USING 'RF02K-D0310'
                                               'X'.
                PERFORM BDC_FIELD       USING 'WRF02K-D0320'
                                               'X'.
                PERFORM BDC_DYNPRO      USING 'SAPMF02K' '0110'.
    
                CALL TRANSACTION 'XK03'                 "transaction xk03 is called in mode E to skip the first screen
                USING IT_BDC
                MODE 'E'.
              ENDIF.
            WHEN OTHERS.
          ENDCASE.
      ENDCASE.
    ENDFORM.                    " USER_COMMAND

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 24, 2009 at 09:18 AM

    use CALL TRANSACTION '<tcode>' USING bdcdata_tab OPTIONS FROM opt

    in bdc tab you can fill the values...

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 24, 2009 at 09:19 AM

    Hi,

    Do MK03 recording using SM35 tcode wherein you can check the particular checkbox.

    For skipping the first screen, delete the relevant lines from the recording.

    Wherever you wantt to call transaction MK03copy paste the entire recording.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 24, 2009 at 09:22 AM

    Hi,

    Use Call Transaction <tcode>

    using <BDC table>

    MODE <mode>

    UPDATE <upd>

    MESSAGES INTO <msg table>

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 24, 2009 at 09:23 AM

    Hi Experts,

    thanks for ur reply.

    I am also thinking to run BDC but i have another issue here.

    If we display scrren using BDC, when the user choose BACK button on MK03 , need to come to my report outlist screen.

    Is it possible in case of BDC??

    Thanks in Advance,

    Siva.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member
      DATA: bdcdata_wa  TYPE bdcdata,
            bdcdata_tab TYPE TABLE OF bdcdata.
      CLEAR bdcdata_wa.
      bdcdata_wa-program  = 'SAPMF02K'.
      bdcdata_wa-dynpro   = '0108'.
      bdcdata_wa-dynbegin = 'X'.
      APPEND bdcdata_wa TO bdcdata_tab.
      
      CLEAR bdcdata_wa.
      bdcdata_wa-fnam = 'BDC_CURSOR'.
      bdcdata_wa-fval = 'RF02K-LIFNR'.
      APPEND bdcdata_wa TO bdcdata_tab.
      CLEAR bdcdata_wa.
      bdcdata_wa-fnam = 'RF02K-LIFNR'.
      bdcdata_wa-fval = '2000'.
      APPEND bdcdata_wa TO bdcdata_tab.
      
      CLEAR bdcdata_wa.
      bdcdata_wa-fnam = 'RF02K-EKORG'.
      bdcdata_wa-fval = '1000'.
      APPEND bdcdata_wa TO bdcdata_tab.
      
      CLEAR bdcdata_wa.
      bdcdata_wa-fnam = 'RF02K-D0110'.
      bdcdata_wa-fval = 'X'.
      APPEND bdcdata_wa TO bdcdata_tab.
      
      CLEAR bdcdata_wa.
      bdcdata_wa-fnam = 'BDC_OKCODE'.
      bdcdata_wa-fval = '/00'.
      APPEND bdcdata_wa TO bdcdata_tab.
      
      CALL TRANSACTION 'MK03' USING bdcdata_tab MODE 'E'.

      try this

  • author's profile photo Former Member
    Former Member
    Posted on Dec 24, 2009 at 09:30 AM

    Have you tried this before the call to MK03. This should select the address data

    data : chk_address like KRED-AUSWL.
    chk_addres = 'X'.
    SET PARAMETER ID 'KDY' FIELD chk_address.
    

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 24, 2009 at 09:37 AM

    Hi paul,

    Thanks for ur reply. i tried ur code.

    it is not working..still the check box was not checked with your code..

    Thanks,

    Siva.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 24, 2009 at 09:59 AM

    Hi Experts,

    Thanks to all

    Imy problem was resolved.

    Thanks,

    Siva

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 28, 2010 at 08:32 AM

    Hi Siva,

    I have a similar problem. I am calling transaction SE37.

    I wish to bypass the initial screen and go direction to the function module execution screen. This works fine, however when I go back, command is returned back to the initial screen of transaction se37 and not my program. I wish to avoid getting to the initial screen of transaction SE37.

    Please let me know how you resolved your issue.

    I have inserted code below.

    DATA: bdcdata_wa TYPE bdcdata,

    bdcdata_tab TYPE TABLE OF bdcdata.

    DATA opt TYPE ctu_params.

    CLEAR bdcdata_wa.

    bdcdata_wa-program = 'SAPLSFUNCTION_BUILDER'.

    bdcdata_wa-dynpro = '1008'.

    bdcdata_wa-dynbegin = 'X'.

    APPEND bdcdata_wa TO bdcdata_tab.

    CLEAR bdcdata_wa.

    bdcdata_wa-fnam = 'BDC_CURSOR'.

    bdcdata_wa-fval = 'RS38L-NAME'.

    APPEND bdcdata_wa TO bdcdata_tab.

    CLEAR bdcdata_wa.

    bdcdata_wa-fnam = 'BDC_OKCODE'.

    bdcdata_wa-fval = '=WB_EXEC'.

    APPEND bdcdata_wa TO bdcdata_tab.

    CLEAR bdcdata_wa.

    bdcdata_wa-fnam = 'RS38L-NAME'.

    bdcdata_wa-fval = 'RRMX_WORKBOOK_LIST_GET'.

    APPEND bdcdata_wa TO bdcdata_tab.

    opt-dismode = 'E'.

    opt-defsize = 'X'.

    CALL TRANSACTION 'SE37' USING bdcdata_tab options from opt.

    Thanks and Regards,

    Preneshen Govender

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.