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

FM HRTRV_IF_GET_TRIP does not return USERDATA

$
0
0

Hi, it's me, yet again...

 

I'm using the FM "HRTRV_IF_GET_TRIP" in FITE_VC_GENERA_DATA in a post exit of comp-controller method "ON_SHOW" to get the structure/Table USER/PTK99 from the TE Cluster for binding to the context afterwards. At least that's the plan. The FM does not return me the data I expect in parameter USERDATA, although there is data in the TE Cluster and within the FM, I can see the global Table USER being filled whilst the macro RP-IMP-C1-TE. But this data is not further process neither is seems the strucutre USERDATA to be touched at any point of the FM. Am I calling the FM 'wrong' in any way? I'm close to making an implicit enhancement at the end and forcefully fill userdata from user....

 

Too long, didn't read: USERDATA is not returned filled --> WHY?

 

CALL FUNCTION 'HRTRV_IF_GET_TRIP'  EXPORTING    employeenumber             = wd_assist->GS_COMMON_RFC_INPUT-employee_number    tripnumber                 = lv_tripno
*   LANGUAGE                   = SY-LANGU
*   CALCULATE_AMOUNTS          = 'X'
*   GET_TRIP_FROM_MEMORY       = ' '  IMPORTING
*   FRAMEDATA                  =
*   STATUS                     =    USERDATA                   = ls_user " should contain cluster values, but it doesn't  tables
*   RECEIPTS                   =
*   ADDINFO                    =
*   GUESTS                     =
*   TEXT                       =
*   MILEAGE                    =
*   STOPOVER                   =
*   DEDUCTIONS                 =
*   COSTDIST_TRIP              =
*   COSTDIST_STOP              =
*   COSTDIST_RECE              =
*   COSTDIST_MILE              =
*   AMOUNTS                    =
*   ADVANCES                   =    return                     = lt_bapiret " says method was executed successful          .

 

In the insides of the FM:

 

*  IF CALCULATE_AMOUNTS <> 'X'. "XJY
* import the trip because it was NOT imported before  READ TABLE T_PERIO INDEX 1.  TE-KEY-PERNR = T_PERIO-PERNR.  TE-KEY-REINR = T_PERIO-REINR.  TE-KEY-PERIO = T_PERIO-PERIO.  TE-KEY-PDVRS = T_PERIO-PDVRS. " Once this line is executed, the global table USER is fileld with the data I expect  RP-IMP-C1-TE.
*  ENDIF. "XJY  if t_perio-abrec = '0' or     t_perio-abrec = '1'.    clear te-key-pdvrs.    import beler from memory id te-key.  endif.

 

I hope somebody has ever used this one and can tell me what I'm doing wrong...

 

Cheers, Lukas


Viewing all articles
Browse latest Browse all 7915

Trending Articles



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