Change process order 'Created By' field

Hi,
I am creating process order by planned orders through transaction COR7.
My requirement is to change 'Created By' field.  The transaction update the Created By field with login id.
Is there any way to  change this field with userid other than login id.
I have already checked all the user exits used in this transaction.
Regards,
Seema Naharia

Hi,
Is the document which you want to change the “Document Created By”  referred by others?
Is the versioning or workflow turned on in the document library ?
Are there some other  influences  if you delete the file and upload it again?
If the answer is “No”, I suggest you to delete the file and add again in code.  Then you can change the “Author” column of the document
as the method what Steve.Curran said.
SPDocumentLibrary targetLib = (SPDocumentLibrary)web.Lists["your documents"];
SPFile file = targetLib.RootFolder.Files["your file"];
byte[] fileBins= file.OpenBinary();
file.Delete();
SPUser createBy=web.EnsureUser("your user account");
DateTime created=new DateTime (2010,1,1);
SPUser modifiedBy=web.EnsureUser("your user account");
DateTime modified=new DateTime (2010,1,1);
targetLib.RootFolder.Files.Add(file.Name, fileBins, createBy, modifiedBy, created, modified);
Hope it’s helpful to you.
I think I can.

Similar Messages

  • How to use KAUF_AUFNR_CHANGE  to change Process order and Update a field

    Hello ,
    I am working on 4.6C system and I hve a requirement to change Process order and Update a field value passed from a ABAP Program. I am looking for suitable Function modules or Bapi ( available in 4.6c) .
    I have come across FM KAUF_AUFNR_CHANGE . Would appreciate any guidance on how to use the FM in my program and Update a field in the Process order.
    Many Thanks!

    All the importing parameters of this function module have a striaght structure of the transperent tables...
    i have checked the code and it has a modify statement based on the importing parameter..
    pick one record in databas and pass it to the importing parameters, with some values changed...
    i think that should work
    what values  to pass the import values of FM -KAUF_AUFNR_CHANGE.
    Edited by: ssm on Aug 4, 2011 7:19 PM

  • How do I change the order of the fields in my pdf form?

    I am using pdf. form I made in Acrobat and distributing with Adobe FormsCentral.  We use a table format for our teachers to fill out their field trip schedules and therefore use many different fields.
    How can I change the order of the fields (not for tabbing, we figured that out)...so that when we receive our notification email, I can see the inforamtion in a specific order (Date, Time, School, Program, etc).
    We would also like this same order to appear in the "View Responses" table.  I know you can drag and drop the order in the table but we have over 100 fields and that is going to take a really long time.
    Please help???
    DATE
    TIME
    To start/finish
    Name of Program  
    TEACHER’S
    NAME
    TEACHER’S EMAIL
    # OF
    STUDENTS
    Setup in
    Room #
    03-21-14
    Solids vs. Liquids
    03-21-14
    Solids vs. Liquids
    03-21-14
    Solids vs. Liquids
    04-11-14
    Solids vs. Liquids
    04-11-14
    Solids vs. Liquids
    04-11-14
    Solids vs. Liquids

    What do you mean by the "order they appear in the pdf structure"?  What is the "Pdf structure"? 
    thank you for your help... this is really upsetting, as I thought we finally found a solution with Adobe Forms : (
    We really need the fields to report back in a specific order and wouldn't have time to rearrange over 100 fields with every form that is submitted. We receive about 10-20 different forms a day (same form layout, just some of the fields will have to be prefilled depending on school/teacher reservation... so we have to name each form a different name, for each school).
    Thank you again and maybe one day they will change that.  Is there anyway to set it up in the web verison of Adobe FormsCentral to look similar to the table we have created?
    DATE
    TIME
    To start/finish
    Name of Program  
    TEACHER’S
    NAME
    TEACHER’S EMAIL
    # OF
    STUDENTS
    Setup in
    Room #
    03-21-14
    Solids vs. Liquids
    03-21-14
    Solids vs. Liquids
    03-21-14
    Solids vs. Liquids
    04-11-14
    Solids vs. Liquids
    04-11-14
    Solids vs. Liquids
    04-11-14
    Solids vs. Liquids

  • Adding Distribution KEY (GLEI) to a new Component at Process order Create

    Hello Experts.
    We have a Process Order where all components have the GLEI Distribution Key assigned.  FOr this particular Process order, our Scheduler routinely adds an additional Material Component (with a specific batch number to save operators from having to key in the batch number when reorting production).  The problem is, that when she adds this additional component, the Distribution Key field is greyed out so we cannot assign the GLEI key.  This causes the demand for that particular item to show on dates that dont work for us.  Should it be possible to manually assign the GLEI key to components at the Process Order create stage? 
    *Note, I have also tried adding the extra component at the Planned order stage, and while the screen allows me to enter all of the details (including Distribution key), when I save the Planned order, the new component does not get saved.
    Any help would be greatly appreciated.

    closing thread

  • Is it possible to change the order of the fields in the int table?

    Hello
    Is it possible to change the order of the fields in the int table?
    Lets say itab has the following fields :
    F1, F2, F3
    I would like to see it as F2 F3 F1
    Thanks

    >
    Comandante Che Guevara wrote:
    > Lets say itab has the following fields : F1, F2, F3
    >
    > I would like to see it as F2 F3 F1
    What do you mean by "like to see" ? You can WRITE the fields in any order you want. If you want to display the internal table in an ALV you can manipulate the fieldcatalog.
    If you want something else other than display the field, you have to explain your req. in detail.
    BR,
    Suhas

  • COR2 (Change Process Order) Upload & Data Change Using BAPI OR RFC

    Dear Experts,
                       I want to change the Transaction cor2(Change Process Order) material 1st line quantity, after that i have to upload records from line 2. I have all the data in itab. Will you people please have a suggestion to change and Upload data at the same time in a single program using some BAPI or RFC.
    Which BAPI or RFC will be helpfull in this regards.
    Thanks,
    Sohail

    I have done it through BDC recording, change on first line, then upload using bdc from 2nd line.

  • How to change the order of the fields in the queryoutputnode in OVS.

    How to change the order of the fields in the queryoutputnode in OVS.

    The actual requirment is to re-arrange the elements of the queryoutput node, to look more organised
    say for ex.
    Seq 1:
    c code                            company name                          g/l ac                g/l ac description  
    Seq2 :
    g/l ac description             c code                                       g/l ac                company name  
    Seq 1 way of representation is more organised that Seq2. How can we achieve this re-arranging of ordering in the queryoutputnode.

  • Process Order creates Multiple Inspection for Same Batch

    Hi Guys,
    Expert opinion is needed to have this issue fixed.
    Issue:When a new Process Order is created it automatically creates in storage location A.  There are times when a process order needs to be created into another storage location B.  When the Process Order is created and then is changed from A to B  it will  create two inspection lots for one batch, one for each storage location.  From the plant perspective they only need one Inspection lot as they will not create two set of samples for testing since it is the same batch it just went into a different storage location then it was originally created for.  Is there a way to change SAP  so that it only creates one Inspection lot per batch.
    Control InspLot field in QM view for Insp Type 04 is X
    We had different scenarios with same Batch
    SCENARIO #1:  Sloc is changed to B prior to Release, in CRTD status of order Sloc was A
    So there are 2 Insp. Lot created one for A & another for B after GR in Sloc B
    SCENARIO #2:  Sloc is changed to B after  Release
    IL is created after Release of order with Sloc A, after changing Sloc B in process order and performing GR, new IL is created for Sloc B
    Business scenario is certain times of the year where one creates a PO with one Sloc and then it needs to be GR into a different Sloc.
    They are generating a lot of IL’s that are not used and it seems like every year they need to get UD’s made on IL’s for finance to close out the year which is cumbersome.
    Please suggest way out, objective is one process should have one IL per Batch irrespective of Sloc
    Regards
    Nitin Desai

    There are several things that come to mind.
    First and foremost, get the planning right so that the process orders are created properly the first time around.  This is a business issue.  Yes.. I don't know your business.. no, you really aren't all that different then the thousands of other businesses using SAP.  The root cause of this is you don't know what is going where when you order it or in the case of process orders, where you intend to make it or store it.  That's a basic planning problem.
    2 - you must have early lot creation turned on, "Y".  You can't be using "X".  X would only create an 04 lot when you do the GR so if you change the storage location prior to the Process order being released I'm not sure how you are generating two lots.  Are you sure all the lots in question are 04 lots? Are you maybe seeing an 03 lot?  Or possibly an 08 lot?  Something doesn't sound right here.
    3 - If you receive into two storage locations from one process order, you will get two inspection lots.  No way around this.  There is stock associated with these.  You could use customization to suppress the second receipt but that stock would go right to UR with no inspection.
    4. Don't change the storage locations  in the process orders at all.  You can use the stock posting screen in the UD and change the storage location when you make the UD.
    5.  Another option is to again, don't change the storage location in the PO but use QAC2 transaction to transfer the inspection lot into the proper storage location.
    You need to explain your scenarios better cause I really don't see how you are getting the two lots when you make all your changes in the process order prior to releasing the process order.  That doesn't make any sense at all.
    Craig

  • Change process order range number

    I was requested to change the current process order range number.
    Could you give some information about this?
    Pros/Cons?
    Thanks,
    Gerardo

    The Process order number range is maintained in tcode : CO82.
    Typically you change number range for various reasons like
    1. External number range required
    2. New order type created & new number range required for Rework orders
    3. Tracking certain special orders with different no range for differenciation & easy visibilty
    4. Specail no range reqd due to limitation of External System that is interfaced with SAP
    5. Different no range required for collective orders, MTO, M to stock orders etc...
    These are some of the reasons I can recollect from my experience.
    This you may take as the PROS.
    As far as CONS : 
    1. Good communication with user group needed before number range change
    2. As with any configuration change, Regression testing needed by users/ business groups before configs move to Production
    this is my 2 cents...
    hope this helps. More questions? please come back
    thanks,
    Ram

  • Change Process Order BAPI FM?

    Hi friends, can you help me with this issue?
    I'm trying to change a process order (tx: cor2) but the bapi BAPI_PROCORD_CHANGE only allow me to change header data, i need to change components data (add, change, delete a material).  Any suggestions?...
    Thank you very much.
    Leonardo Pavia

    Hi,
    The BAPIs available with PO are:
    BAPI_PROCORD_EXIST_CHECK
    BAPI_PROCORD_CHECK_MAT_AVAIL
    BAPI_PROCORD_CLOSE
    BAPI_PROCORD_COMPLETE_TECH
    BAPI_PROCORD_COSTING
    BAPI_PROCORD_CREATE_CAP_REQ
    BAPI_PROCORD_RELEASE
    BAPI_PROCORD_REVOKEUSERSTATUS
    BAPI_PROCORD_SCHEDULE
    BAPI_PROCORD_SETUSERSTATUS
    BAPI_PROCORD_SET_DELETION_FLAG
    BAPI_PROCORD_SET_DEL_INDICATOR
    BAPI_PROCORD_WM_MAT_STAGING
    BAPI_PROCORD_CREATE
    BAPI_PROCORD_CHANGE
    BAPI_PROCORD_CREATE_FROM_REF
    BAPI_PROCORD_CREATE_FROM_PLORD
    BAPI_PROCORD_GET_LIST
    BAPI_PROCORD_GET_DETAIL
    Pls check if any of these work for your scenario.
    Regards,
    Renjith Michael.
    Edited by: Renjith Michael on Jan 16, 2008 12:38 PM

  • Process order create

    Hi Experts,
    How to achieve follow.
    User should get error message while create process order if there is no price in material master of FG material so he can't create order.Now he gets error message while GR for process order.

    Dear,
    Using USER STATUS you can restrict the release  of process order if there is Error in cost calculation.
    Restrict release in case there is CSER status
    1.You need to define a status profile in BS02 ( Example ZP00001)
    2. Assign the status profile to object type Process order
    3. Then click the user status .
    4.Enter the user status as CSER.Tick the initial status indicator.
    5. Double click the CSER ,then go to create mode.
    6. Select the business transaction Release
    7. Against release transaction choose forbid radio button and select the set function.
    7. Save and assign the status profile to order type in CORN
    Regards,
    R.Brahmankar

  • Changing process orders in ecc

    hi gurus,
                  my issue is, whenever i change the process order dates in ecc(the date is changed to date that is outside my planning horizon) they dont show in the APO and instead the  APO is overriding the changes to the original date.
    can u guys help in resolving this issue.
    thanks in advance
    regards
    maddy

    Hi Maddy.
    As APO is the leading system in scheduling, the dates defined in ECC might not be retained after the order is sent over to APO. You can take a look at note
    684356 Date transfer between R/3 and APO
    for details.

  • Confirmation of process order create : goods movement

    Dear Sir/Madam ,
             I am using the Transaction Code - CORK for confirmation of process order , but promblem is that when i am saving the goods for confirmation then material pi101 has some error i.e the material pi101 is locked by another user or something , then that is not confirmed but rest of the material which are having 531 movement are confirmed ,
    so i want that if the first material i.e pi101 which has 101 movement that should be confirmed first then after that rest of the goods having 531 movent confirm,
    i have already  searched the userexit for transaction cork i.e CONFPI05 when saving the data and another one is CONFPI06 for   Actual data transfer plz tell me what will be the logic and which structure to call in this userexit because in this userexit the structure which is present is not of use .
    thanks and regards ,
    arun

    Hi,
    I believe you would need to append the below line for your code for goods movement.
    wa_timetickets-order_itno = p_itno.  " Order item nos.
    Check & revert if it resolves the issue.
    Regards,
    Vivek

  • BAPI for Process order change

    Hi,
    Can any buddy tell me the Bapi used for Process order change
    with following scenarios:
    Quantity change
    Resource change
    Rescheduling
    Control key change
    RM Change
    Recipe change
    TECO
    REVOKE
    Material shortage check
    Best Regards,
    Sheetal.

    Hi,
    BAPI_PROCORD_CREATE for process order create
    BAPI_PROCORD_CHANGE - Change Process Order
    BAPI_PROCORD_CLOSE - Close Process Order
    BAPI_PROCORDCONF_CANCEL for Cancel Process Order
    Confirmation.
    BAPI_PROCORD_COMPLETE_TECH - Complete Technically
    BAPI_PROCORD_RELEASE - Release Process order
    BAPI_PROCORD_SET_DELETION_FLAG - Deletion Flag
    BAPI_PROCORD_REVOKEUSERSTATUS - Cancel User Status
    BAPI_PROCORD_SCHEDULE - Carry Out Scheduling
    pls refer below link
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/200dd1cc-589e-2910-98a9-bb2c48b78dfa
    http://help.sap.com/saphelp_nw04/helpdata/en/e0/9eb2370f9cbe68e10000009b38f8cf/frameset.htm
    Regards,
    Sankaran

  • Process Order fields

    Hello
    I'm basically new to PP-PI and could anyone explain me the process flow.
    1.when we create process order what the fields  Total quantity, Delivered and Expected Yield Variance means.
    2. should we do confirmation of process order to get in to process(production) or when we save process order means that it can go in process(production).then why do we need to confirm or is it like a goods receip in MM for Purch Order?
    3. where do the data stores(table and field) for the output for the process order.
    4. If we want to check that how much quantity was scheduled to produce and how is actually produced and whats the variance......where do we look this data.
    Can you please explain me ASAP as it very urgent and important to me.
    Thank you in Advance
    Mittu

    Hi Mittu,
    The Process flow for PP-PI is the Order is created from MRP/Planned orders or Manually. The order is scheduled, planned cost is determined and capacity is calculated during creation or during release or during saving the order based on the setting we maintain in Production scheduling profile.
    Then based on the reservations materials are issued for the order. After the operation/phases are completed we confirm the production order. Confirming production order is nothing but we tell the system that the production is completed. and we give information about how much man power or machine hours spent. Material usage will be calculated from the Goods issue to the order. By using these informations the system calculate the cost of the order.While Confirming the order the Yield quanity is given. If quality inspection is very much extensive then PI Sheet is maintained.The cost is calculated from the confirmations. After that the WIP- work In progress, Variance are calculated. And finally the order is settled,Technically completed and closed.
    Once the GR for order is done the Quantity Delivered field isautomatically get updated. And if the quantity delivered is different from order quantity i.e scheduled quantity then the expected Yield variance is calculated. If the yield is more then the value of yield variance is "+" and if the yield is less then the quantity is "-".
    Your doubt is what are the fields
    1.Total quantiy -  this is the order quantity you enter during order creation i.e
      scheduled quantity.
    2.Delivered - This is the quanitity gets automaically updated from the Goods 
       Receipt for Order transaction
    3.Expected Yield Variance- This is the yield variance calculated after the 
      confirmation of order.
    4."AFRUD" is the table used for storing output informations.
    5. To see the scheduled quanity ,produced quanity and yield variance go to transaction "CORT"  Display Process order confirmation and input the  Process order number and press enter.
    Hope the above clarifies your queries. Kindly revert back for any more clarifiations.
    thanks and regards
    Murugesan Thangathurai

Maybe you are looking for