Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Memory Id problem

Former Member
0 Kudos
797

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 REPLIES 10

Former Member
0 Kudos
237

how to clear the memory id.....for a field for ex kbld-belnr(mem id - 'MRV')

0 Kudos
237

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

0 Kudos
237

Hi,

To clear the memory id use the FREE MEMORY ID id or DELETE FROM MEMORY ID id statement.

Thanks,

Harini

Former Member
237

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

Former Member
0 Kudos
237

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

0 Kudos
237

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.

0 Kudos
237

HI,

check the properties of both, selcted field and field from the Transaction are same

0 Kudos
237

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,

0 Kudos
237
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

PatrickVermeire
Explorer
237

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