cancel
Showing results for 
Search instead for 
Did you mean: 

file to idoc scenario

Former Member
0 Kudos

In file2idoc scenario, i have 100 records, how to transer 40 to 70 records only ??

thanks

ravindra

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

if the file is flat you can try with :

Recordsets per Message option

http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm

Regards,

michal

justin_santhanam
Active Contributor
0 Kudos

Michal,

That's good option, I thought of suggesting the same. But in his case he wants only 40-70 files, so the rest 30 records will again queued up in AE right? How to ignore this. Can u please suggest

Best regards,

raj.

Former Member
0 Kudos

how do we do it with Recordset per Message if we need any records between 40-70 only out of 100.

Message Thanks

Sreeram.G.Reddy

Answers (4)

Answers (4)

Former Member
0 Kudos

message deleted.

Message was edited by:

Paul Reimius Schroeder

Former Member
0 Kudos

In the message mapping, you could create a global variable int var, then use an "if" block that has a condition where if global variable < ( 40 to 70)

make an UDF that counts the variable up after each call.

depending on which records are desired in the file you could modify this method to get any sections of records using the right if conditions

Former Member
0 Kudos

Palnati,

How you will say only 40 to 70 are qualified? If there are 500 records tomorrow what we have to take?

So this all depends upon your business requirements. For each record if there is any condition then check that condition. If the condition is true then only you map it like:

Source->condition->CreateIf->target.

So only the good records you are mapping.

Else one more option is to create two mappings. In the first you parse the whole file and in the second (assuming only good records are there) map it to the target. So this all depends upon your business requiremetns.

Regards,

---Satish

Former Member
0 Kudos

palnati,

write a OS script in UNIX to get the 40-70 lines and give the new file as input.

regards

Sreeram.G.Reddy