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

Smartform Issue

Former Member
0 Likes
694

Hi dear ones, I have an issue with the smartforms..

In T-Code VF02 for a particular doc no, say 80000001 I have 4 materials, the first item number has a net value as zero so for this no material description has to be fetched..ie the whole row has to be blank, but later for the 2nd line item there is net value it has to fetch material descp and the value, now for another doc no say 80000045 has a the first item number with net value of 6000 Rs, dis has to fetched along with material decp but later the 3rd line item has net value as zero for which material descp has to be fetched but the net value should not be fetched.. How do I go about this pls help....

Regards

Ajai

7 REPLIES 7
Read only

Former Member
0 Likes
653

Hi,,,,,,,,,,,,,,

Just put the conditions in your driver program,,,,,,, if net value is zero for a document then pass all vales as blank,,,,, and if net value is there then pass the subsequent values,,,,,

thanks

saurabh

Read only

Former Member
0 Likes
653

Try to make use of Form rountines tab in Global definitions node.

You can define subroutine here and write your code in it, where in code as per your requirement.

Later any where in the Smartform you call that Subroutine using Perform Statement, so that it fetches data as per your requirement.

Read only

Former Member
0 Likes
653

Hi

U will see pricing fields in KONV table u shd fetch the item data according to the pricing condtions given by your function consultant.

EKPO-EBELP = KONV-kposn

if u want in header level

EKKO-KNUMV = KONV-knumv

Regards

Read only

Former Member
0 Likes
653

Ya right but then wat wil happen is, theis condition will affect the line item 2 and 3 if there is no value in it no data will be fetched..which should not happen I want the material descp and quanity..

but thanks for the replies dear frens Saurab & siva

Read only

0 Likes
653

why are you confusing every one with two user ids . Please send a mail to sdn@sap.com and ask one of your account to delete. Don't violate the rules of engagement.

Please post your reply to this..?

Edited by: Vijay Babu Dudla on Dec 1, 2008 5:18 AM

Read only

Former Member
0 Likes
653

your Guess(t) is correct.

Read only

Former Member
0 Likes
653

Dear friend,

data : IT_VBRP type standard table of VBRP,

WA_VBRP type VBRP.

select * from vbrp into table it_vbrp

where vbeln = is_bil_invoice-hd_gen-bil_number.

Take the Table in that give the it_vbap into wa_vbap. dont put the Condition where netwr ne 0 .

Check the whatever u used the Condition in loop.

-