BAPI_INB_DELIVERY_CHANGE - Update Batch Number
Hi
I have used 'BAPI_INB_DELIVERY_CHANGE' to update the Batch Number for a Inbound delivery.
I have passed values for the below attributes.
lw_item-deliv_numb
lw_item-deliv_item
lw_item-material
lw_item-batch .
lw_item-fact_unit_nom
lw_item-fact_unit_denom
lw_item-hieraritem
lw_item-usehieritm
But, the Batch number is not updated.
Kindly advice.
Hi Akash
check this
BAPI_INB_DELIVERY_CHANGE
http://www.sdn.sap.com/irj/scn/advancedsearch?query=bapi_inb_delivery_change
Thanks and Regards
S.Janagar
Similar Messages
-
Updating Batch Number while delivery creation from sales document
Hi Experts,
I have to write code inside user exit MV50AFZZ which updates batch number during delivery creation. Suppose I have a sales having more than one line items. Each line item have different material numbers, and one material number may have more than 1 batch number. And all these batch numbers have to be updated for their corresponding material numbers. Batch number corresponds to LIPS-CHARG. So how we can maintain values for this field more than once for a particular material number?Hi Pankaj,
Were you able to update the Batch Number?
What is the function Module that you used? and where exactly did you code in the logic?
Thanks,
RV -
Update batch number with B1iSN
Hi
is it possible to update Batch Number using B1ISN ?
i think it's the object 106 . i create the object using the dev. tools. , create a BP using this object , and try to create a xml to see the content of the object .
When a user validate the Stock Management / Item management / batches / update , the scenario is triggered , but i have a error message :
com.sap.b1i.xcellerator.XcelleratorException: XCE001 Nested exception: com.sap.b1i.bizprocessor.BizProcException: BPE001 Nested exception: com.sap.b1i.xcellerator.XcelleratorException: XCE001 Nested exception: com.sap.b1i.xcellerator.RejectedException: XCE045 IPO-Step not known: /0010000100.inbound/com.sap.b1i.datasync.ipo/P01/P01.ipo/EventConvertor
Did i miss something ?( i've already created object using the same procedure , and never had this error ) or does it mean that it's not possible to manage batch numbers using B1ISN ?
thanksI try to query the new created batch number to update the batch properties.
But cannot found in OBTN table. -
How to update batch number, Storage loc, qty in VL02N on delivery items?
Hi all,
Any idea how to perform the following using a BAPI or function call with regards to updating a Delivery (<b>VL02N</b>)?
1) Enter or update a storage location on a delivery item?
2) Batch split a delivery item to give multiple batch numbers. For example if delivery item is '000001' then after batch split additional delivery items with batch number assigned will appear as:
item, storage loc, batch, qty
'900001', '0001', 2070062806, 1000
'900002', '0001', 2070052606, 3000
'900003', '0001', 2070025366, 3000
can this be done using WS_DELIVERY_UPDATE/_2 or someother fn mod.
Do not wish to use BDC or call transaction. Any help appreciated.
thanks,
SubbaAnswered!!
-
How to update revision number in batch attribute at thetime of goodsreceipt
Hi all i got a requirement to enhance for this standard functionality the user exit is prod order exit_saplcosf_001 & purchase order exit_sapmm07m_003 and the functionality i have to acheive is
At the time of goods receipt the system should update the batch characteristics ofu201DRevisionu201Cwith the appropriate material revision level. The update should happen for receipt against as purchase order or against a production order. The information that is available with us at the time of goods receipts against purchase/production order will be the order number, material number, Quantity and Batch number. The receiving personnel will input the rev level of the material received (he will get it from the receiving documents received from the vendor) in the popup box provided by this enhancement. This enhancement will check the rev level entered by the receiving personnel with the rev level in the purchase order/ production order in question both match then it will go ahead and do the goods receipt. In case the revision level entered by the user and the one in the order does not match the system will given an error message saying u201C Pl check the material revision level as they do not match u201C. For items with no rev levels the EKPO-REVLV field in the PO will be blank. In case of a production order check the following field in the order header CAUFVD-REVLV to update the batch attribute with the revision level of the material being received in stock. In case CAUFVD-REVLV is empty then it would mean that there is no revision level for this material.
The pop-up box to enable the user to key in the revision level will be displayed only in case if the purchase order/production order has a revision level in them.
can u tell how to process to acheive this requirement
thanks & regards
naveen
Moderator message: "spec dumping", please work yourself first on your requirement.
Edited by: Thomas Zloch on Oct 21, 2010 10:40 PMyes, because the Userfields is missing in the Object.
maybe you should tell this SAP, looks like they forgot it.
ok, you can also do it more complicated to stay official - save the information in a usertable.
regards
David -
Change batch number field during post goods issue
Hello,
During one step transfer posting i want to change the batch number during goods receipt via transaction VL02N.
I have tried using the below exits and badi without success.
Exit EXIT_SAPMM07M_010
mb_document_badi
LE_SHP_GOODSMOVEMENT
Below is the code i have implemented in the exit
clear v_vbeln.
select single vbeln into v_vbeln
from likp
select * from likp
where vbeln = i_mkpf-le_vbeln
and vstel = c_vstel
and werks = c_werks
and lfart = c_lfart.
IF sy-subrc = 0.
e_charg = 'X'.
ENDIF.
If any body has implemented same functionality kindly help.
Regards,
KoustubhHi,
In the BADI LE_SHP_GOODSMOVEMENT, inside method CHANGE_INPUT_HEADER_AND_ITEMS, loop the parameter CT_XIMSEG.
For each line in CT_XIMSEG, change the value of CT_XIMSEG-CHARG according to you logic and modify the internal table CT_XIMSEG transporting the valude of CHARG.
Check whether now it is getting updated in MSEG.
Regards,
Harish -
User-Exit/Badi/Funtion Module for update Batch in transaction CORK
Hi Gurus,
when an IDoc 'Z' is executed to do a confirmation using the FM CO_RU_ORDER_CONFIRMATION, the values of transaction CORK are modified.
I'd like to update the field batch number so when you enter a process order in transaction CORK and then you click on Components, you'll see the list of component and the batch number updated throught the custom IDoc.
Does anyone knows any user-exit or Badi or maybe a FM to implement so when the first confirmation is done, the batch numbers are updated?
Thanks in advance.Hi,
You can copy and paste the Report code below. This will give the list of User Exits and BADIs available for the Transcation code. Very usefull program.
Below code will give a list of BADIs for particular transaction.
=============START
*& Report ZNEGI16 *
REPORT ZNEGI16 .
TABLES : TSTC,
TADIR,
MODSAPT,
MODACT,
TRDIR,
TFDIR,
ENLFDIR,
SXS_ATTRT ,
TSTCT.
DATA : JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
DATA : FIELD1(30).
DATA : V_DEVCLASS LIKE TADIR-DEVCLASS.
PARAMETERS : P_TCODE LIKE TSTC-TCODE,
P_PGMNA LIKE TSTC-PGMNA .
DATA wa_tadir type tadir.
START-OF-SELECTION.
IF NOT P_TCODE IS INITIAL.
SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
ELSEIF NOT P_PGMNA IS INITIAL.
TSTC-PGMNA = P_PGMNA.
ENDIF.
IF SY-SUBRC EQ 0.
SELECT SINGLE * FROM TADIR
WHERE PGMID = 'R3TR'
AND OBJECT = 'PROG'
AND OBJ_NAME = TSTC-PGMNA.
MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
IF SY-SUBRC NE 0.
SELECT SINGLE * FROM TRDIR
WHERE NAME = TSTC-PGMNA.
IF TRDIR-SUBC EQ 'F'.
SELECT SINGLE * FROM TFDIR
WHERE PNAME = TSTC-PGMNA.
SELECT SINGLE * FROM ENLFDIR
WHERE FUNCNAME = TFDIR-FUNCNAME.
SELECT SINGLE * FROM TADIR
WHERE PGMID = 'R3TR'
AND OBJECT = 'FUGR'
AND OBJ_NAME EQ ENLFDIR-AREA.
MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
ENDIF.
ENDIF.
SELECT * FROM TADIR INTO TABLE JTAB
WHERE PGMID = 'R3TR'
AND OBJECT in ('SMOD', 'SXSD')
AND DEVCLASS = V_DEVCLASS.
SELECT SINGLE * FROM TSTCT
WHERE SPRSL EQ SY-LANGU
AND TCODE EQ P_TCODE.
FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
WRITE:/(19) 'Transaction Code - ',
20(20) P_TCODE,
45(50) TSTCT-TTEXT.
SKIP.
IF NOT JTAB[] IS INITIAL.
WRITE:/(105) SY-ULINE.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
Sorting the internal Table
sort jtab by OBJECT.
data : wf_txt(60) type c,
wf_smod type i ,
wf_badi type i ,
wf_object2(30) type C.
clear : wf_smod, wf_badi , wf_object2.
Get the total SMOD.
LOOP AT JTAB into wa_tadir.
at first.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
WRITE:/1 SY-VLINE,
2 'Enhancement/ Business Add-in',
41 SY-VLINE ,
42 'Description',
105 SY-VLINE.
WRITE:/(105) SY-ULINE.
endat.
clear wf_txt.
at new object.
if wa_tadir-object = 'SMOD'.
wf_object2 = 'Enhancement' .
elseif wa_tadir-object = 'SXSD'.
wf_object2 = ' Business Add-in'.
endif.
FORMAT COLOR COL_GROUP INTENSIFIED ON.
WRITE:/1 SY-VLINE,
2 wf_object2,
105 SY-VLINE.
endat.
case wa_tadir-object.
when 'SMOD'.
wf_smod = wf_smod + 1.
SELECT SINGLE MODTEXT into wf_txt
FROM MODSAPT
WHERE SPRSL = SY-LANGU
AND NAME = wa_tadir-OBJ_NAME.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
when 'SXSD'.
For BADis
wf_badi = wf_badi + 1 .
select single TEXT into wf_txt
from SXS_ATTRT
where sprsl = sy-langu
and EXIT_NAME = wa_tadir-OBJ_NAME.
FORMAT COLOR COL_NORMAL INTENSIFIED ON.
endcase.
WRITE:/1 SY-VLINE,
2 wa_tadir-OBJ_NAME hotspot on,
41 SY-VLINE ,
42 wf_txt,
105 SY-VLINE.
AT END OF object.
write : /(105) sy-ULINE.
ENDAT.
ENDLOOP.
WRITE:/(105) SY-ULINE.
SKIP.
FORMAT COLOR COL_TOTAL INTENSIFIED ON.
WRITE:/ 'No.of Exits:' , wf_smod.
WRITE:/ 'No.of BADis:' , wf_badi.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(105) 'No userexits or BADis exist'.
ENDIF.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(105) 'Transaction does not exist'.
ENDIF.
AT LINE-SELECTION.
data : wf_object type tadir-object.
clear wf_object.
GET CURSOR FIELD FIELD1.
CHECK FIELD1(8) EQ 'WA_TADIR'.
read table jtab with key obj_name = sy-lisel+1(20).
move jtab-object to wf_object.
case wf_object.
when 'SMOD'.
SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
when 'SXSD'.
SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
endcase.
================END
<b>Reward POints if this helps.
Manish</b> -
Derivation of batch number in Profitability Analysis for Sales document
Hi Gurus
We are trying to put Batch number in PA derived through sales order sales delivery document but due to timing issue like do not have billing document untill processed and PA derivation done
scenario SA created with multiple line items
Batch number can be seen in Delivery document number
Thanks in advanceWe are trying to put Batch number in PA derived through sales order sales delivery document but due to timing issue like do not have billing document untill processed and PA derivation done
scenario
SO created with no batch number
In the Delivery split batch into two seperate lines with batch numbers in it
PA post two seperate lines however unbale to map batch numbers
Btach number exist in tables MSEG, LIPS and VBRP
Unfortunately these postings happen after updating PA so not available for derivation in PA
Thanks in advance -
Expired Batch Number Selection
Dear All,
How to block selection of batch number already expired during delivery creation?
Currently i'm using 2007B version.
Thanks and RegardsHi,
Thanks for your prompt reply.
What i want is during delivery creation we can block user to select expired batch number. Because probably user forgot to update batch detail (to locked expired batch) so that the other can select those expired batch during delivery creation.
Thanks -
Creation and increment of batch number
Hi,
Very urgent please.
I have one reuirement in my bdc for uploading AR OPEN ITEMS Using bdc ,
batch(4) bukrs(4) kunnr(10) hkont(10)
01 4000 D1000504 4010
01 4000 165410 4010
for debit and credit we have one batch number and it has to be incremented according to document posted
1 dr document number1
1 cr
2 dr
2 cr document number2
U know this has to be incremented and not updated in sap its only batch grouping the custmer .
Regards
subba
Edited by: KODAMANCHILI SUBBARAO on Sep 25, 2008 3:27 AMSAP does not stop you from re-using an existing batch number. The message that you get is in a SAP standard delivery just a warning, as it is from a business process unusual that the same batch can be received multiple times.
If it is an error in your case, then somebody in your organization has changed the message attributes. so you should talk to them (see the change log in your DEV system) to know why this was done and what the solution for your case could be -
Vendor batch number in stock transfer
Hi,
Batch management at plant level.
When we transfer the stock from one plant to another plant, the vendor batch number is not getting updated in the receiving batch master record.
In 303,we will send it from one plant to another plant (Stock in transit).
In 305,we will receive it to another plant with different batch number.
How do we know this 305 has been done for 303?
Eg:
303
Material : A
Plant:Phar1
Batch 100
305
Material: A
Plant:Phar2
Batch :200
How do we trace the stock in case we need to resend back to the supplier?
Thanks
SriniYou are facing a classic problem. Given Batch number is unique at Plant level, to maintain the continuity, you should have the same batch number between the two plants. Any specific reason why you don't have it.
Then if there is valid case not to have the same batch number in this scenario, then you should look at making the batch number generation external so that you can prefix/suffix or come up with a way to get the original batch number from the sending plant in the receiving plant batch number.
Recently we had a similar requirement, so we activated batch classifiction and put the orignial batch number as one of the characterisitcs in the batch class. You can also think enabling such functionality.. -
how can i update vendor batch number for an existinf PO as bapi_po_chanegs is not working for this requiremtn.
If you have less number of records then you can use BDC.
-
How to generate the batch number for group of records
Hi All,
requirement: i have created one sequence to generate the batch numbers.i have to get the nextval of the sequence for batch number (this column is not part of the table. its dynamic column/alias column) only for every 50000 records of a table.
detail description:
for example, if i have 10 records in a table. And, if i want to generate the batch number for every 2 records, then the output should look like belo.
batch-number qty
1 10
1 20
2 30
2 40
3 50
3 60
4 70
4 80
5 90
5 100
Please help me on this. Please let me know if you need more info.one more update on the above request. this has to be done using SQL query only.
-
Hi Friend,
I want to update batch no in ME21N.
- At the time of saving the purchase order, a batch number should be generated as follows:
o XXXXX = last 5 digits from the purchase order
o XXXXX = Item number of the purchase order itemcheck this thread you can get some idea
Batch creation through ME21N, ME22N and MSC1N -
Cannot update batch header MIGO GR in MB_DOCUMENT_BADI
I am trying to update next inspection date via MIGO when Goods Receipting a production order which is held in the batch header and in a classification we have set up. I have used function modules to try and perform the update.
I have used both 'VB_UPDATE_BATCH' and QEVA_BATCH_UPDATE both by themselves and in an update task to update field QNDAT. (1st one updating MCHA and MCH1 the second one to update MCHA).
I had the code before in POST_DOCUMENT of BADI MB_MIGO_BADI and this made no difference either. Sometimes it updates if I cancel the material document and redo the goods receipt with the same production number but this is very inconsistent. I need this to be done when I am posting the goods receipt.
Does anyone have any ideas as I am at the end of my tether with this one?
Many thanks
Regards
Larissa Maryniuki did not get total req .
but i came to know that u want to update batch.
rt .use this i did in this.
MB_MIGO_BADI
use this method LINE_MODIFY
where u can modify batch field.
and if u want to modify batch characteristics
use
MBCFC004
in this
EXIT_SAPMM07M_004
if nay clarification plz reply.
Maybe you are looking for
-
Can not open sqlplus on Oracle10g/OEL5.0
I have installed an Oracle10g database on the OEL5.0 system (not encounter any errors) today. But after finishing the installation, I can not login the sqlplus. [root@localhost ~]# sqlplus bash: sqlplus: command not found. When I loged in to the Data
-
How find out which user is using which company code?
Hi Gurus, I am having more than 500 users in Production System.I need to find out which user is using which company code?I can get the roles and users separately from two different SAP tables. Is it possible to get it from a single table or Tcode? Be
-
975x Platinum PowerUp Dual Boot Issue
Hello - I have a 975x Plat. PowerUp and dual boot Linux and Windows XP. This process works fine on BIOS 7.1, but fails to boot the Windows disk on BIOS 7.4 and newer. The disk still works, it just can't be started by the Linux bootloader (grub). I sp
-
Plz help, trouble impoting vidoe file to itunes.
ok, so i wanted to add a video file to the library, so i found out how, and did this: 1. click file, add file to library 2. found the file and double clicked it. it was supposed to impot it to my library right??? but it didn't!!, it didn't do anythin
-
Hi Guys, I went for a trip in the last month where I clicked a lot of pics. I initially transferred them to my windows laptop (JPG). After that, I transferred them to mac and when I view the same files in mac the pictures apear to be in .jpg.xml for