Quantcast
Channel: SCN: Message List - ABAP Development
Viewing all articles
Browse latest Browse all 10425

Re: Regarding email from invoice

$
0
0

Dear Jelena,

 

The output type is configured now and i attached my custom program to send email to this output type. Email is being send when invoice is created using vf01.

 

However in case of vf04, the output type is failing, i checked the code and found out that nast-objky is not getting populated.

 

*---------------------------------------------------------------------*

*       FORM ENTRY

*---------------------------------------------------------------------*

FORM entry USING return_code us_screen.

 

 

  DATA: lf_retcode TYPE sy-subrc.

 

 

  IF nast-objky IS INITIAL.

    MESSAGE 'Invoice number not found'(001) TYPE 'S'.

  ELSEIF v_vbeln IS INITIAL.

    v_vbeln = nast-objky.

  ENDIF.

 

Am i missing anything here.

 

Thanks


Viewing all articles
Browse latest Browse all 10425

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>