10-14-2009 9:07 AM
hi i have coded like this....but while clicking the document on the alv...some irrelevent documents are opening how to correct it....
please help.
CASE pv_ucomm.
WHEN '&IC1'.
CLEAR kbld-belnr.
IF selfield-value IS NOT INITIAL AND selfield-value+0(2) = '23'.
SET PARAMETER ID: 'MRV' FIELD selfield-value.
'MRVP' FIELD final-blpos.
CALL TRANSACTION 'FMY3' AND SKIP FIRST SCREEN.
ELSEIF selfield-value IS NOT INITIAL AND selfield-value+0(2) = '33'.
SET PARAMETER ID: 'MRB' FIELD selfield-value.
CALL TRANSACTION 'FMZ3' AND SKIP FIRST SCREEN.
ENDIF.
with regards,
Balaji.S
10-14-2009 9:08 AM
how to clear the memory id.....for a field for ex kbld-belnr(mem id - 'MRV')
10-14-2009 9:12 AM
Hi,
The value that is set using SET PARAMETER will stay in the memory as long as the user is loged-on.
One way to clear the value is to just set an empty value using SET PARAETER itslef.
Regards,
Sesh
10-14-2009 9:31 AM
Hi,
To clear the memory id use the FREE MEMORY ID id or DELETE FROM MEMORY ID id statement.
Thanks,
Harini
11-23-2009 10:52 AM
hi Balaji,
I noticed that for transaction FMZ3 you're using KBLD-BELNR as a parameter. You're setting the parameter-id 'MRB'. When I looked for the parameter-id for KBLD-BELNR I only found parameter 'KBL'.
The parameter-id 'MRB' works perfect.
Question: How did you come up with the right parameter-id?
regards
John Claassen
11-23-2009 11:03 AM
Try this
CASE pv_ucomm.
WHEN '&IC1'.
IF selfield-value IS NOT INITIAL AND selfield-value+0(2) = '23'.
SET PARAMETER ID: 'KBL' FIELD selfield-value.
CALL TRANSACTION 'FMY3' AND SKIP FIRST SCREEN.
ELSEIF selfield-value IS NOT INITIAL AND selfield-value+0(2) = '33'.
SET PARAMETER ID: 'KBL' FIELD selfield-value.
CALL TRANSACTION 'FMZ3' AND SKIP FIRST SCREEN.
ENDIF.
CLEAR selfield-value.
SET PARAMETER ID: 'KBL' FIELD selfield-value.
Edited by: Sathar RA on Nov 23, 2009 12:03 PM
01-18-2010 12:07 PM
Hello Sathar,
i have the same instrucition to call transaction FMY3, and i store correctly the document nr i want in the parametre ID, before the call transaction 'FMY3'. But SAP overwrites the memory ID with the number of the last document created... it's really strange.. yours work fine?
I also tried calling the transaction with the batch-input instruction, and it works fine in display mode, but in backgrround mode i get a message saying there is no data for the screen... stil it's a simples batch-input, just filling the field for the doc. Nr and ENTER...
Thanks for the help
Paulo A.
01-18-2010 12:20 PM
HI,
check the properties of both, selcted field and field from the Transaction are same
01-18-2010 2:50 PM
I've checked that.. i have
SET PARAMETER ID 'MRV' FIELD lv_cab_doc.
and my lv_cab_doc is like KBLD-BELNR, which the same property of the selection field in FMY3 transaction, for the doc. number..
but no matter what doc. nr i set to the memory ID (and it sets fine before the call transaction), i will always open the last document created...
In my program i create 4 documents, but when i click on my ALV grid in the 1st or 2nd line/document created.. it will always show me the last document created.. but the memory ID has the right value.. i never had a transaction with this behaviour.. FB03, VA03 and others usually works fine..
Any idea?
Thanks,
05-19-2011 8:22 PM
EXPORT belnr FROM lv_belnr
blpos FROM lv_blpos
TO MEMORY ID 'FMFR_MEM_BELNR'.
CALL TRANSACTION 'FMZ3' AND SKIP FIRST SCREEN.
Also work for tcodes FMW3 and FMY3.
Best Regards,
Edited by: orgasmics on May 19, 2011 9:24 PM
07-13-2016 8:19 AM
For transaction FMX3 the parameter ID 'KBL' doesn't work, but you can use:
"
SET PARAMETER ID 'MRR' FIELD lv_BELNR.
SET PARAMETER ID 'MRRP' FIELD lv_BLPOS.
CALL TRANSACTION 'FMX3'.
"
Or
You can use the function: 'DISPLAY_RESERVATION'.
Kind Regards,
Patrick Vermeire