Skip to Content
avatar image
Former Member

Smartform: Manifest # not printing.

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Aug 11, 2008 at 09:03 PM

    Any Hints

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 15, 2008 at 05:20 PM

    n.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 18, 2008 at 08:58 AM

    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

    Add comment
    10|10000 characters needed characters exceeded