cancel
Showing results for 
Search instead for 
Did you mean: 

Two Sepate logo condition

Former Member
0 Kudos

Hi Experts

how can I write a condition to display logo1 and hide logo2 and on other condition log02 and hide logo01

I have imported already 2 quality logos based on the condition I have to display the logo . Can anyone help me how to write the coding in smartform

regards

Monto

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Monto,

You have to write the code in Globaldefinition-->Initialization

Try this sample code

if xxx-Fieldname = 10.

Z_LOGO = 'X'.

elseif xxx-Fieldname= 11.

Z_LOGO = 'Y'.

endif.

<b>Reward Points for Useful Answers</b>

Regards

Gokul

<b>Close the thread when your question is answered.</b>

Message was edited by:

J Gokul

Former Member
0 Kudos

Hello Gokul

Thanks for your advice , well let me explain you I have 2 logos

Qauality Logo

Name : Quality logo (imported)

Object Graphics and ID : BMP with color bitmap image

and DNV logo.

Name : CFTM_DNV_Logo

object and id is grahics and Bmap respectively

Based on the condition I have to display the logo Quality and DNV

So as per your condition when I open the global definations

TYPES: GT_TYPESERNR_PRT LIKE KOMSER OCCURS 0.

  • Types

types:

begin of ty_vbfa,

vbelv like vbfa-vbelv,

posnv like vbfa-posnv,

vbeln like vbfa-vbeln,

posnn like vbfa-posnn,

vbtyp_n like vbfa-vbtyp_n,

erdat like vbfa-erdat,

erzet like vbfa-erzet,

rfmng like vbfa-rfmng, "Delivery Qty in BUom

meins like vbfa-meins, "BUom

end of ty_vbfa,

ty_it_vbfa type ty_vbfa occurs 0.

types:

begin of ty_sorder,

vbeln like vbfa-vbeln,

posnn like vbfa-posnn,

end of ty_sorder,

ty_it_sorder type ty_sorder occurs 0.

Initialization

-


  • set textnames for header, adress and footer

PERFORM GET_TEXTNAME USING IS_DLV_DELNOTE

CHANGING GF_TXNAM_ADR

GF_TXNAM_KOP

GF_TXNAM_FUS

GF_TXNAM_GRU

GF_TXNAM_SDB.

  • object text name header

GF_TDNAME = IS_DLV_DELNOTE-HD_GEN-DELIV_NUMB.

************************************************************************

****

  • Initialise VBFA table here for sales order reference.

  • load_vbfa

************************************************************************

*

break gan1.

Perform load_vbfa using is_dlv_delnote

changing it_vbfa.

Now you guide me how can i write the conditions under global definations

If VKBUR = OMAN and DIVISION = 11(CFT)

LOGO = DNV ( logo name)

esle

LOGO = QUALITY (Logo Name)