09-25-2008 3:28 PM
Hello!
I am using FM 'CSAP_DOC_BOM_CREATE' to create a document part list (BOM), which works fine. But i have difficulties to read the Doc-BOM (using FM 'CSAP_DOC_BOM_READ' or 'CS_BOM_EXPL_DOC_V1'):
-> the result-tables t_stpo (FM 'CSAP_DOC_BOM_READ' ) and stb (FM 'CS_BOM_EXPL_DOC_V1') do not contain the complete document number (type doknr), which means that e.g. leading 0 are missing. The DB-table STPO also not contains the complete document number! I need the complete document number to read further document details from draw.
Does somebody have any advice? Thank you in advance!
greetings
Wolfgang
09-25-2008 3:38 PM
If it's only a matter of missing leading zeroes, i'd suggest you add them yourself.
09-25-2008 3:38 PM
If it's only a matter of missing leading zeroes, i'd suggest you add them yourself.
09-25-2008 3:42 PM
Thanks for your prompt reply!
This was also my first idea, but unfortunately not all document numbers are numeric, so this workaround is not possible!
greetings
Wolfgang
09-25-2008 3:45 PM
There's a function module that takes care of that. Just search for it in SE37 (something like CONVERSION_EXIT_ALPHA... ).
edit: CONVERSION_EXIT_ALPHA_INPUT
Edited by: Maen Anachronos on Sep 25, 2008 4:46 PM
09-26-2008 7:25 AM
I tried FM 'CONVERSION_EXIT_ALPHA_INPUT' which works fine! Now I'm able to read document data from DRAW.
Thank you for your help!