
*----------------------------------------------------------------------*
* INCLUDE ZXF08U07 *
*----------------------------------------------------------------------*
* To dynamically create the EDI output file based on payment run
* company code
DATA: W_BUKRS LIKE REGUH_DATA-ZBUKR,
WA LIKE INDX.
WA-AEDAT = SY-DATUM.
WA-USERA = SY-UNAME.
WA-PGMID = SY-REPID.
W_BUKRS = REGUH_DATA-ZBUKR.
EXPORT W_BUKRS = W_BUKRS TO DATABASE INDX(ZZ)
CLIENT SY-MANDT ID 'EDI_PAYEXT_PEXR2001_BUKRS'
FROM WA.
FUNCTION Z_EDI_PATH_CREATE_T_CTRY_DT_TM .
*"----------------------------------------------------------------------
*"*"Local interface:
*" 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
*"----------------------------------------------------------------------
* This FM enables us to create dynamic EDI filenames based on the
* payment run company code
* Get the Company Code which gets set from EXIT_SAPLIEDP_903
DATA: w_bukrs LIKE reguh-zbukr.
DATA: wa LIKE indx.
IMPORT w_bukrs = w_bukrs FROM DATABASE indx(zz)
CLIENT sy-mandt ID 'EDI_PAYEXT_PEXR2001_BUKRS'
TO wa.
file2-field2 = w_bukrs.
CASE datatype.
WHEN 'I'.
MOVE 'I_' TO file2-field1.
WHEN 'O'.
MOVE 'O_' TO file2-field1.
WHEN 'S'.
MOVE 'S_' TO file2-field1.
ENDCASE.
DO.
IF file2-field2 CA space.
REPLACE ' ' WITH '_' INTO file2-field2.
ELSE.
EXIT.
ENDIF.
ENDDO.
GET TIME.
MOVE sy-datum TO file2-field3.
MOVE sy-uzeit TO file2-field4.
MOVE directory TO path-directory.
MOVE file2 TO path-filename.
CONDENSE path NO-GAPS.
MOVE path TO pathname.
ENDFUNCTION.
VM123:21 Refused to load the script 'https://munchkin.marketo.net/munchkin.js' because it violates the following Content Security Policy directive: "script-src https://*.zscalertwo.net 'self' 'unsafe-inline' 'unsafe-eval' https://*.gigya.com https://*.gigya-api.cn https://*.account.sap.com https://assets.adobedtm.com https://*.trustarc.com https://*.mtcaptcha.com". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.
(anonymous) @ VM123:21
socialize.gigya.com/js/gigya.js?apiKey=3_8nyT5U5bgmcYd76h25LbEmWhqOWeM39-36YxT90-TFTHoCC5AWQbqzABxbwJMaxU:1 Failed to load resource: net::ERR_CONNECTION_RESET
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
4 | |
4 | |
3 | |
2 | |
2 | |
2 | |
1 | |
1 |