I have manage to coremod the program on describe requirement screen to allow for user to enter a GL code field. Upon "Add Shopping Cart", I used badi BBP_DOC_CHANGE_BADI to pass the custom gl code to the accounting section as follows:
LOOP AT et_account INTO wgs_etaccount.
IF NOT wgs_item-g_l_acct IS INITIAL.
wgs_etaccount-g_l_acct = wgs_item-g_l_acct.
MODIFY et_account FROM wgs_etaccount.
My accounting data is populated correctly, but I received the gl code not found on top of the screen. When I drill down into the sc item level and perform a "check", the error is removed.
My question is how could I auto resolves the glcode upon "add shopping cart" button is pressed ?