Skip to Content
0

BAPI_ACC_DOCUMENT_POST notes after GST

Aug 24, 2017 at 06:05 AM

1.1k

avatar image

For parking documents I have used the BAPI '

BAPI_ACC_DOCUMENT_POST ' .

Issues faced :

a. Unable to send HSN code in BAPI.

b. Sent through extension field and enhancement( BADI_ACC_DOCUMENT) value gets stored in vbsegs table but in FBV0 posting

the HSN code does not get stored to BSEG table.

c. Data gets parked( passed status 2 in bapi), but while FBV0 posting the BSET (fwste hwste ) fields are not getting posted with GST values. Values get posted in Fwbas and Gwbas .

Version EHP 6 for ERP 6.0

Regards

Sharada

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

avatar image
Former Member Aug 24, 2017 at 06:20 AM
0

Hi,

You have to

1. Populate HSN code in extension2 structure

2. Implement BADI BADI_ACC_DOCUMENT

3. Refer example code in CHANGE method and populate HSN Code to C_ACCIT internal table.

Thanks and regards,

Chandra

Show 7 Share
10 |10000 characters needed characters left characters exceeded


HI

.Yes done the same and data is posted in vbsegs table which I have pointed earlier.

Run FBV0 to post the document it gets cleared in vbsegs and not posted in bseg .

Any note to be implemented.

Also the

BSET (fwste hwste )

gets blank even though the values are in vbset while park

Regards

Sharada

0

The code I have written for park bdc and enhancement done in

IF_EX_ACC_DOCUMENT~CHANGE


READ TABLE c_extension2 INTO exten INDEX 1.
IF exten-valuepart2 = XXXXX'.

LOOP AT c_accit INTO wa_accit.
wa_accit-taxit = 'X'.
wa_accit-HSN_SAC = exten-valuepart1.
MODIFY c_accit FROM wa_accit TRANSPORTING taxit hsn_sac.
endloop.
endif.

vbsegs - hsn_sac

0801

is stored but run fbv0 the data does not get stored in bseg.

regards

sharada

0

Hi,

read this wiki:

Parking tables overview

it seems as if when parking VBSEGS is updated and "only" when posting the parked document BSEG and all other transaction figure tables are updated.

and check this OSS Note too:

2459379 - GST IN: BSEG table not updated with GST fields while releasing billing documents for accounting

Best regards,

Pablo

0

Hi,
Thank you for the wiki read. Yes

"only" when posting the parked document the BSEG is updated and FBV0 is a post transaction.

On the note of GST this data gets posted while you park docuements using FV60 but if you park through the enhancement and post through FBV0 the data from vbsegs(vendor) does not get post to bseg and bset for the fields hsn,fwste,hwste

Best Regards

Sharada

0


The sap note will check and tell

2459379

0


This note all is already available .

0

Hi,

check this thread (and pay attention to Dibyendu Patra ´s answer):

GST INdia : HSN_SAC not updated in the Bseg table

Best regards,

Pablo

0
Eli Klovski
Aug 24, 2017 at 07:32 AM
0

Hi,

Check and implement note:

1553739 - Incorrect tax amount in first local crcy for BAPI posting

Regards,

Eli

Show 2 Share
10 |10000 characters needed characters left characters exceeded


This service pack is older version. Ours is 606 so this coding already available

Regards

Sharada

0

Thank you all for the comments

Actually created the Ac_document badi again without filter of BKPF and put the same coding and it worked.

IF_EX_ACC_DOCUMENT~CHANGE

READ TABLE c_extension2 INTO exten INDEX 1.
IF exten-valuepart2 = XXXXX'.

LOOP AT c_accit INTO wa_accit.
wa_accit-taxit = 'X'.
wa_accit-HSN_SAC = exten-valuepart1.
MODIFY c_accit FROM wa_accit TRANSPORTING taxit hsn_sac.
endloop.
endif.

vbsegs - hsn_sac

The data goes to bset and bseg while posting.

0
Deepak Dhamat Nov 13, 2017 at 11:00 AM
0

Hi Sharada .

I am trying to post S1 document using BAPI BAPI_ACC_DOCUMENT_POST .

i am able to post S1 document with GST & SGST i.e 9%+ 9% as manually i am passing amount at respective line item

My Problem is : But now i want to Pass hsn_sac code to be updated in Bseg table so i am using BADI "BADI_ACC_DOCUMENT"

but unable to update HSN_SAC code in bseg using above Method which u have given in Example .

My code is :

if sy-tcode ='ZF130' .

READ TABLE c_extension2 INTO wa_extension WITH KEY VALUEPART1 = '0000000002' .
IF wa_extension-valuepart2 = '40'.

LOOP AT c_accit INTO wa_accit WHERE POSNR = '0000000002'.

wa_accit-taxit = 'X'.

wa_accit-HSN_SAC = wa_extension-valuepart3. " This is HSN_CODE i want to update 

MODIFY c_accit FROM wa_accit TRANSPORTING taxit hsn_sac.

endloop.

endif.

Need Help in this Case

Regards

Deepak Dhamat

Show 2 Share
10 |10000 characters needed characters left characters exceeded


As I have mentioned earlier click on filter a filter will be there.

take away the filter BKPFF => AWTYP filter in the Z implementation

Regards

Sharada

0
Former Member

Hi sharada

I am not able to post the document through FBV0 and using the same BAPI can you please help me in this?

Regards

Amita

0