2013 Dec 14 6:34 AM
Dear Experts,
I have a requirement to archive MKPF, MSEG tables. After running the write program, the log is displaying the document numbers that are archived. But some documents are missing. It is not showing any error messages. What might be the reson for it? Im not clear about the requirement to archive MKPF, MSEG. Please help me out.
Thanks in advance.
Regards,
Shanthi
2013 Dec 14 5:14 PM
Hi Shanti,
Check the following points below.
MKPF-VGART = T158V-VGART AND T18V-XMKPF NE SPACE
maxday = sy-datlo - t159r_tab-bllfz.
programL RM07MARCS
FORM select_data_using_mkpf.
SELECT * FROM mkpf WHERE mblnr IN s_mblnr
AND mjahr IN s_mjahr
AND budat IN s_budat
AND budat LE maxday
AND (dyn_sql).
Rg, Kiran
2013 Dec 14 5:14 PM
Hi Shanti,
Check the following points below.
MKPF-VGART = T158V-VGART AND T18V-XMKPF NE SPACE
maxday = sy-datlo - t159r_tab-bllfz.
programL RM07MARCS
FORM select_data_using_mkpf.
SELECT * FROM mkpf WHERE mblnr IN s_mblnr
AND mjahr IN s_mjahr
AND budat IN s_budat
AND budat LE maxday
AND (dyn_sql).
Rg, Kiran
2013 Dec 16 4:41 AM
Hi Kiran,
Even the document numbers which satisfied the listed conditions are not archived. One of the numbers has document type as "WA" which has got 200 days document life and its posting date is "03.07.2011". Still it is not archived. "WA" exists in t158v table and XMKPF = 'X' for it
Does it depend on movement type/site/storage location/storage type?
Regards,
Shanthi
2013 Dec 16 5:54 AM
Can you please post your write program spool output so that from that i can help you out, and also please check which option have you selected while you are archiving the MM_MATBEL in the write program screen for the detail log option 'I guess you have selected without success message'.
2013 Dec 16 6:17 AM
Sorry i didnt check the document life in T159R with site and document type but checked with just document type. Now my issue is cleared. Thank you
2013 Dec 16 6:19 AM
2013 Dec 16 6:21 AM
Hi,
Actually site and document type combination has to be taken for document life. But i checked based on only document type. That issue is cleared now. Thank you. But what is POS Documents checkbox for in MM_MATBEL options?
2013 Dec 16 7:06 AM
please refer to the SAP note for POS (Point of sale) archiving using MM_MATBEL