2005 Aug 04 1:51 PM
Hi All,
I m developing a Y transaction for GR using Barcode. For that I m using a BAPI 'BAPI_GOODSMVT_CREATE' to post the data.
Our requirement for serialized material is to maintain serial nos manually.
In BAPI, for Serialized material, I maintain a flag 'SERIALNO_AUTO_NUMBERASSIGNMENT'.
If i set 'X' for this flag it autogenerates the Serial Nos. and if i set 'SPACE' it gives me error message while posting the document that 'Maintain serial nos for serialized material', eventhough i have maintained the serial nos.
Can anybody guide me to use this flag?? It will be very helpful to me.
Thanks & Regards,
Sagar Vadher
2005 Aug 04 2:14 PM
Hi Sagar,
See there are 2 internal tables in BAPI.
first is mandatory and sec is optional.
If you put flag ( for Automatic process ) then you don't need to maintain the sec internal table, system automatically genrates ( You can also maintained in SPRO ).
But if you put space, then you need to provide the serial number through sec internal table.
GOODSMVT_ITEM
GOODSMVT_SERIALNUMBER -- 2 fields
MATDOC_ITM Item in material document
SERIALNO Serial number
Reg,
Arpit
2005 Aug 04 2:14 PM
Hi Sagar,
See there are 2 internal tables in BAPI.
first is mandatory and sec is optional.
If you put flag ( for Automatic process ) then you don't need to maintain the sec internal table, system automatically genrates ( You can also maintained in SPRO ).
But if you put space, then you need to provide the serial number through sec internal table.
GOODSMVT_ITEM
GOODSMVT_SERIALNUMBER -- 2 fields
MATDOC_ITM Item in material document
SERIALNO Serial number
Reg,
Arpit
2005 Aug 05 6:02 AM
Hi Arpit,
Can u tell me which flag i have to put as space, XSAUT or SERIALNO_AUTO_NUMBERASSIGNMENT.
Thanks & Regards,
Sagar
2005 Aug 05 6:11 AM
Hi Sagar,
your article is assigned to a serial number profile. In this profile it's defined if:
- serial numbers are used at all
- serial number is optional / mandatory
- automatic number creation is allowed
So maybe no automatic creation is allowed. Isn't XSAUT dataelement of SERIALNO_AUTO_NUMBERASSIGNMENT? -> That is just one field of table GOODSMVT_ITEM and should be space, when you fill table GOODSMVT_SERIALNUMBER. If you can set 'X' - this depends on customizing.
Regards,
Christian
2005 Aug 05 6:42 AM
Hi Critstian,
I checked the Serial No profile of Materials which i used. In these profiles serial no flag is obligatory means no automatic, no optional. I hope i have explained properly. Now can you tell me what should be the flag?
Thanks & Regards,
Sagar
2005 Aug 05 7:17 AM
Hi,
with X you would trigger automatic serial number creation -> not allowed.
Then you should use space and fill table GOODSMVT_SERIALNUMBER. Maybe here is your problem. Field MATDOC_ITM has to run from 0001 to 000n for your items in GOODSMVT_ITEM. If you have 5 pieces for first article in GOODSMVT_ITEM, then you have to fill
0001 1234
0001 1235
0001 1236
0001 1237
0001 1238
in GOODSMVT_SERIALNUMBER (with leading zeros for serials?).
Regards,
Christian
2005 Aug 05 7:44 AM
Hi Cristian,
I use 10 quantities for GR out of 10 quantities from PO and i fill up the GOODSMVT_SERIALNUMBER with below values.
and SERIALNO_AUTO_NUMBERASSIGNMENT is SPACE.
MATDOC_ITM SERIALNO
0010 000000000000000001
0010 000000000000000002
0010 000000000000000003
0010 000000000000000004
0010 000000000000000005
0010 000000000000000006
0010 000000000000000007
0010 000000000000000008
0010 000000000000000009
0010 000000000000000010
Still it gives me error message
'Maintain serial numbers for total quantity'.
Thanks & Regards,
Sagar Vadher
2005 Aug 05 8:03 AM
2005 Aug 05 8:14 AM
Hi Christian,
what does this 0001 mean?? At my side i m using the line index of purchase order that is EBELP and value is 0010. Can you explain me in detail???
Thanks & Regards,
Sagar
2005 Aug 05 8:55 AM
But the goods receipt table is just analyzing number of the line, not the document positions. Try to use sy-tabix instead of ebelp.
Don't ask me why, but it works.
2005 Aug 05 10:26 AM
2005 Aug 06 5:50 AM
Hi Christian,
Thanks a lot for your help. What you have suggested, works fine. For that i m rewarding you the points.
Thanks Again
Regards,
Sagar Vadher
a week ago