cancel
Showing results for 
Search instead for 
Did you mean: 

Screen Variant Not working

Former Member
0 Kudos

Hi,

I have created one screen variant for screen for SAPLBBP_SC_UI_ITS screen 230.

It's getting called while i checked by debugging .

But its not working in ITS Template & in transaction also .

In SAPgui it's not working .

Is there any more setting for Screen variant apart from just save it & called in screen variant BADI .

Thanks,

SS

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

What is the requirement ? Please elaborate.

<b>The Screen variant you created is for Which transaction ?</b>

<b>(Is it BBPSC01 - then in that case, you can only use 0120 as the screen number)</b>

Please let me know the details.

Hope this will help.

Please reward suitable points.

Regards

- Atul

Former Member
0 Kudos

Hi Atul,

Thanks for your response.

I need to implement Screen variant for hiding <b>Order Quantity</b> & <b>Price</b> In Shopping Cart's Basic Data of Item details .

Transaction using : BBPSC01

Program SAPLBBP_SC_UI_ITS

I am supplying the Screen variant name in BADI Implementation in method

IF_EX_BBP_SCREENVARIANT~GET_SCREENVARIANT_SC

Where ev_scvariant = 'Zvariant' .

Thanks,

SS

Former Member
0 Kudos

Hi

I hope you must have created the Screen variant

<b>'Zvariant'</b>

by now.

<b>Here is the code.</b>

  

Method IF_EX_BBP_SCREENVARIANT~GET_SCREENVARIANT_SC.

IF   iv_progname EQ 'SAPLBBP_SC_UI_ITS'
   AND iv_dynnr    EQ '0120'
   AND flt_val     EQ c_fltval.

    IF iv_scvariant EQ 'BBP_SC'.
      ev_scvariant = 'Zvariant'.
    ENDIF.
  ENDIF.

ENDMETHOD.

Hope this will help.

Please reward suitable points.

Regards

- Atul

Former Member
0 Kudos

Hi Atul,

If I am testing Screen variant from SHD0 it's working ok .

While I am running BBPSC01 it's going into BADI but not working .From web also its not working .

It's going in BADI till there it seems ok .

If I assign this to Transaction Variant & make it standard its working ok .

Could you let me know the reason .

Thanks,

SS

Message was edited by:

SAP_User S

Former Member
0 Kudos

Hi

<u>This BADI as you can see by name is for Screen Variants.

BBP_SCREENVARIANT in this case.</u>

<b>Please read the following documentation to get the clear difference</b>

Transaction Variants and Screen Variants
Transaction variants can simplify transaction runs as they allow you to:

Preassign values to fields
Hide and change the 'ready for input' status of fields
Hide and change table control column attributes
Hide menu functions
Hide entire screens
In particular, hiding fields in connection with screen compression, and hiding screens, can result in greater clarity and simplicity.

Transaction variants are made up of a sequence of screen variants. The field values and field attributes for the individual screens found in transaction variants are stored in screen variants. Each of these variants is assigned to a specific transaction, can, however, also contain values for screens in other transactions if this is required by transaction flow. The transaction that the variant is assigned to serves as initial transaction when the variant is called.

There are both client-specific and cross-client transaction variants. All screen variants are cross-client, but may be assigned to a client-specific transaction variant.

A namespace exists for cross-client transaction variants and screen variants and both are automatically attached to the Transport Organizer. Client-specific transaction variants must be transported manually.

In principle, transaction and screen variants can be created for all dialog and reporting transactions. There are, however, certain Restrictions that apply to certain transactions, depending on their internal structure.

No transaction variants are possible with transactions already containing preset parameters (parameter transactions and variant transactions).

*----------------------------------------------------------------------*

Screen variants
Screen variants allow you to simplify screen editing by:

Inserting default values in fields
Hiding and changing the ready for input status of fields
Hiding and changing the attributes of table control columns
A screen variant contains field values and attributes for exactly one screen.  A screen variant can, howevever, be assigned to multiple transaction variants. Screen variants are always cross-client; they may, however, be assigned to a client-specific transaction. They can also be called at runtime by a program. The different possibilities for calling screen variants guarantee great flexibility of use.

For more information, see: Calling Screen Variants

A specific namespace has been designated for screen variants and they are automatically attached to the Change and Transport System.


Hope this will help.

Please reward suitable points.

Regards

- Atul

Former Member
0 Kudos

Hi

Any updates ?

Do you need any other details.

Regards

- Atul

Former Member
0 Kudos

Hi Atul,

I think there is wrong with SCreen variant .

I have created Screen Variant for Transaction BBPSC01 with following values

Screen values 0230 Program SAPLBBP_SC_UI_ITS

Actually this BADI Implementation is getting called from web even from SAPgui & Screen Variant Test .

But still I am unable to call that screen variant .

I have simply created Scr var. not assigned to any transaction .

Thanks,

SS

Former Member
0 Kudos

Hi

For creating the Screen variant Logo n to SHD0 Transaction.

I guess, you have not created the screen variant correctly

OR

I guess, i understood the requirement in a wrong way,

is it for Screen 0120 or for Screen 0230 ?



Screen        Short Text
0120           Item Overview
0230           Shopping Cart: Enter Descriptive Text

Hope this will help.

Please reward suitable points.

Regards

- Atul

Former Member
0 Kudos

Hi Atul,

Now I am able to control from SCreen variant even through web but I have a query .

For Transaction BBPSC01 it's calling screen only 0120 .

All the fields available on screen 0120 as you said its working ok .

If I used it for screen <b>300</b> of <b>SAPLBBP_SC_UI_ITS</b> it's not getting called .Is this BADI can contol the fields of Table Control only ?

Thanks,

SS

Former Member
0 Kudos

Hi

<b>----


BBPSC01 - Internet Service

-


</b>



Screen     Description
-----------------------------------------------------------------
120          Item Overview  
300          Shopping Cart Item: Basic Data  

<b>BBP_SCREENVARIANT BADI is applicable for the Standard screen variant 0120 which is provided in SHD0 Transaction by default.

See BADI Documenttaion in SE18 Transaction.

Incase you want some thing else, which this BADI cannot handle, then we have to go for Modification of the Internet Service - BBPSC01 using transaction SE80 for the Template 300 in this case.</b>

Let me know your views.

Hope this will help.

Please reward suitable points.

Regards

- Atul

Answers (0)