on 08-11-2008 5:32 PM
HI !
I have a small problem inn my smartform- The VF02 wont work after teh invoice has been created so I wnat to know how can I add the Manifest # to the sales order aftyer the invoice has been created . When I re-print the invoice after the sales order has been updated , I want the invoice to print the manifest #(same as it does when PO are added after the fact now.
I believe the invoice now shold read the manifest # from OID_MISCDL. Kindly suggest as to how to bring the manifest #.
I ahve coded it as below but I dont see the manifest # coming.
In the validation of the field I have this:
GS_VBAP-OID_EXTBOL.
data: l_oid_extbol like vbap-oid_extbol,
l_header_oid_extbol like vbak-oid_extbol,
l_vgbel like vbrp-vgbel.
data: l_oid_miscdl like vbap-oid_miscdl,
l_header_oid_miscdl like vbak-oid_miscdl.
read table is_bil_invoice-it_reford into gs_it_reford with key
bil_number = gs_gen_del-bil_number
itm_number = gs_gen_del-itm_number.
*select single oid_extbol into l_oid_extbol from vbap where
select single * into gs_vbap from vbap where
vbeln = gs_it_reford-ORDER_NUMB and
posnr = gs_it_reford-ITM_NUMBER_ORD .
***g_sales_order = gs_it_reford-ORDER_NUMB.
select single oid_extbol vgbel into (l_oid_extbol, l_vgbel)
from vbrp
where
vbeln = gs_gen_del-bil_number and
posnr = gs_gen_del-itm_number.
if l_oid_extbol is initial.
if l_header_oid_extbol is initial.
select single oid_extbol into l_header_oid_extbol
from likp
where
vbeln = gs_it_reford-ORDER_NUMB.
endif.
** concatenate gs_gen_del-deliv_numb '/' l_header_oid_extbol into
g_bol_manifest = l_header_oid_extbol.
else.
** concatenate gs_gen_del-deliv_numb '/' l_oid_extbol into
g_bol_manifest = l_oid_extbol.
endif.
** get PO
select single bstkd into g_po from vbkd
where
vbeln = gs_it_reford-ORDER_NUMB and
posnr = gs_it_reford-ITM_NUMBER_ORD.
Thanks
**************
<MOVED BY MODERATOR TO THE CORRECT FORUM>
Edited by: Alvaro Tejada Galindo on Aug 15, 2008 3:28 PM
Hi,
Normally after invoicing against a sales order if some changes are done to the sales order would not be reflected in the existing invoices.
To reflect the changes done to the sales order after invoicing you need to reinvoice against the sales order.
But some parts are enabled through functionally to reflect the changes done to the sales order immediately in the existing invoices.
Regards,
Ram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
n.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any Hints
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.