Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8451

Re: Changing IDOC-Filename to contain the outgoing-Invoice-Numer

$
0
0

Hi Robert,

the list of function module to create the filename is customizable.

So, you could try to create a function module custom, that use the tables parameter as EDIDD (content of idoc) as the follow:


FUNCTION zz_idoc_input_name.

*"*"Lokale Schnittstelle:

*"       IMPORTING

*"             VALUE(DATATYPE) LIKE  EDIPO-ACTRIG

*"             VALUE(DIRECTORY) LIKE  EDIPO-OUTPUTDIR

*"             VALUE(FILENAME) LIKE  EDIPO-OUTPUTFILE

*"             VALUE(CONTROL) LIKE  EDIDC STRUCTURE  EDIDC

*"       EXPORTING

*"             VALUE(PATHNAME) LIKE  EDI_PATH-PTHNAM

*"       TABLES

*"              IDOC_DATA STRUCTURE  EDIDD

*"----------------------------------------------------------------------

 

And then read the idoc's data to complete the pathname.

 

 

Simon


Viewing all articles
Browse latest Browse all 8451

Trending Articles



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