2012 Sep 07 11:19 AM
Hi all,
I'm running the transaction FB60 once with a company code, and second time with a diferent company code.
I debug the program in both cases to see ok_code value and this one changes for every case, even when the process in FB60 is the same, exactly the same fields filled for both companies.
Anyone have an idea why ok_code changes when I'm doing the same process in the transaction?
I've tried to find the point in program where ok_code gets the value but it looks automatically, from no other variable.
PD: the reason why I'm checking ok_code is because depending on its value, the transaction executes a validation by doc. position or not.
Thanks in advance,
regards,
2012 Sep 07 11:25 AM
Dear,
Why you are not going with sy-ucomm or sy-tcode?
sy-ucomm = command
sy-tcode = entered transcation
2012 Sep 07 12:01 PM
Hi Bharat, the code of this transaction is standard and I'm only trying to find out why the value of ok_code changes when I'm running the transaction two times with the same data except company code.
thanks
2012 Sep 07 12:07 PM
Dear,
Please try to debug your transction
in debug mode you find
METHOD handle_double_click.
CALL METHOD cl_gui_cfw=>set_new_ok_code
EXPORTING
new_code = m_okcode_select.
here value of ok_code is change
2012 Sep 07 12:08 PM
Dear,
ok_code = user command value.
means enter, back, exit,cancle,etc...