Hello at all.
I've got a problem with a report which I wrote for a customer.
The report works very well and the customer wants to have an extension.
I give you a small overview of my report and the request of the customer:
With my report I give out the following fields WERKS, MATNR, MAKTX, PLNAL and PLNNR.
Now the customer wants to jump with a click on field into a given transaction. As there could be lot of rows in my output the call of transaction and the transfer of the field values has to be dynamic.
The List looks like this:
WERKS
MATNR
MAKTX
PLNAL
PLNNR
-
0001
12345
test
01
789
0001
54321
test2
01
369
......................and so on........
With a click in the field MATNR in the first row the customer wants to jump in the transaction 'MMO3' and the value of the clicked MATNR should give as PARAMETER ID to the transaction.
With a click on th PLNNR should happen the same with the small different, that the transaction CA03 should appear.
I already worked with HIDE and AT SELECTION-SCREEN.
But the problem is that I couldn't separate the call of different transactions. In my opinion it's only possible to call on transaction.
Here you can find the corresponding source code:
LOOP AT INT_DATEN.
FORMAT HOTSPOT ON.
WRITE: / INT_DATEN-WERKS,
10 INT_DATEN-MATNR,
30 INT_DATEN-MAKTX,
75 INT_DATEN-PLNAL,
90 INT_DATEN-PLNNR.
FORMAT HOTSPOT ON.
HIDE: INT_DATEN-MATNR, INT_DATEN-PLNNR, INT_DATEN-PLNAL,
INT_DATEN-WERKS.
ENDLOOP.
ENDIF.
AT LINE-SELECTION.
IF INT_DATEN-MATNR NE ''.
SET PARAMETER ID: 'MAT' FIELD INT_DATEN-MATNR,
'WRK' FIELD INT_STPOV-WERKS,
'STT' FIELD SY-DATUM,
'PAL' FIELD INT_DATEN-PLNAL,
'PLN' FIELD INT_DATEN-PLNNR.
CALL TRANSACTION 'CA03' AND SKIP FIRST SCREEN.
ENDIF.
I hope you can understand my problem and that you give me an usefull answer.
So far...
Kind regards
Christian