cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform: Manifest # not printing.

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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

Former Member
0 Kudos

n.

Former Member
0 Kudos

Any Hints