‎2008 Mar 17 8:20 PM
Wassup ....
I'am doing a call transaction at F-51. This transaction has 2 variant transaction, but I need do call a specific one before effectivitly "call the transaction".
Anyone knows ?
Thx.
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Mar 17, 2008 5:15 PM
‎2008 Mar 17 9:11 PM
Hi ,
You could try do a CALL TRANSACTION USING....
Something like this:
DATA BEGIN OF BDCDATA OCCURS 100.
INCLUDE STRUCTURE BDCDATA.
DATA END OF BDCDATA.
DATA BEGIN OF MESSTAB OCCURS 10.
INCLUDE STRUCTURE BDCMSGCOLL.
DATA END OF MESSTAB.
DATA REPORT(8).
BDCDATA-PROGRAM = '<program name>'.
BDCDATA-DYNPRO = '<screen number>'.
BDCDATA-DYNBEGIN = 'X'.
APPEND BDCDATA.
CLEAR BDCDATA.
BDCDATA-FNAM = fieldname.
BDCDATA-FVAL = fieldvalue.
APPEND BDCDATA.
...
....
CALL TRANSACTION 'F-51' USING BDCDATA MODE 'N'
MESSAGES INTO MESSTAB.
Hope it helps you !
Bert
‎2008 Mar 18 11:47 AM
Sry ... but I already know that information. What I really needs is:
before "call the transaction" I MUST change the variant of the transaction F-51. In SHB0 its possible to change the default parameters of any transaction. Like witch fields are open or not, the dates, values, etc etc etc ...
I still need some help ...
Thx any way!