on 03-09-2008 8:15 PM
Hi,
Area: SRM 5.0, Classic Scenario.
Friends, I am asked to add Tax-Code in the Shopping cart to be used in the PO creation in R/3.
Was asked to use a BADI. We dont have tax created in the Shopping carts. The Tax ix not calculated here, so the Tax-Code would be IO. And even I am allowed to Hardcode this tax-code 'IO' and send it while a PO is created.
1.Now, which BADI can i use to add the tax-code to shopping cart ?
I have seen that, in the BBP_GET_SC_DETAILS function module the E_TAX is completely empty while lt_items has all the line items.
2. Now, do I have to Pass all the line items to this E_TAX from lt_item including tax_code as some hardcode value ?
All Helpfull Answers Will be Rewarded.
Thanks & Regards,
Ashwin.
Thanks Buddies...for all the support.
The client is using 4.6B so i used PO_....INTERFACE
Yes, Disha, I am using the same BADI u asked me to.
I used code something as Kayal mentioned.
Gave u points guys....
Ashwin.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ashwin,
You can pass the tax code value for all the line items thorugh the foll BADI's(based on your SRM version) before the PO creation in R/3:
BBP_CREATE_PO_BACK
BBP_CREATE_PO_BACK_NEW
BR,
Disha.
Do reward points for useful answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ashwin,
Try with the following code.
data : ls_po_acc TYPE bbps_badi_po_account_1,
ls_po_accx TYPE bbps_badi_po_accountx_1.
LOOP AT cs_po1_document-it_poaccount INTO ls_po_acc.
ls_po_acc-tax_code = 'IO'.
MODIFY cs_po1_document-it_poaccount FROM ls_po_acc TRANSPORTING tax_code..
ENDLOOP.
LOOP AT cs_po1_document-it_poaccountX INTO ls_po_accX.
ls_po_acc-tax_code = 'X'.
MODIFY cs_po1_document-it_poaccountX FROM ls_po_accX TRANSPORTING tax_code..
ENDLOOP.
Reward points if useful.
Regards,
Kayal
Note : The code above has to be written in method FILL_PO_INTERFACE1 of Badi BBP_CREATE_BE_PO_NEW
Edited by: Kayal Priyadarshini on Mar 11, 2008 4:33 AM
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.