on 2019 May 01 6:42 PM
Hi,
I am trying to submit a program from BPA using a temporary variant, and calculating a date parameter (S_DATE) as from the previous month 11th day to current month 10th day.
In the job definition, I define SEL_S_DATE as a In/String, calculated at runtime, with the expression:
=Time.format(Time.expression(Time.now(),'subtract 1 month set day 11'),'yyyyMMdd') + ' - ' + Time.format(Time.expression(Time.now(),'set day 10'),'yyyyMMdd')
I have TEMPORARY_VARIANT set to "Y". The Definition was copied from SAP_AbapRunPrintExt. I want it to use the default selection screen, with the exception of populating the S_DATE field as described above.
When I submit the definition, the parameter doesn't populate, it instead is left as the default value when running the report.
When I view the parameters, I can see that SEL_S_DATE was correctly calculated as "20190411 - 20190510" (Without the quotes), but this doesn't make it to the temporary variant.
I'm not getting any errors in BPA or ERP, and no short dumps, no authorization failures.
I've tried using System_DynamicTrace with jobservice, connector, and jobfile = debug, but can't find any errors related to this parameter transfer to SAP.
Does anyone have any further ideas?
Thanks!
Request clarification before answering.
That information looks good, now we need to figure out why it does not work.
In the trace you should find the transaction that is send to the BAPI to setup the temporary variant. Can you check if this one contains the correct information?
Regards Gerben
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gerben, sorry I replied to the main thread again...
Here's what I've tried since yesterday...
I placed external breakpoints in the following four RFC FMs in ERP, and run the job...
/SCJS/XBP_JOB_ADD_ABAP_STEP
BAPI_XBP_JOB_ADD_ABAP_STEP
/SCJS/XBP_VARIANT_CREATE_L
/SCJS/XBP_VARIANT_CREATE
The process breaks in at /SCJS/XBP_JOB_ADD_ABAP_STEP, but never calls the other FMs. I notice that /SCJS/XBP_JOB_ADD_ABAP_STEP does not have the export parameter for "TEMP_VARIANT" or the SELINFO table, which BAPI_XBP_JOB_ADD_ABAP_STEP does have...
Should I be expecting a call to BAPI_XBP_JOB_ADD_ABAP_STEP? Or should /SCJS/XBP_JOB_ADD_ABAP_STEP have those parameters?
I asked our Basis team to import the transports available in BPA through the Configuration -> Software section (Filename is SAP-BPA-Redwood-XBP-46c-710-9_1_0_6.zip), but after import, the interface of /SCJS/XBP_JOB_ADD_ABAP_STEP still doesn't contain those parameters. (On that note, the transport available in this file is I46K000754, which shows it was exported from I46 on 07/03/2013)
I've also tried using both the SAP_AbapRunPrint AND the SAP_AbapRunPrintExt, and neither of these are working to create a temporary variant.
I'm not sure what else I can try at this point...
Do you have any further ideas? Should this be calling BAPI_XBP_JOB_ADD_ABAP_STEP? And if so, how do I configure BPA to use that FM?
Thanks!
Dallas
User | Count |
---|---|
88 | |
10 | |
9 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.