‎2008 Dec 01 9:36 AM
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
‎2008 Dec 01 9:51 AM
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
‎2008 Dec 01 9:53 AM
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.
‎2008 Dec 01 9:55 AM
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
‎2008 Dec 01 9:57 AM
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
‎2008 Dec 01 10:18 AM
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
‎2008 Dec 01 10:14 AM
‎2008 Dec 01 10:15 AM
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.
-