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

DISABLING SAVE BUTTON WHILE CALL TRANSACTION

Former Member
0 Likes
2,170

Hi Abapers,

My requirement is to disable the standard transaction save button while I triggering it from Zreport using Call Transaction skip initial screen.

Please suggest ur ideas.

Thanks in advance.

Regards,

Praveen Kumar G.V.S

1 ACCEPTED SOLUTION
Read only

SwadhinGhatuary
Active Contributor
0 Likes
1,675

Hello Praveen

DISABLING SAVE BUTTON WHILE CALL TRANSACTION


DATA: it_ucomm TYPE TABLE OF sy-ucomm.

APPEND 'SPOS' TO it_ucomm, "for SAVE

call transactionn 'MM01'   

  CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'

    EXPORTING

      p_status  = sy-pfkey

    TABLES

      p_exclude = it_ucomm.

hope this will solve your issues.

9 REPLIES 9
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,675

Does not the transaction have a display mode ? for ex: MM03, ME23N...

or

is it something else you require ?

Please do not post all caps in your subject line

Read only

0 Likes
1,675

Thanks,

I am not using display transaction codes. I am using create transaction codes.

ex: mm01. me21n

Read only

0 Likes
1,675

Hi,

Then what is the use of disabling the SAVE button ?  What is expected by disabling the save button in create mode ?

Please try to provide more details in the first place itself, we cannot assume what is required.

Read only

Former Member
0 Likes
1,675

Hi,

     Check the PF Status for the transaction, and when the requirement occurs, use

      set pf-status 'pf_status' (pf status name) excluding 'save'.

      I think this would help you.

Thanks & Regards,

Vinay

Read only

SwadhinGhatuary
Active Contributor
0 Likes
1,676

Hello Praveen

DISABLING SAVE BUTTON WHILE CALL TRANSACTION


DATA: it_ucomm TYPE TABLE OF sy-ucomm.

APPEND 'SPOS' TO it_ucomm, "for SAVE

call transactionn 'MM01'   

  CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'

    EXPORTING

      p_status  = sy-pfkey

    TABLES

      p_exclude = it_ucomm.

hope this will solve your issues.

Read only

Former Member
0 Likes
1,675

Hi Praveen,

Search for appropriate BADI for particular Transaction Code to disable SAVE button..

Regards ,

SG

Read only

Former Member
0 Likes
1,675

Hi, swadhin ghatuary .

I´ve tried using CALL FUNCTION 'RS_SET_SELSCREEN_STATUS' but no success.

I need to let user go to VF01 but cannot let him/her save billing document.

Before someone asks me why I am doing this, I´ll explain. I´ve created a program to simulate billing document creation. User wants to see conditions for items of document which has not been saved yet, it is the one with $ in the billing document number. If he/she uses VF01, he/she can input the invoice, choose the item from it, and push enter. The program displays the original document and the one with $.

In my program, I am using a CALL TRANSACTION VF01, but, as I said before, I cannot let button SAVE available.

Any ideas?

Thanks in advance.

Read only

0 Likes
1,675

Check with transaction variants. Variant Transactions (SAP Library - ABAP Workbench Tools)

Create a transaction variant and call it.

Read only

0 Likes
1,675

Thanks, but I´ve already tried it.

It seems transaction variant does not let us modify toolbar(save button).