Posting Subcontracting PO with BAPI_GOODSMVT_CREATE
Hi Guru's,
I'm using the BAPI "BAPI_GOODSMVT_CREATE" to do the GR using Purchase Order.
For Sub Contracting PO also we are using the same BAPI and we are doing it successfully, but my requirement is when we do the posting for subcontracting, the SAP system automatically creating the 2nd line item and doing the movement with the same amout of the quantity of the first item.
In Standard SAP, we have an option to enter the 2nd line item quantity, is there any option like that is available in this BAPI??
Or is there any enhancement option / BADI option to change the quantity of the 2nd line item when we posting the document???
Thanks,
Adi.
Hi,
Thanks for your link, but i know how to use that BAPI (Passing Parameters),
i want to know the Exit/Enhancement point where can we change the 2nd line item quantity while doing MIGO with the BAPI
BAPI_GOODSMVT_CREATE.
The system is automatically calculating the Quantity for the 2nd line item and doing the 543 movement.
I want to change the quantity in 2nd Line of PO.
Thanks,
Adi.
Similar Messages
-
Dear Professionals ,
I Just want to confirm that whether BAPI "BAPI_GOODSMVT_CREATE " will do the goods receipt ( MB01 ) for the subcontracting PO with batch management.
Since I will be passing only 101 mvy type in BAPi, will the system automatically call 543 mvt type with batch management and post the consumption.
can I change the batch of the component items ?Hi ,
Delivery note is like a ref document number
so you can use the
In the BAPI_GOODSMVT_CREATE There is header structure BAPI2017_GM_HEAD_01 which has a field REF_DOC_NO
you can pass the delivery note value to that field .
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Jul 10, 2008 3:41 PM -
Post Goods Receipt for Inbound Delivery with BAPI_GOODSMVT_CREATE
Hello,
I try to post GR for an Inbound Delivey with BAPI_GOODSMVT_CREATE and it is not working.
I know delivery number and PO number and give both to the bapi.
I am not sure how to set the movement indicator in the item.
When I set it to B.
I do get a shortdump from MB_POST_GOODS_MOVEMENT numer 143, stating that this type of movement is not allowed with this transaction
when setting to L I do get an error stating
"Update control of movement type is incorrect (entry 101 X X _ L)" from message class M7.
Below is the coding for it.
Thank you very much for your help
Michael
* Füllen der Kopfdaten
ls_gm_header-pstng_date = sy-datum.
ls_gm_header-doc_date = sy-datum.
ls_gm_header-ref_doc_no = delivery_header-lifex.
ls_gm_header-bill_of_lading = delivery_header-bolnr.
ls_gm_header-gr_gi_slip_no = delivery_header-xabln.
ls_gm_header-pr_uname = sy-uname.
ls_gm_header-ref_doc_no_long = delivery_header-lifex.
ls_gm_header-bill_of_lading_long = delivery_header-bolnr.
lv_gm_code = '01'.
* Füllen der Positionsdaten
LOOP AT selected_delivery_items INTO ls_delivery_item.
ls_gm_items-material = ls_delivery_item-matnr.
ls_gm_items-plant = ls_delivery_item-werks. " 0001
ls_gm_items-stge_loc = ls_delivery_item-lgort.
ls_gm_items-move_type ='101'. "101
ls_gm_items-entry_qnt = ls_delivery_item-lfimg. " 10,000
ls_gm_items-entry_uom = ls_delivery_item-vrkme.
ls_gm_items-po_number = ls_delivery_item-vgbel. "55001582
ls_gm_items-po_item = ls_delivery_item-vgpos. "00010
ls_gm_items-mvt_ind = 'B'.
ls_gm_items-expirydate = sy-datum + 30 .
ls_gm_items-deliv_numb = ls_delivery_item-vbeln.
ls_gm_items-deliv_item = ls_delivery_item-posnr.
APPEND ls_gm_items TO lt_gm_items.
ENDLOOP.
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = ls_gm_header
goodsmvt_code = lv_gm_code
* testrun = 'X'
* GOODSMVT_REF_EWM =
IMPORTING
goodsmvt_headret = ls_gm_header_ret
materialdocument = lv_mat_docno
matdocumentyear = lv_mat_year
TABLES
goodsmvt_item = lt_gm_items
goodsmvt_serialnumber = lt_gm_serial_numbers
return = lt_return
if lt_return is INITIAL.
endif.Hello Pranav,
the input for the business data is correct.
When performing the goods receipt with Migo it works.
I think the B in the movement indicator is correct, but there might be something wrong with the other data.
Best regards
Michael -
Post Goods issue using bapi_goodsmvt_create
hi,
Iam trying to do post goods issue using bapi_goodsmvt_create. please let me know what are the mandatory fields to be passed?hi,
*& Report ZRPT_SUB_KO01GOODSMOVEMENT
REPORT ZRPT_SUB_KO01GOODSMOVEMENT.
PARAMETERS : P_BAG(17) TYPE C,
P_ZZORG LIKE zaUFK-ZZORG,
P_MATNR LIKE MARA-MATNR,
P_WERKS LIKE AUFK-WERKS,
P_WERK LIKE AFPO-PWERK,
P_DATE LIKE MKPF-BUDAT,
P_LGORT LIKE GOITEM-LGOBE.
DATA : BDC_DATA TYPE STANDARD TABLE OF BDCDATA. "internla table for bdc data
DATA : WA_BDC_DATA TYPE BDCDATA . "work area for bdc data
DATA : T_XMSEG TYPE MSEG.
DATA : T_XMKPF TYPE MKPF.
DATA : V_BAGS1(17) TYPE C.
DATA : BEGIN OF WA_MB1B,
ZZGCODE TYPE ZMIGO-ZZGCODE,
ZZGBAGS TYPE ZMIGO-ZZGBAGS,
WERKS TYPE AUFK-WERKS,
LGORT TYPE VBRP-LGORT,
ZZORG TYPE zAUFK-ZZORG,
END OF WA_MB1B.
DATA : V_MATERIAL TYPE BAPI2017_GM_HEAD_RET-MAT_DOC.
data : v_date(10) type c.
DATA : T_GOODSMVT_HEADER TYPE BAPI2017_GM_HEAD_01,
T_GOODSMVT_CODE TYPE BAPI2017_GM_CODE,
T_GOODSMVT_ITEM TYPE STANDARD TABLE OF BAPI2017_GM_ITEM_CREATE,
T_RETURN LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE.
DATA : WA_GOODSMVT_ITEM TYPE BAPI2017_GM_ITEM_CREATE.
DATA : BEGIN OF S_MARA,
MEINS LIKE MARA-MEINS,
END OF S_MARA.
DATA : MATERIALDOCUMENT TYPE BAPI2017_GM_HEAD_RET-MAT_DOC.
*FORM GOODSMOVEMENT TABLES T_RETURN
USING WA_MB1B LIKE WA_MB1B.
SELECT SINGLE MEINS
FROM MARA
INTO S_MARA
WHERE MATNR = P_MATNR.
CONCATENATE p_date6(2) p_date4(2) p_date+0(4) INTO V_DATE SEPARATED BY '.'.
T_GOODSMVT_HEADER-PSTNG_DATE = P_DATE.
T_GOODSMVT_HEADER-DOC_DATE = P_DATE.
T_GOODSMVT_CODE-GM_CODE = '04'.
WA_GOODSMVT_ITEM-MATERIAL = P_MATNR. "'000000000000001556'.
WA_GOODSMVT_ITEM-PLANT = P_WERK. " '1000'.
WA_GOODSMVT_ITEM-STGE_LOC = P_LGORT. " '0001'.
WA_GOODSMVT_ITEM-MOVE_TYPE = 'Z42'.
WA_GOODSMVT_ITEM-VENDOR = P_ZZORG. "'0000100224'.
WA_GOODSMVT_ITEM-ENTRY_QNT = P_BAG. " '1'.
WA_GOODSMVT_ITEM-ENTRY_UOM = S_MARA-MEINS.
WA_GOODSMVT_ITEM-ENTRY_UOM_ISO = S_MARA-MEINS.
WA_GOODSMVT_ITEM-MOVE_PLANT = P_WERKS.
APPEND WA_GOODSMVT_ITEM TO T_GOODSMVT_ITEM.
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
GOODSMVT_HEADER = T_GOODSMVT_HEADER
GOODSMVT_CODE = T_GOODSMVT_CODE
IMPORTING
MATERIALDOCUMENT = V_MATERIAL
TABLES
GOODSMVT_ITEM = T_GOODSMVT_ITEM
RETURN = T_RETURN.
BREAK shailajaa.
EXPORT t_return to MEMORY ID '123'.
EXPORT V_MATERIAL TO MEMORY ID 'MAT'.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = ' '.
*ENDFORM. -
SubContract Process with Excise Flow
Hello All,
Can anyone please explain me in Detail Subcontract Process with Excise flow considering these...
1. Subcontracting without payment of Excise duty
2. Subcontracting under full payment of Excise duty
and if scrap is to generate under process. So how to maintain that in PO. and Later how to reconcile that in Excise flow..
I will be very thankful if anyone help me ...
Abhinay....hi,
SUBCONTRACTING:
To create Subcontracting challan:
J1IF01 - Creating sub contracting Chelan
J1IFQ - Reconciliation for Chelan
J1IF13 - after receiving all items
Subcontracting without Payment of Duty
Creation of Subcontracting PO (ME21N)
Transfer Posting of Components to Subcontractor (Mvmt Type - 541) (MB1B/ME2O/MIGO)
Creation of Subcontracting Challan w.r.t. Transfer Posting Doc (J1IF01)
Goods Receipt w.r.t. Subcontracting PO and Refer Subcontracting Challan at the time of GR (MIGO) {GR with 101 and auto consumption of components with 543 movement}
Reconciliation of Subcontracting Challan (J1IFQ)
Completion of Subcontracting Challan (J1IF13)
Generation of Annexure IV (J1IFR)
Note: - In this case, you have to maintain the Assessable Value for the Components to be supplied to Vendor in J1ID and also Excise Tax rates for the Chapter IDs linked with these components. So during J1IF01, system will take the Assessable Value as Excise base Value and calculates the Excise Duties by taking Excise Tax Rates.
Subcontracting under Full Payment of Duty
Creation of Subcontracting PO (ME21N)
Transfer Posting of Components to Subcontractor (MB1B/ME2O/MIGO)
Creation of Outgoing Excise Invoice w.r.t. Transfer Posting Document (J1IS) - Used to send the components to Subcontractor's. Here 57F4 Challan is not created.
Master Data
MM01- Material Masters for Components and FG
XK01 - Vendor Master (Subcontractor)
CS01 - BOM for FG
ME11 - Purchase Inforecord for Subcontracting
Regards
Priyanka.P -
Subcontracting cycle with duty payment
Hi,
Configration required for subcontracting cycle with duty payment (CIN) with suitable example giving detailed cycle with sap tcodes & transaction data.
Sanjay kohliPlz follow the following steps for subcontracting
Configuration: -
- SPRO > Logistics - General > Tax on Goods Movements > India > Business Transactions > Subcontracting > Subcontracting Attributes
Here maintain following;
Excise Group
Excise TT - 57FC
Subtran Type Text -- 57FC CHALLAN
Subc. Period -- 180
1. Creation of Subcontracting PO (ME21N)
2. Transfer Posting of Components to Subcontractor (Mvmt Type - 541) (MB1B/ME2O/MIGO)
3. Creation of Subcontracting Challan w.r.t. Transfer Posting Doc (J1IF01)
4 Goods Receipt w.r.t. Subcontracting PO and Refer Subcontracting Challan at the time of GR (MIGO) {GR with 101 and autoconsumption of components with 543 movement
5 Reconciliation of Subcontracting Challan (J1IFQ)
6 Completion of Subcontracting Challan (J1IF13)
7Generation of Annexure IV (J1IFR)
And you i need to maintain Accessable value in J1ID
regards
anamika -
Inbound IDOC to post goods receipt with inbound delivery as reference
Kindly let me know the message and IDOC type for
Inbound IDOC to POST GOODS RECEIPT with inbound delivery as reference
I tried using WMMBXY but it didn;t work.
Pls let me know asap.Your help is appreciated.
Thanks and Regards
Priti
Edited by: Priti Adukia on Feb 11, 2008 4:48 AMHi Nicole,
What I've to do is quite the same as the case. Outbound and Inbound are in the same SAP system. If I've good understanding, I must set partner profile as follows :
INBOUND - Parter LI with
Message DESADV
Operation code DELS
OUTBOUND - Partner KU
Message DESADV
Operation code ???
Please advise
Suchart -
Post open items with clearing for a account nt previously open item managed
Hi,
We have a current VAT account which was not open item managed till April 2008. Since the account has a zero balance we were able to make it open item managed from May onwards.
Using transaction code FS10N we see that there are some items which are open (type SB and SA). We want to post these items with clearing.
Moreover the postings made in the vat account are done every month but they are manual postings only using T.Code FB50 and as checked using the transaction code OB40.
We are not also allowed to run program RSEPA02. as this is not a standard program and not recommended to be run by SAP.
Could anyone please sujjest how can we post the previous items with clearing.
Thanks and regards,
Priyajit.Hi,
In this case when you are shifting account from open item to non open item all the open item debit and credit side to a dummy account and when account is converted into open item you have to reverse the earlier entries.
Check this with what exactly you have done.
Assign points if solved the problem.
Warm Regards
Edited by: MILIND on May 20, 2008 10:29 AM -
Automatic clearing for document posted via FBB1 with foreign currency
Hi SAP Gurus,
Can anyone help to explain on why does the document posted in FBB1 with document currency USD was auto cleared even without satisfying the rule in OB74. But when the document currency is SGD it can be automatically cleared.
Scenarion is as below
OB74 set up:
Accty type: S
From acct: 12000
To account: 12000
Criterion 1: Business area
Criterion 2: Assignment
G/L account : 12000
Account currency : SGD
Post JV document via FBB1:
Dr 12000
Cr 20000
Document curreny : USD ; amount: 0
Local currency: SGD ; amount: 200
Assignment: Test A
Business area: 'blank'
*When I run F.13 above document was cleared and the clearing doc contains below
Dr 20000
Cr 12000
But when I post in FBB1 with same entries as above, only changing the document currency to SGD it will not be cleared via F.13.
Appreciate your explanation on why does above scenario happened.
Thank you in advance.HI,
while posting the entry through FBB1 then system will not consider the exchange rates as per ob08 and etc.,
you can define the local and foreign currency values as per your wish while posting the FBB1.
I hope above will clear you issue. Thank you.
Reg
Madhu M -
Post Vendor invoice with Down Payment via BAPI_INCOMINGINVOICE_CREATE
Hi Experts,
We have configured downpayment functionality for PO's. We have below process
Create PO with down Payment request -> Create down payment request -> Run payment program for paying down payment -> Post GR -> Post invoice with BAPI (considering down payments against invoice)
But unfortunately when I am trying to post PO invoice with downpayment details using BAPI_INCOMINGINVOICE_CREATE I do not see any fields related to down payment. Can some one confirm me if SAP has provided this functionality? if NO any workarounds?
Rgds,
HarishHi experts,
any suggestions?
Regards,
Elena -
Subcontracting process with excise duty??
hi all
Can anybody explain me about the subcontracting scenario with excise duty??
For example , i have cerated subcontracting PO for A material is finished material is exciseable.
To produce A material , i have provided ,B,C,D materials to subcontractor , those materials also exciseable .
this is my scenario , explain me with transaction code (Step by Step).
Explain me about excise duty accounting folw for above scenario.??
Thanks
SAP-MMHi,
During J1IS: -
CENVAT Payable BED - Cr
CENVAT Payable ECS - Cr
CENVAT Payable SECess - Cr
Excise Duty Paid - Dr
During J1IEX: -
CENVAT Input BED - Dr
CENVAT Input ECS - Dr
CENVAT Input SECess - Dr
CENVAT Clearing - Cr -
Batch needs to be created 1st then post goods receipt with inbound delivery
Hi,
We are having split valuated materials with batch managed, we need to post goods receipt with inbound delivery.
When we create inbound delivery with PO batch is blank which is correct.
Now when we try to post GR with IBD in VL32N we need to put batch, but we are getting error message as batch is not available in receiving plant.
In this case we have to create batch 1st with MSC1N and then we can put batch number in Vl32N and can post GR.
If material is not split valuated we can put batch manualy(Without creation in MSC1N) in VL32N and it is allowing to post GR with batch.
Can you please let me know this behaviour, is there any SAP note available about this behaviour.
Thanks
SudhirHi Uwe,
Can an inbound WHSCON IDoc used for doing both the goods receipt in the PO and the update of the message flow in the delivery?
The binary answer would be no. You should use WMMBXY or MBGMCR instead.
But if we are doing goods receipt against Inbound delivery then answer is YES with additionally E1EDL18-QUALF = 'PIC' populated. But please remember no partial receipt is possible against Inbound Delivery.
We should populate E1EDL20-VBELN with our Inbound delivery number and line item info should go to E1EDL24.
I have done a similar interface recently where we are doing receipt against Inbound delivery. But our case was a bit complex because we had to support against Inbound delivery. So we had to go for a custom solution on top of IDOC_INPUT_DELVRY.
Hope this helps. Let me know if you have more questions.
Regards,
Rudra -
Back posting only possible with same valuation class
Hii, I made changes in valuation class before that i closed all the open po and maintained stock zero using 201 mvt type on 31st March. Now the system is throwing error when Im doing the reversal using MB1A 202 mvt type like "Back posting only possible with same valuation class". But its taking if I take the Posting date to 1st April, and we want to post on the 31st MArch. Please provide the suggestion.
Thanks,
ManojSystem is behaving correctly..
Suppose you have changed the valuation class from X to Y as on 31.03.2014.
So your valuation class was X as on 31.03.2014.
But now your valuation class is changed as Y. and system will always try to post the valuation class Y for material.
So when you are trying to reverse the entry on 31.03.2014, system shows the error..
In that case, you should change the valuation class as on 30.03.2014 and you should do 201 movement type as on 30.03.2014, and then as on 31.03.2014, you can reverse the entry..
Now you have to reverse the 201 movement type after date 31.03.2014.
Regards
Dev -
Posting of Perks with internal order
Hello
We have maintained cost distribution infotype with subtype 01 for all employees. The regular salary as well as perks are posted using this distribution. Now we have a requirement to post mobile expenses with internal order. In FI Side profit centre is maintained in internal order master, one to one relationship. In IT 27 multiple cost centres are maintained, each cost centre is having separate profit centres, So when we are trying to maintain the internal order in It 27, system is restricting us.
If we maintain another record in It 27 with custom subtype with internal order and one cost centre which is being maintained in internal order master.How to link one particular wagetype with custom subtype of IT27, so that it will get posted with internal order.
Thanks
SwapnaThank you.
Customizing in ACSET was missing.
It is working fine now -
Post Bankruptcy Charges with no proof or reasons provided
I recieved a charge on my bill called post Bankruptcy charges for 48.00 . I never recieved any notification of said charges , There is no break down of why theses charges have been applied , I then called and was told it was for payments being missed in August but somehow I am unable to view payment history for august or september , My bank statements say dfferent .I want this resolved . I have posted here emailed and sent written notification.
<Attachment removed for containing personal information per the Verizon Wireless Terms of Service.>
Message was edited by: Verizon ModeratorI HAVE !
From: Verizon Wireless Customer Support
Sent: Tuesday, January 15, 2013 12:53 PM
To: <Full name removed for privacy per the ToS>
Subject: Re: Post Bankruptcy Charges with no proof or reasons provided - Re: Post Bankruptcy Charges with no proof or reasons provided
Re: Post Bankruptcy Charges with no proof or reasons provided
created by Verizon Wireless Customer Support in My Verizon - View the full discussion
Message was edited by: Verizon Moderator
Maybe you are looking for
-
My iMac is shutting down on my while its asleep
My computer: - First generation G5 iMac - 1.8ghz (I think) G5, 512 MB ram - Latest OS 10.4.X Hi, It seems that when my iMac is asleep it randomly powers off. One minute I notice the light happily throbbing and snoozing away and the next minute it is
-
When I try to open Firefox I get a message saying it is already open. However it is not open and i cannot access Firefox
-
Getting error while starting the weblogic sewrver
starting weblogic with Java version: java version "1.6.0_29" Java(TM) SE Runtime Environment (build 1.6.0_29-b11) Java HotSpot(TM) Client VM (build 20.4-b02, mixed mode) Starting WLS with line: /u03/disc/Oracle/Middleware/jdk160_29/bin/java -client -
-
Seagate or Toshiba external harddrive?
I have a macbook pro that runs on mac os x 10.7.5. I recently bought a Seagate back up plus external harddrive thinking that it was a portable one as oppossed to the Toshiba Canvio Desktop. However, I just took it out of the box and turns out it also
-
Call a System Function: CALL 'XXPASS'
Hi All, I would like to know more about the System Function CALL 'XXPASS' and where does it resides in ABAP any transaction we can have a look into and understand the system functions. Please do suggest me ASAP. Thank you. Best Regards, Satya