Posting Goods Issue for cross-company code Stock Transfer
Executed SPRO and then Financial Accounting -> G/L Accounting -> Business Transactions -> Prepare Cross-Company Code Transactons (OBYA)
Executed SPRO and then Financial Accounting -> G/L Accounting -> Business Transactions -> Prepare Cross-Company Code Transactons (OBYA)
- create company code record - setting 2nd local currency - Crcy type 30 (Group curreency) - set ExRate type - set Srce curr. - set TrsDte typ
DATA: client LIKE sy-mandt,
user LIKE sy-uname,
message LIKE sm04dic-popupmsg
CALL FUNCTION 'TH_POPUP'
EXPORTING
client = client
user = user
message = message
* BAPI Define
DATA: gw_so_header LIKE bapisdhd1,
gw_so_headerx LIKE bapisdhd1x,
gw_so_logic_switch LIKE bapisdls,
gv_so_doc_in TYPE bapivbeln-vbeln,
gv_so_doc_num TYPE bapivbeln-vbeln,
gt_so_return2 TYPE bapiret2,
gt_so_partners TYPE bapiparnr OCCURS 0 WITH HEADER LINE,
gt_so_items_in TYPE bapisditm OCCURS 0 WITH HEADER LINE,
gt_so_items_inx TYPE bapisditmx OCCURS 0 WITH HEADER LINE,
gt_so_return1 TYPE bapiret2 OCCURS 0 WITH HEADER LINE,
gt_so_conditions_in TYPE bapicond OCCURS 0 WITH HEADER LINE,
gt_so_conditions_inx TYPE bapicondx OCCURS 0 WITH HEADER LINE.