cancel
Showing results for 
Search instead for 
Did you mean: 

how to discard the empty file with header data in SAP PI single stack

former_member675261
Discoverer
0 Kudos

SAP PO is receiving empty file with header data.

Requirement:

Empty files with or without header data has to be discarded in SAP PO.

Please give me your suggestions..

sveabecker
Community Advocate
Community Advocate
0 Kudos

Thank you for visiting SAP Community to get answers to your questions. Please add more details to your question so that you can reach a broader range of experts to get your question answered. I also recommend to do this tutorial https://developers.sap.com/tutorials/community-qa.html

The more details you provide, the more likely it is that members will be able to assist you.

Regards, Svea

SAP Community moderator

Accepted Solutions (1)

Accepted Solutions (1)

azael_navarro
Active Participant
0 Kudos

Hi kiran2000

Let me help you, and if this solve your doubt, help me to mark this commentary as "answered" to close the thread and others can solve their issues with your doubt:

You have options like:

1. Create file path for empty files with a receiver determination that can drive this empty files to that specifi file path and then you can notify this issues to business areas: REFERENCE LINK

Image Reference.

2. If you cannot create an specific repository for blank files then provoke an error in Message Mapping and notify the issue to business area. REFERENCE IMAGE

Sucess!!

former_member675261
Discoverer

Hi Azael,

Thanks for your quick response. It is worked for me.

One more below requirement I have. Can you give me your Suggestion.

How to discard the empty file with header data in Bypass scenario (File to File).

azael_navarro
Active Participant
0 Kudos

Hi kiran2000

Try to implement the condition into the ICO in interface determination or business system section, here you need to hardcode the "xmlPath of your header"

Example of XPATH = /YourMT/Header/Field = null (something similar to discard)

If dont work i only see to implement message mapping, but try the first trick.

Success!

Answers (0)