2023 May 12 10:48 AM
Where did BSEG table modified after posting at migo?
ENHANCEMENT-SECTION GOODS_MOVEMENT_FILL_04 SPOTS ES_SAPLMIGO.
IF l_tafkz = x.
COMMIT WORK AND WAIT.
CALL METHOD reset.
CALL TRANSACTION 'LT06'.
ELSE.
COMMIT WORK.
CALL METHOD reset.
ENDIF.
END-ENHANCEMENT-SECTION
It happens after COMMIT WORK. But as i understood all tables are modified after it and all changes should be predetermined before. So i need a variable or program name where it predetrmined for bseg.
2023 May 12 12:31 PM
There are lots of places where BSEG columns can be updated. I advise you to:
2023 May 12 12:44 PM
shiz0frenik
The BSEG table is used for accounting document segment. It contains the line items of accounting documents. The table is updated after the COMMIT WORK statement1. Unfortunately, I cannot provide you with a specific answer without more information about your system configuration. However, I can suggest that you check the following:
I hope this helps! Let me know if you have any other questions.
2023 May 12 1:29 PM
sandra.rossi, i tried to find it with st05, but cannot find single record mentioning bseg
2023 May 12 2:22 PM
sandra.rossi, but i found some records mentioning BELNR (which was created ) afrer post. And there is simmilar table bsis. When i tried to set breakpoint and do post again it doesn't stops. How it should work? program name : LF005F03 INSERT bsis FROM TABLE ibsis.
2023 May 12 5:35 PM
Here, RFBLG is the cluster table containing BSEG.
Debug works with Update Function Modules only if you activate the Update Debug.
But debugging the update task won't help you to find the place where the values of BSEG columns are initialized or calculated, because as I said earlier, it doesn't happen within the Update Task, it happens before CALL FUNCTION wwww IN UPDATE TASK ... The wwww call is only registered when this statement is executed, including parameter arguments, and the actual call happens later when COMMIT WORK is triggered (and it happens in the update task).
2023 May 13 11:40 AM
sandra.rossi, i found table-variable t_bseg in program LF005U01 In update debuging. But i cant understand where it initialized. how can i know initialization of it? Especially hkont field of it
2023 May 13 4:08 PM
I told you two times already that you should not debug in the update task, but before CALL FUNCTION ... IN UPDATE TASK ... (which is not running in the update task).
2023 May 14 11:55 AM
sandra.rossi, could u tell me how i can get function name or list of functions which will start in update task after posting?
2023 May 14 1:12 PM
shiz0frenik
You can use the ST05 transaction to trace the update task. Here are the steps:
You can also refer to this SAP Community post1 for more information.
I hope this helps. Let me know if you have any other questions.
2023 May 14 6:42 PM
In the question editor, there is a button "CODE".
If you use it, your code will be formatted and easier to read.
ENHANCEMENT-SECTION GOODS_MOVEMENT_FILL_04 SPOTS ES_SAPLMIGO.
IF l_tafkz = x.
COMMIT WORK AND WAIT.
CALL METHOD reset.
CALL TRANSACTION 'LT06'.
ELSE.
COMMIT WORK.
CALL METHOD reset.
ENDIF.
END-ENHANCEMENT-SECTION
2023 May 15 8:27 AM
Where to "get function name or list of functions which will start in update task after posting": look at my previous answers.