on ‎2015 Jul 30 9:41 AM
Hi,
We have a requirement to export transaction data along with master data based on some logic to a flat file on server.We are also passing some parameters while running the package to trigger the Custom BAdi.
We are yet to figure out some demo code to achieve it.
Please help.
Regards,
SHUBHAM
Request clarification before answering.
Hi,
Suppose we have 6 dimensions :
A,B,C,D,E,F
Now what we have to show in export file with header something like this :
A,A_DESCRIPTION,CALCULATION1,B,B_DESCRIPTION,CALCULATION2,C,C_DESCRIPTION,CALCULATION3 ,....
Under this we will be having several records based on calculations done.
I will be doing the calculations, but how to export it to some flat file is to be known ..
SHUBHAM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shubham,
Everything is possible, you need to speak to an ABAPer to help you to achieve this.
few options:
use end routine to extract MD as well and populate it in the same file.
in that BADI you can read all master data as well, and find a way to save to the SAP file system.
Andy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shubham,
I basically don't understand your requirement, why you want to save the file on server. regardless below is the approach.
You can save a file in Application server using following steps.
1. Open dataset <datasetname>
2. Transfer file
3. Close dataset
Application Server T-Code - AL11
Rohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shubham
What does this mean -
" export transaction data along with master data based on some logic"?
Do you have to export two files - one for transaction data and one for master data?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry, but can you explain what do you want to achieve?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 32 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.