cancel
Showing results for 
Search instead for 
Did you mean: 

How we can read SNP result logs using ABAP tables or function modules?

former_member379943
Participant
0 Kudos

Hi

How  we can read SNP result logs using ABAP tables or function modules? I want to read the Result logs of SNP Optimizer-IT_ARCMAT for reporting purpose like wise remaining logs had to be read.Suggest me the best way to read the SNP Logs data & write a report.

Thanks

Poorna

Accepted Solutions (0)

Answers (2)

Answers (2)

ajayprakash
Explorer
0 Kudos

Hi Poorna,

Find the list of important tables used in optimizer log.

Start with the table /sapapo/snpopkey to get the session is which is unique to every optimizer run and use that to get the respective data from the below list

Table nameUse
/sapapo/snpopkeyFetch Optimizer Run GUI Id from Optimizer run name
INPUT LOG
/SAPAPO/SNPOPSE2Location Products
/SAPAPO/SNPOPBCTSNP Optimizer: Bucket Definitions (ET_BUCKDF)
/SAPAPO/SNPOPLMASNP Optimizer: Location Products (ET_LOCMAT)
/SAPAPO/SNPOPRRESNP Optimizer: Elementary Production Resources (ET_RESOURCE)
/SAPAPO/SNPOPIARSNP Opt.: Transportatn Lane Means of Transp.= "Arc" (ET_ARC)
/SAPAPO/SNPOPIAMSNP Optimizer: Material Flow on Arcs (ET_ARCMAT)
/SAPAPO/SNPOPPMASNP Optimizer: PPM Products (ET_PROMAT)
/SAPAPO/SNPOPPMOSNP Optimizer: PPM Attributes (ET_PROMO)
/SAPAPO/SNPOPPRESNP Optimizer: PPM Resource Consumption (ET_PRORES)
/SAPAPO/SNPOPLPRSNP Opt.: Safety Stock, Fixed Demands, Receipts (ET_LOCPROD)
OUTPUT LOG
/SAPAPO/SNPOPMLOSNP Optimizer: Output Table for Location Product
/SAPAPO/SNPOPAMASNP Optimizer: Output Table for Product-Dependent Transport
/SAPAPO/SNPOPPROSNP Optimizer: Output Table for Production
/SAPAPO/SNPOPPRCSNP Optimizer: Output Table for External Procurement
/SAPAPO/SNPOPDEM,/SAPAPO/SNPOPDMNSNP Optimizer: Output Table for Fulfilled Demand
/SAPAPO/SNPOPNDI,/SAPAPO/SNPOPNDESNP Optimizer: Output Table for Not Delivering

Cheers

Ajay

0 Kudos

To see which tables are saved for the SNP-optimizer output log you can
check the include /SAPAPO/LMSDP_SNPOPTFD4. Most tables are directly
saved with INSERT /SAPAPO/SNPOP*, so you can search the coding with
"SAPAPO/SNPOP" to know this tables.

Some tables are saved using the routine "write_out_table_to_db", in
which the table name is concatenated with /SAPAPO/ and the parameter
&2 when the routine is called, e.g. statement:

"write_out_table_to_db lt_opama snpoparm."

It means that it is saved to /SAPAPO/SNPOPARM. So you have to search the
coding for "write_out_table_to_db" to know this tables.