2008 Dec 01 9:54 AM
Dear SDNs,
sub : Related to Travel expense claim
While posting accounting document, i am giving SPL GL Indicator as 'T',
if indicator is not initial,
Assignment number for spl. GL account is mandatory.
Thru the BAPI, BAPI_ACC_DOCUMENT_POST, i can able to pass spl GL indicator, But there is no field related to its assignment number in vendor bapi structure. So unable to pass the assign number value to BAPI. the standard filed is BSEG-HZUON ( Assignment Number for Special G/L Accounts)
can i extend bapi to pass this value thru extension2 structure?
Can any one pls tel me procedure for extending the BAPI. how to make use of extension2? Provide me sample code or procedure...
Thanks
Ram
Dear SDNs,
sub : Related to Travel expense claim
While posting accounting document, i am giving SPL GL Indicator as 'T',
if indicator is not initial,
Assignment number for spl. GL account is mandatory.
Thru the BAPI, BAPI_ACC_DOCUMENT_POST, i can able to pass spl GL indicator, But there is no field related to its assignment number in vendor bapi structure. So unable to pass the assign number value to BAPI. the standard filed is BSEG-HZUON ( Assignment Number for Special G/L Accounts)
can i extend bapi to pass this value thru extension2 structure?
Can any one pls tel me procedure for extending the BAPI. how to make use of extension2? Provide me sample code or procedure...
Thanks
Ram
2008 Dec 01 10:28 AM
Hi Rama,
The Read the document for the BAPI, i guess it is self explantory. If you still having any problem, post again.
Regards,
Prashant.
2008 Dec 01 1:59 PM
u no need to extend the BAPI. there is some work around.
1) Activate the BADI "BADI_ACC_DOCUMENT"
2) Create a structure with the following fields. let the name be "ZSAMPLE"
POSNR
HZUON
3) Fill bapi Extension parameter as follows.
*...Fill BAPI Extension Parameters.
wa_bapiparex-structure = 'ZSAMPLE'. "Structure to handle posting key
wa_bapiparex-valuepart1 = '000010'. " For first line Item number
wa_bapiparex-valuepart2 = wa_filedata-HZUON "Assignment Number for Special G/L Accounts
Append wa_bapiparex to T_bapiparex.
4) then pass the above structure to BAPI call.
Hope this helps u.
2008 Dec 01 2:16 PM
Hi,
It should be something like this ValuePart1 should me the concatenation of all the fields you want to pass.
wa_extensionin-structure = 'BAPI_TE_XXXX'. -> appropriate structure
wa_extensionin-valuepart1(5) = '00001'.
wa_extensionin-valuepart1+5(1) = 'X'.
wa_extensionin-valuepart1+6(1) = ''.
wa_extensionin-valuepart1+7(1) = ''.
wa_extensionin-valuepart1+8(1) = ''.
wa_extensionin-valuepart1+9(1) = ''.
wa_extensionin-valuepart1+10(1) = ''.
APPEND wa_extensionin to it_extensionin.
rhea.
2008 Dec 03 11:52 AM
2009 Apr 22 5:09 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |