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

how to set values in noneditable screen-field

Hi experts,

I have a custom t-code for a report,when I am selecting a line item from the report,it should call standard t-code (FBZ1) and I need to set line item values in Amount and Account fields. Also it should be non-editable.

I have tried with transaction variants and made that fields as non-editable. But I couldn't set the values through BDC or SET PARAMETER ID(No Parameter id available).

can anybody say, Is there any other way or any solution for this.

Bunch of Thanks

venkat

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    Posted on Oct 01, 2013 at 09:05 AM

    Hi Venkatraman,

    Did you try doing it the way I suggested. Cause its working for me.

    Do the following code in your enhancement. I have added the following code in the enhancement provided in the include ' MF05A_DYNPRO_SEL_MODIFF01'

    ENHANCEMENT 3 ZTEST. "active version
    *
    data : konto type konto,
    wrbtr(15).
    get PARAMETER ID 'KON' FIELD konto.
    get PARAMETER ID 'WRB' FIELD wrbtr.
    RF05A-KONTO = konto.
    BSEG-WRBTR = wrbtr.
    loop at screen.
    if screen-name = 'RF05A-KONTO' or screen-name = 'BSEG-WRBTR'.
    screen-input = 0.
    MODIFY SCREEN.
    endif.
    endloop.


    ENDENHANCEMENT.

    Now in your custom program, add the following.


    data : konto type konto,
    wrbtr(15).

    konto = '13409801'.


    *This would appear as 12.49 in your program. The last two characters would be decimals unless specified as 12.49

    wrbtr = '1249'.

    set PARAMETER ID 'KON' FIELD konto.
    set PARAMETER ID 'WRB' FIELD wrbtr.

    call TRANSACTION 'FBZ1'.


    

    

    


    pastedImage_0.png (11.8 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 01, 2013 at 12:57 AM
    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Venkat,

      Sorry sy-tcode will give you the current T.code being called.

      Instead you can check for the system field SY-CPROG which will have you report program name.Check for SY-CPROG and then you can implement your logic in the implicit enhancement point as I have mentioned.

      Thanks,

      Ajay Bose

  • Posted on Oct 01, 2013 at 05:33 AM

    set parameter id in your custom program.

    In the enhancement you did to grey out the field, just before you grey out, assign the values for the amt fields using get parameter id. (As set in your custom program).

    It should work.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 01, 2013 at 06:47 AM

    😊 Thanks everybody....Let me try with implicit enhancement point and check. Hope, will come up with the success...

    Regards,

    Venkat

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 01, 2013 at 06:41 AM

    Hi ,

    Try This Code Man.

    DATA amount TYPE char10 VALUE '12345'.

    DATA: bdcdata_wa TYPE bdcdata,
    bdcdata_tab TYPE TABLE OF bdcdata.

    DATA opt TYPE ctu_params.

    CLEAR bdcdata_wa.
    bdcdata_wa-program = 'SAPMF05A'.
    bdcdata_wa-dynpro = '0103'.
    bdcdata_wa-dynbegin = 'X'.
    APPEND bdcdata_wa TO bdcdata_tab.

    CLEAR bdcdata_wa.
    bdcdata_wa-fnam = 'BDC_CURSOR'.
    bdcdata_wa-fval = 'BSEG-WRBTR'.
    APPEND bdcdata_wa TO bdcdata_tab.

    CLEAR bdcdata_wa.
    bdcdata_wa-fnam = 'BSEG-WRBTR'.
    bdcdata_wa-fval = amount.
    APPEND bdcdata_wa TO bdcdata_tab.

    CLEAR bdcdata_wa.
    bdcdata_wa-fnam = 'BDC_OKCODE'.
    bdcdata_wa-fval = '=CIDI'.
    APPEND bdcdata_wa TO bdcdata_tab.

    opt-dismode = 'E'.
    opt-defsize = 'X'.

    CALL TRANSACTION 'FBZ1' USING bdcdata_tab OPTIONS FROM opt.

    To skip the first screen you need to pass all mandatory fields.Then try to skip the first field.:)

    Regards,

    Alenlee MJ

    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.