on 09-25-2015 8:18 PM
We have a custom output copy of RD00 for email output. It looks at program SAPMV60A. It is using routine TEXT_SYMBOL_REPLACE. We have been running nightly invoicing job for many years using program RV60SBT1.
Some of the invoices that get emailed have &XVBRK-VBELN& filled out in the email subject line and others do not get that field filled in. I had Basis go in and put an email address on every user that processes invoices. So if users are creating invoices in VF01/VF04, the VBELN entry comes out fine. But nighttime processing is run by user BATCHUSER and VBELN does not come out. I asked out Basis to add an email address to BATCHUSER. Still VBELN is blank. So after investigating this a little, I see notes that we should be scheduling nighttime through VF06 which uses another program than my old RV60SBT1. So I tried that, which runs in background under my name. Still no VBELN. But when I process under my name in VF04, the VBELN gets filled in. We are on ECC 6.0 ep 5.
Can anyone tell me specifically where I am going wrong? This is very time consuming on something that should be simple.
Susan
Hi,
no matter what you do, what counts is what programm is beeing used for symbol replace and when it gets replaced.
if you replace it each time you got a new subject, it should work.dont forget to work with global variables (global in the programm you used for text-symbol-replace) and that the variable got the valid value (in the programm you used for text-symbol-replace).
so its better to go wit the fm and give your own programm then working with global variables from another programm. although, you wont have a link when calling external formroutines.
regards
Stefan Seeburger
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
if i understand you correct, the only problem is, that &XVBRK-VBELN& is not replaced by its value.
the invoice comes out "fine" in dialog and batch, only the VBLEN in Email Heading differs.
i guess something is wrong with the sy-repid parameter inside the functionTEXT_SYMBOL_REPLACE - maybe its wrong for batch processing. I guess you go better with calling the FM TEXT_SYMBOL_REPLACE directly and not that subroutine from programm SAPMV60A.
regards
Stefan Seeburger
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.