Serial number in sales order creation

HI all,
     please help to me........
My requirement a add the serial number BAPI sales order.
problem is their no serial number in bapi structure.
            How to add serial number crate a salesorder bapi.
serial number is RIPW0-SERNR.
Thanks & Regards,
SReddy.

hi,
refer to this link
http://help.sap.com/saphelp_nw04/helpdata/EN/3e/0e1089c24611d1ad09080009b0fb56/content.htm
refer to this code...
Also if you set the * CONVERT_PARVW_AUART = 'X' parameter to 'X' you can use sold to party as SP and ship to party as SH.
REPORT ZEX_BAPISALESORDCRT .
--Data Declaration--
Data: st_BAPISDHEAD like BAPISDHEAD, " Sales Order Header Data
ta_BAPIITEMIN like BAPIITEMIN occurs 0 with header line, " Ln item
ta_BAPIPARTNR like BAPIPARTNR occurs 0 with header line, " Partner
d_BAPIRETURN1 like BAPIRETURN1, " Bapi return msg
d_vbeln like bapivbeln-VBELN. " Sales Order Number
Move the data to create sales order in the repective parameters------*
move: 'TA' to st_BAPISDHEAD-DOC_TYPE, " Sales document type
'15493' to st_BAPISDHEAD-PURCH_NO_C,
'00010' to ta_BAPIITEMIN-ITM_NUMBER,
'Y-351' to ta_BAPIITEMIN-MATERIAL,
'1100' to ta_BAPIITEMIN-PLANT,
'1' to ta_BAPIITEMIN-REQ_QTY,
'AG' to ta_BAPIPARTNR-PARTN_ROLE, " Sold to Party
'0000007777' to ta_BAPIPARTNR-PARTN_NUMB.
Append the internal tables-------------------------------------------*
append ta_BAPIPARTNR.
clear ta_BAPIPARTNR.
append ta_BAPIITEMIN.
clear ta_BAPIITEMIN.
Move ship to party---------------------------------------------------*
move: 'RG' to ta_BAPIPARTNR-PARTN_ROLE, " Ship to party
'0000007777' to ta_BAPIPARTNR-PARTN_NUMB.
Append the internal tables-------------------------------------------*
append ta_BAPIPARTNR.
clear ta_BAPIPARTNR.
Call the Bapi to create the sales order
CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT1'
EXPORTING
ORDER_HEADER_IN = st_BAPISDHEAD
WITHOUT_COMMIT = ' '
CONVERT_PARVW_AUART = ' '
IMPORTING
SALESDOCUMENT = d_vbeln
SOLD_TO_PARTY =
SHIP_TO_PARTY =
BILLING_PARTY =
RETURN = d_BAPIRETURN1
TABLES
ORDER_ITEMS_IN = ta_BAPIITEMIN
ORDER_PARTNERS = ta_BAPIPARTNR
ORDER_ITEMS_OUT =
ORDER_CFGS_REF =
ORDER_CFGS_INST =
ORDER_CFGS_PART_OF =
ORDER_CFGS_VALUE =
ORDER_CCARD =
ORDER_CFGS_BLOB =
ORDER_SCHEDULE_EX =
if d_vbeln <> space.
write: 'Sales order No. ', d_vbeln.
endif.

Similar Messages

  • Serial number on sales order

    dear all!
    i am looking for the way to enter a serial number on sales order. i can enter it, but only via incompletion check. there is no menu entry, or button where to enter serial numbers in VA01, VA02.
    does anyone know how to enter the serial numbers for sales order items?
    thank you!
    matthias
    solved it by my own - link is technical objects ...
    Message was edited by:
            Matthias Rumplmaier

    Hi
        Serial number has to enter in the material master record, and setting have to be done in IMG-SD-BASIC FUNCTIONS-SERIAL NUMBERS-DETERMINE SERIAL NUMBER PROFILES.
    Similarly we can do the same even logistics execution.
    pls try these let me know it worked out or not.
    thank you
    with regards
    chaitanya

  • How to enter serial number for sale order line  which is in shipped status

    Hi All,
    We have 2 different items which are defined as Serialized at Sale order issue at item definition.
    In one sale order,User has forgot to add serial number to one of the item at Ship confirm stage.
    He has entered serial number correctly to other item.
    Now the both Sale order lines are in Shipped status if we view them through Shipping>transactions.
    I am technical guy and new to OM.Could you please let me know the process to enter the serial number for the item to which user has missed it
    Thanks,
    Satya

    Hi Satya,
    Since the item is already shipped, you cannot enter serial number for this line.
    you have to enter serial numbers after pick confirm only.
    check this note
    How to Enter Serial Numbers in the Shipping Transactions Form [ID 1235403.1]
    As a workaround for the previous lines do RMA and try to receive the goods back to your subinventory.
    For all new transactions follow the above notes.
    Thanks
    -Arif.

  • Serial number related sales orders???

    Hi everyone,
    i got this problem when i try to use serial number of an equipment to search all related sales orders.
    in our company it is defined that serial number would be created in the first sales order, when the customer purchase the configurable products at the first time.--- we call that initial sales.
    then after months or year, customer could come again and buy upgrades or addtional options on that products(we can select serial number to locate that machine in the configurator in sales order)--- we call that following up sales.
    so, now the situation is, i can call TA IQ03 to see the equipment and through reference to find the initial sales order, HOWEVER... if i want to have an overview of all Equipments related following up sales, Is that possible ??? or at least the last following up sales which determine the configuration status in the service equipment.
    i dont see any info about that in IE03 or IQ03, is that to be found in any tables, if i would rather write a small report to do that?
    the only way i can figure out now is to check the configuration of sales orders, maybe through VBAP-CUOBJ then call function to get the serial number... is there any other way?
    thanks a lot !!!
    yunfan
    Edited by: yunfan Wang on Feb 11, 2012 5:02 PM

    hi, Ncvajja:
    First thanx for ur instant reply.
    i would try ur way on monday, but as i assumed,
    the method u mentioned may be correct in those companies where the serial number is automatically created by delivery. (as i remembered, the table SER01 is for delivery)
    however in our company the serial number is saved in SER02, which are order related, that means the serial number is automatically created after the sales order is created.
    so in this way, i only find the first order through SER01 or 02, no matter it is delivery or sales order, but what i want is the sales order after that. in the following sales process, the serial number is already there for selection...
    anyway, those above is only based on my knowledge, iif i was wrong about this, hehe, please tell me, i am quite junior in this area...
    thanx

  • Copy from VBRP to technical object Serial Number in Sales Order

    Hi SAP colleagues,
    I need some help in the following issue. Hopefully somebody can assist. In a F2 invoice in the field VBRP-CHARG, the serial number of the product is available. In the business of my client, many return orders exist (KR, RE, etc.). The return order is created while referencing to the billing document. At this moment SAP users (transaction VA01) must fill in the serial number manually via Extra -> Technical Objects. Regularly people forget to do this or use an incorrect serial number. This leads to all kind of problems further on in the process.
    The question is: how can this process be automatized? So the serial number which is available in VBRP-CHARG, should be copied automatically into the return order in the technical object area in the field SERNR.
    Who knows how to solve this technically in SAP?
    Best regards,
    Paul

    Hi Karan,
    First of all thanks a lot for your answer. Unfortunately it is more complex... The batch number which is available in VBRP-CHARG should be copied into the Technical Object area in the sales order. Menu path: Extra -> Technical Objects. So this is equipment functionality related to sales orders. So copying using copy control from VBRP to VBAP or VBAK will not solve the problem. Do you have any idee how this can be achieved (tables like SER02, OBJK are relevant)?
    Best regards,
    Paul

  • How to know , when serial number in sales order is changed ?

    Hi All,
    I am changing Sales order line item serial number. So the equipment number and Serial number both are changed for that particular line item. But I am unable to know, what was the last Equipment number, and Last serial number for that material of sales order line item.
    Can any one please help me, how to determine the details about the date and time of change of serial number of a particular sales order line item ?

    I have already checked for VA02 -> Line item -> Environment ->changes.  It show changes related to fields available in VA02.
    But it is not showing changes related to Serial number change.
    I have also checked with table CDHDR, CDPOS. But the data related to change in serial number of SO line item is not captured in those tables also.
    Is there any other way to know?

  • Serial Number for SALE ORDER

    Hi..
    In this scenario , I have to create sale order for 20 qty which it should trigger production order for the same quantity as it have many sub assemblies. sub-assemblies here mean sub batch orders. and for the same qty , serial numbers got generated. So once the stock posted in the storage location , Now the delivery has to be created in VL01N. at this time , user may change the ship to party in delivery order.But this cannot be changed (as per standard) in Delivery ship-to.  If sometimes User reduces the quantity the serial number generated will get deleted. But next time when the user created the order , serial number deleted cannot be generated again , but the client do not want to miss any serial number , even the ones got deleted. how to handle this?
    Thanks,
    KP.

    hi
    this is to inform you that
    you can achieve this by creating a Z table in delivery level when ever user deletes or decreases the delivery quantity then the Z table has to get activated and should store the deleted serial numbers and relevant details which are shown below
    logic here is:
    when ever your creating a sales order quantity with delivery quantity if it is lesser than sales order quantity then the difference serial numbers will et stored in that Z table.  which are used for some other purpose.
    these are the z table fields considered:
    S.No. sales order number sales order quantity delivery number delivery quantity differene quantity including serial numbers.
    please tal to your abaper and update the  forum
    hope this clears your issue
    balajia
    Edited by: balaji timmampalli achari on Nov 29, 2010 1:14 AM

  • Serial number when production order creation in MTO

    Dear sir
    serial number profile assinged in the material master of finfished product . i have sales ordernumber    x  and  qty for finished product 10EA.
    when i run md50 for mto . then pland order qty converted to production order for 10ea. then production order created for 10 ea and serial number s generaqted x1 to x10.like x1,x2,x3,x4,----
    x10.fro production order number y
    but when i convert pland order to producton order qty for 2EA , then production order created for 2ea, and serial number generated x1,x2. like this iam spliting the custmer order qty . then i run md 50 for same sales order iwill get pland order for remaning qty 8EA , now iam converting to production order for 2 ea only . but production order created for 2 ea and serial number generated  same number which was generatd first production order y like x1,x2.but it should generated x3,x4
    for 2nd order  for 3rd order x5,x6 like this.
    pl tell me solve my problem .
    regards
    Baswaraj

    Hi!,
    Please try follow:
    Go to path IMG > Plant Maintenance and Customer Service > Master Data in Plant Maintenance and Customer Service > Technical Objects > Serial Number Management > Define Serial Number Profiles. There enter "2" in Stkck column for your serial profile.
    Regards,
    Uday

  • Serial number in production order creation CO01 Transaction

    Dear All,
    we are maintaining serial numbers for each product by using serial number profile .
    For some products we creating serial numbers automatically during production order creation.
    For some products we are selecting predefined serial numbers from IQ03,during production order creation.
    But some products , we are maintaining serial numbers in excel sheet ,when ever production order created , we used to copy the required
    serial numbers from excel and pasting in CO01 serial no provision fields.Here it is allowing to paste 20 serial no's at a time, but we want to
    give more than 20 serial no's at a time
    please find the attached screen shots and provide solution
    Production order creation
    Execute Transaction : CO01
    After entering qty , we usually go to Header and select serial numbers
    then it will populate provision to enter serial number for 30 sets
    Here we are entering  required serial number manually fro few products
    The serial number to be used for this production order against this product like below
    M1001
    M1002
    M1003
    M1004
    M1005
    M1006
    M1007
    M1008
    M1009
    M1010
    M1011
    M1012
    M1013
    M1014
    M1015
    M1016
    M1017
    M1018
    M1019
    M1020
    M1021
    M1022
    M1023
    M1024
    M1025
    M1026
    M1027
    M1028
    M1029
    M1030
    Then we will copy all 30 serial number and try to past in below screen
    But it allowing only 20 serial number at a time not for 30
    After pasting 20 serial no's , user manually selecting remaining 10serial numbers and pating in the same screen by scrolling the page
    For example if production order quantity is 500 , then user put serial numbers 25 times it consuming more time
    Requirement:
    System should allow to paste all serial numbers at a time
    Regards
    Satya

    Hello Satya,
    I checked this requirement and did not find anything relevant.Even for MIGO there is a note  1883420 - In the transaction MIGO only 6 serial numbers can be entered at the same time .So as per my view you can either
    1. Create serial no's before hand which you want to paste from Excel or
    2. Some custom/alternate  development for CO01,discuss with your Abaper. or
    3. Raise OSS messge to SAP.
    Regards,

  • Want to copy Serial number from Sales Order to Delivery

    Hi Gurus, I want to copy the serial number from the sales order to the delivery. ¿How can I do this?
    Thanks in advance
    -ITalo

    Please check if you get some helpful tip from the link below:
    http://help.sap.com/bp_bl603/BBLibrary/HTML/126_EN_IN.htm
    Regards,
    Rajesh Banka

  • Relation between serial number and sales order number

    Hi,
    Is it any one to one relation between serial number (IN) and sales order? For example, when I create the special serial number for the special sales order (Internal or External) , whether I put the sales order number in the IQ01 or not, sales order accept that serial number(IN). Is it any way to specialize one serial number to exact one sales order number?
    Edited by: Lida Navabpour on Jun 9, 2009 1:02 PM

    Hi,
    > Is it any one to one relation between serial number (IN) and sales order? For example, when I create the special serial number for the special sales order (Internal or External) , whether I put the sales order number in the IQ01 or not, sales order accept that serial number(IN). Is it any way to specialize one serial number to exact one sales order number?
    Yes, There is one to one relation ship. U have to maintain serial number profile for the same. The serial number runs on different status.The status ESTO means the serial number is in stock. ECUS means the serial number is at customer site. AVLB means the serial number is available.
    If the status is ECUS then u cant use that again.
    Serail number profile Check t-code OIS2.
    Thanks,
    Raja

  • "Serial Number" and "Sales Order Number" back in System Profiler

    After a logic board replacement, my Serial Number didn't show anymore in "About This Mac" and in System Profiler.
    I know this is normal and nothing to worry about, but still, I would like it to show like before.
    Here
    (Re: Mac serial number missing after main logic board replacement!?)
    is how to show it again in "About This Mac",
    now,
    do you know how to show it again also in System Profiler,
    and how to show the "Sales Order Number" too?
    Thanks!
    Axl

    Thanks Mikey-San for naming those strange terms.
    I could then make a Google search and find a solution!!!
    Easy:
    I just have to use a "Set Serial Number" bootable CD...
    ... as soon as I find it back from where I've put mine aside...
    Oh well, if there is no other solution, as it very much looks like, at least next time my iMac goes to Apple for repairs I know exactly what to ask and I'm sure it is feasible.
    Cheers!
    Axl

  • Serial Number in Sales order

    Hi Team,
    My client wants to maintain one serial no profile but multiple no range. Suppose in an order they entered 5 different material but all bellongs material types Finished goods. So they want different number range for this 5 different materials. Please advise how to go with this. I never wored in Serial no.
    Appreciate if you can confirm at the earliest.
    Regards
    sp

    As there is no specific number range maintain unlike other things in SAP.
    For serial number it's only 2, either internal or external.
    If you are having equipment master to take care of Serial Number then
    Use TCode IQ01 for creating individually or IQ04 to create many in one go.
    But would need to do following configuration setup:
    - Create Serial Number profile specific to material (OIS2)
    - Create Equipment Category for Serial No.(OIET)
    - Define No. Range for Equipment Category (OIEN)
    - Assign Equipment Category to Serial No. Profile (OIS2)
    - Assign respective Serial Number Profile the in material (MM02)
    Or Else, when you opt for creating serial number directly under delivery then use user exit IQSM0001(EXIT_SAPLIPW1_001).
    Regards
    JP

  • Serial Numbers during sales order creation

    hi gurus,
    i am creating a saels order from va01 and saving the serial numbers for the item from menu Extras technical objects and serial numbers , once saved where i can check the serial numbers for the items
    regards
    afzal

    Hi,
    You can find the SERIAL NUMBER for the Items in the DELIVERY->EXTRAS->SERIAL NUMBERS
    regards,
    santosh

  • Assigning serial number in production order creation

    hi guys,
    i am trying to create production orders.the data is coming from a flat file.i am using LSMW for uploading.
    is it possible to assign serial numbers to orders created instead of going to transaction co02 and changing it.
    thanks.

    you can use below LSMW IDOC Method
    Message Type         LOIPRO                      Production order
    Basic Type           LOIPRO01                    Master production order

Maybe you are looking for

  • Unable to receive all fields at receiver

    Hi, I have simple scenario from file to file using file content conversion at both sides. <b>Strucure of my file is</b> MT_emp_profile    Details |_Records           |_emp_no           |_ emp_name           |_ emp_dno. My file is getting created at r

  • Combining itunes libraries????

    I own 2 iphones, each contains different libraries. is it possible to combine both libraries into one under the same itunes acct?

  • Adobe Content Viewer Problem

    Hi All, I am having trouble testing a new folio on the desktop of one of my students' computers. I have double checked her files are all setup properly. I checked her articles and her folio too. Everything is set up the way it should be. We can test

  • Problems with my laptop starting - Satellite P745, Windows 7

    For the past few months I've been having a very strange problem with my laptop. I have a Satellite P745-S4380 with Windows 7. There are times that I can shut it down and turn it on with no problems. However, a majority of the time when I shut my comp

  • "System Error" on E72

    Hi! I really thought the problem "System Error" is solved with my Nokia E72 after doing the *#7370# . I had couple of successful attempts to exit from a web using Wi-Fi , everything was perfect...till the next one! The "System error" appeared again!!