cancel
Showing results for 
Search instead for 
Did you mean: 

Ack file date and time format is same as in source xml format

Former Member
0 Kudos

Hi...All,

1) my scenario is file-rfc-file using BPM,

we are getting file in xml format from source along with timestamp and this data will be going to R/3 and the acknowledgement (success or failure) file will be sending back to source system.

in this sceneario we have to fulfill in the follwing client requirement

File1.<same File1 date and time>.XML

Is it possible to make it as the following? if it is possible

could u please let me know how to fulfill the follwing requirement.

ACK File1.<same File1 date and time>.XML

Where <same File1 date and time> format = u2018YYYYMMDDhhmmssu2019 .

2) Is the XML file name visible in the SAP-XI monitoring screen and will it help to trace the messages?

thanks in advance,

Pasi.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I didnot under stand your first question coulf you be more specfic.

2. Ans : In general , we will follow the below steps

--First we we check for the file is picked or no, if not see the Sender side CC parameters like mode and path details

--If file was picked then we need to check whether we are using the File content conversion parameters or not if yes we need to check the FCC parameters ,

Goto RWB-Channelmonitoring by the following link

http://host:port/mdt/channelmonitorservlet

select the sender side CC name and check for errors

If no errors in above, goto SXMB_MONI for Integration Engine xml processing , check for successful or error occured black or red color

--if success in SXMB_MONI then we need to check in RWB as above channel monitor now select the receiver side CC

If no errors then check for output file is placed intarget or not

Please reward points if it helps

Thanks

Vikranth

Former Member
0 Kudos

hi...vikranth,

thank u for ur immediate response,

i am getting the xml file and the Ack xml they are expecting from XI like follwing ,

is it posible or not ? pls let me know.

File1.20080605013800.xml(YYYYMMDDhhmmss)

Ack file should be like follwing

AckFile1.20080605013800.xml(YYYYMMDDhhmmss)

pls identify source file time and Ack time is same..

waiting for ur reply

thanks in advance,

Pasi.

Former Member
0 Kudos

Hi,

I understand your question

try using;

DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");

Date now1 = new Date();

SimpleDateFormat formatter = new SimpleDateFormat ("yyyyddmmhhmmss");

String dateString1 = formatter.format(now1);

String final = a + dateString1;

conf.put(key,final);

return (final);

Go throught the below forum it looks like same issue.

Please reward points if it helps

Thanks

Vikranth

Former Member
0 Kudos

Thank u Vikranth

with out using UDF, cant i achive client requirement ?

if there is any possibility pls let me know..

***full points will be awareded for u*****

regards,

Pasi

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Please be clear with ur issue.iam not getting the issue u have posted.

If u have the problem with the date format then in mapping we have the standard function to change the date format.

update the thread.

Regards,

Phani

Former Member
0 Kudos

hi..Phani,

it is clear for ur understanding, let me know if u need any clarification.

my input file is File1 20080605013500.xml like this , client is expecting the output file is like follwing

Ack File1 20080605013500.XML , how can i give the same date and time for Ack.

Thanks in advance,

Pasi.