on 05-08-2009 10:13 AM
Hi Leads,
I am working on Smartform for invoice. In that I need to print Sales order number (VBAK-VBELN) and Order Quantity (VBAP-KWMENG).
The importing structure in the Samrt Form is : LBBIL_INVOICE.
So, from this how can I get Order num and Quantity.
Pleas let me know.
Regards
Sandeep
Hi ,
once u get the importing structure 'LBBIL_INVOICE' to smartform.
u can do it like below to print VBELN & KWMENG like below:
data : gs_hd_gen TYPE LBBIL_HD_GEN,
gv_vbeln TYPE vbeln,
gs_IT_GEN TYPE LBBIL_IT_GEN,
gv_fkimg TYPE fkimg.
**Printing Sales Order No
gs_hd_gen = LBBIL_INVOICE-HD_GEN.
gv_vbeln = gv_hd_gen-vbeln.
**Printing Order Quantity
gs_IT_GEN = LBBIL_INVOICE-IT_GEn.
gv_fkimg = gs_IT_GEN-fkimg.
Rgds,
Pavan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sandeep,
In this structure, there is the table IT_GEN. Read this table line by line and take the field FKIMG (Quantity).
The sales order number you find it in structure HD_REF, field ORDER_NUMB.
If you are having inconsistencies between the invoice quantity and the order quantity, then I suggest that with the order number (ORDER_NUMB) to do a SELECT on table VBAP somewhere in SmartForm or in the print program and then pass it on.
Best regards,
George
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.