Ejemplo BAPI Simula FB01
Ejemplo BAPI Simula FB01
Ejemplo BAPI Simula FB01
gd_documentheader-bus_act = 'RFBU'.
gd_documentheader-username = 'JRIVERA'.
gd_documentheader-header_txt = 'BAPI EJEMPLO'.
gd_documentheader-comp_code = '1001'.
gd_documentheader-doc_date = sy-datum.
gd_documentheader-pstng_date = sy-datum.
gd_documentheader-fisc_year = '2014'.
gd_documentheader-fis_period = '10'.
gd_documentheader-doc_type = 'AB'.
clear it_accounttax.
it_accounttax-ITEMNO_ACC = '0000000001'.
it_accounttax-GL_ACCOUNT = '4011100001'.
it_accounttax-COND_KEY = 'MWVS'.
it_accounttax-ACCT_KEY = 'VST'.
it_accounttax-TAX_CODE = 'C0'.
append it_accounttax.
clear it_accounttax.
it_accounttax-ITEMNO_ACC = '0000000002'.
it_accounttax-GL_ACCOUNT = '4011100001'.
it_accounttax-COND_KEY = 'MWVS'.
it_accounttax-ACCT_KEY = 'VST'.
it_accounttax-TAX_CODE = 'C0'.
append it_accounttax.
clear it_currencyamount.
it_currencyamount-itemno_acc = '0000000001'.
it_currencyamount-curr_type = '00'.
it_currencyamount-currency = 'PEN'.
it_currencyamount-amt_doccur = '-1800.0000'.
it_currencyamount-amt_base = '-1000.0000'.
it_currencyamount-disc_base = '-180.0000'.
append it_currencyamount.
clear it_currencyamount.
it_currencyamount-itemno_acc = '0000000002'.
it_currencyamount-curr_type = '00'.
it_currencyamount-currency = 'PEN'.
it_currencyamount-amt_doccur = '1800.0000'.
it_currencyamount-amt_base = '1000.0000'.
it_currencyamount-disc_base = '180.0000'.
append it_currencyamount.