Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3276

Problem with SAP SPA/GPA Parameters

$
0
0

Hey everyone.

 

i have a problem with the SAP set/get parameters - and i can't solve it on my own.

 

I have a report, that submits another report in a loop ( please dont ask why )

The second report creates a URL based on some information and sends a request to a server, based on the class cl_http_client.

 

the URL has a parameter called "timestamp" that has to have a constant value.

Which means, for every submit in the loop i want the same timestamp.

 

i use the following syntax to set the parameter:

 

* declaration

data: lv_parameter_value type memoryid.

* body
   clear lv_parameter_value.
   get parameter id 'PARAMETER' field lv_parameter_value.

   if lv_parameter_value is not initial.
     gv_timestamp = lv_parameter_value.
     rv_timestamp = gv_timestamp.
   else.
     get time stamp field rv_timestamp.
     lv_parameter_value = rv_timestamp.
     set parameter id 'PARAMETER' field lv_parameter_value.
   endif.



The problem is: AFTER the call of "receive" of my cl_http_client-instance, the Parameter gets cleared...

So in the following call of the coding lv_parameter_value is empty.


i have created a report for test purposes, that doesnt include the http-client.. just to verify the SPA/GPA-parameters work within a loop and a submit statement. Without the call of receive it works



Might there be a bug? a OSS Note for my problem?


Thanks for your responses!


Regards,

Pascal


Viewing all articles
Browse latest Browse all 3276

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>