Displaying VBAK-KTEXT Field on INVOICE smartform

ABAP, Java, BSP, etc.

Displaying VBAK-KTEXT Field on INVOICE smartform

Postby Alva1590 » Tue Feb 15, 2005 7:38 am

Hi All,

The requirement is to use a standard invoice Smartform i.e,(LB_BIL_INVOICE) and customize a bit .......as a part of this I need to include a field
VBAK-KTEXT which is nothing but a Description field in trasaction VA42.

So, as u might be aware , in smartforms all the neccessary structures are defined under Golbal Setting option. But , among all those structures The above mentioned Field is not included (VBAK-KTEXT).....I want to add this field to the Global Definitions option and display it on the output invoice.some where on INFO2 window of LB_BIL_INVOICE.

It would b great if i get some help on this ....Thanks in advance.

Rgds,
Shilpa/..
Alva1590
.....
.....
 
Posts: 4387
Joined: Mon Dec 02, 2002 3:01 pm

Postby Lucienne935 » Tue Feb 15, 2005 3:44 pm

In the global settings of your form, you'll have to define a data field related to vbak-ktext. Then, in section 'initialization', use this

Code: [Select all] [Expand/Collapse] [Download] (Untitled.txt)
  1. select single ktext into <your_field_name>
  2.        from vbak where vbeln = <the_vbeln_number>.
  3.  
GeSHi ©


don't forget to put your data field into the interface of the init routine (in and out)
Lucienne935
...
...
 
Posts: 162
Joined: Mon Sep 20, 2004 3:26 pm


Return to Development Related

Who is online

Users browsing this forum: No registered users and 7 guests