Can sales order line item text be replicated into production order
Hi
Can sales order line item text be replicated to production order through standard PP configuration? If so how can it be done?
If that is not possible through standard configuration then can it be possible to read both sales order line item information and production order information using a BAPI or a program?
Please help me, i have been trying hard for this and also searches sdn for relevant posts but could not find any, I thank all people who can help me with some information on this.
Regards,
Jessica
Sample code:
DATA:
wa_order_objects TYPE bapi_pp_order_objects.
DATA:
it_order_header TYPE STANDARD TABLE OF bapi_order_header1.
*--Setting Flag to get details of BAPI
wa_order_objects-header = c_x.
CALL FUNCTION 'BAPI_PRODORD_GET_DETAIL'
EXPORTING
number = "Order number"
order_objects = wa_order_objects
TABLES
header = it_order_header.
Similar Messages
-
Replicate the Sales order Line Item Text to Production Order
I want to replicate the Sales Order Line Item Text to Production Order? Please tell me if this is Functional job or a Developers Job?
I believe this can be achieved by customization and doesnot need any programming and I am trying hard to gather relevant posts for this, but didnt find any.
Please help me with some information if some body encountered this earlier.
Regards,
Jessica Sam.Hey Jay, thanks for your reply.
Please confirm me if this is a developers job or a functional job?
Do i need to do some programming to achive this?
I checked with couple of my collegues and friends and 90% people say it can be achieved throug functional configuration.
can thorugh some light on this as i had been researching on this seriously and still have mixed opinions .
Thanks,
Jessica -
Getting Message no. TD600 while reading sales order line item text
Dear Experts,
I want to read text from sales order line item through ABAP, but unable to fetch the text data in the program & getting the below message: Text 0020001169 ID Z003 language EN not found.
But in the same program I can fetch Header text data, that means the text read program is correct. If anybody faced the same issue & already solved the same then please let me know the solution so that I can get out of that problem.
Thanks in Advance,
Vishal.As per the message no. you have posted. it is clear that respective text record doesnt exist in the database.
Maintain Text record in Tcode:SO10
Text Name: 0020001169
Text ID: Z003
language EN
Now try & revert. -
Can't modify line item text in financial document
Dear all,
In some cases I'm not able to modify line item text field in financial documents, and I don't know why.
I've checked customizing and BSEG-SGTXT appears as modificable field in any case.
As far as i know text field is not a relevant field, so the system should let me modify it if the customizing is right.
Does anyone know if there could be any other customizing that affects this transaction (FB02)?
ThanksHi
Since you indicated the entry is from goods receipt, I understand that you are trying to change the line item text in a GL line item.
If so, please ensure the following:
1. in OB32, for Account type S and Field name BSEG-SGTXT, the trasaction type is blank, "Field can be changed" is ticked and "Posting period not closed" and "Line item not cleared" are not ticked.
2. In OB32, for Account type S and field name BSEG-SGTXT, no other entry is there along with company code which has a different rule.
3. You can enough authorization to change the document.
4. If you can change the text, but cannot save it, then please check whether any validation/BTE is in place which is not allowing to do so.
Regards -
Sales order line item cannot be rejected as service order has been archived
Iam trying to reject a line item in a sales order with a "AP cancel line item" reason, but it does not allow me saying that the service order does not exist. The service order has been archived earlier. Is there any solution or workaround of this problem ?
Program zz_clear_aufnr can be used to resolve this.
-
How to add the line item text in the Ledger line item report
Hi SAP Gurus,
I having one requirement from the user. He wants the line item text which we will enter in FB60/FB70/FB50 has to be shown in the Ledger line item report. Right now this field is not available. Is there any possible we can make this line item text in the ledger line item report i.e. FBL1N/FBL3N/FBL5N?
advance thanks for the help.
Regards,
Deva.Hi,
You can do the below to get this. (You can change the names of the function modules as per your wish/ organization naming convention):-
Step 1:-
Create function module Z_GET_SGTXT as below:-
Import:-
BELNR LIKE BKPF-BELNR
BUKRS LIKE BKPF-BUKRS
BUZEI LIKE BSEG-BUZEI
GJAHR LIKE BKPF-GJAHR
Export:-
PRCTR LIKE BSEG-SGTXT
FUNCTION Z_GET_SGTXT.
""Local Interface:
*" IMPORTING
*" VALUE(BELNR) LIKE BKPF-BELNR
*" VALUE(BUKRS) LIKE BKPF-BUKRS
*" VALUE(BUZEI) LIKE BSEG-BUZEI
*" VALUE(GJAHR) LIKE BKPF-GJAHR
*" EXPORTING
*" VALUE(SGTXT) LIKE BSEG-SGTXT
SELECT SINGLE SGTXT FROM BSEG INTO SGTXT WHERE GJAHR = GJAHR
AND BELNR = BELNR
AND BUKRS = BUKRS
AND BUZEI = BUZEI.
ENDFUNCTION.
Step 2:-
Then create the Function Modules as below:-
Z_LINE_ITEMS_GET_SGTXT (Copy of SAMPLE_INTERFACE_00001650)
FUNCTION Module Z_LINE_ITEMS_GET_SGTXT.
""Local Interface:
*" IMPORTING
*" VALUE(I_POSTAB) LIKE RFPOS STRUCTURE RFPOS
*" EXPORTING
*" VALUE(E_POSTAB) LIKE RFPOS STRUCTURE RFPOS
Initialize Output by using the following line
E_POSTAB = I_POSTAB.
E_POSTAB = I_POSTAB. "<-- important
CALL FUNCTION 'Z_GET_SGTXT'
EXPORTING
BELNR = I_POSTAB-BELNR
BUKRS = I_POSTAB-BUKRS
BUZEI = I_POSTAB-BUZEI
GJAHR = I_POSTAB-GJAHR
IMPORTING
SGTXT = E_POSTAB-SGTXT
EXCEPTIONS
OTHERS = 1.
ENDFUNCTION.
Step3:-
Transaction FIBF:-
Settings -> Products -> of a Customer
SGTXT Text in Line Item Display Active
Settings -> P/S Module -> of a Customer
00001650 SGTXT Z_LINE_ITEMS_GET_SGTXT
Step 4:-
Create the layout for FBL*N with display of the TEXT.
Regards,
Gaurav -
Copying text from CMIR (KNMT) to the Sales Order Line Item
We need to copy text from the CMIR (KNMT) to the Sales Order Line Item with two steps in the access sequence. First to look up by the Ship to Partner Function. If doesn't exist, then look up by Sold to Partner Function. Have setup a new text id (ZPRN), a new access seq (9011). The access seq has one seq =5 for KNMT, ZPRN, all languages and that saves fine. When I set the Partner Function to be SH. I get the following error msg:
"The Language does not come from the partner function AG for MVKE".
Any ideas? This access seq does not reference MVKE. It only references KNMT.
Thanks!Hi Lisa,
Just stumbled on this post, as I am searching for something similar.
What you are attempting to do isn't possible in config.
This is because as standard Customer Material Info Records are not even considered for ship-to party in the sales order.
They work for sold-to only.
Therefore, this funny error message is SAP's way of saying, "Why are you trying to enter a partner here, because the data is determined for sold to only?"
You can change this with development for other fields (ie, to determine delivery plant, tolerances etc at ship-to) by using
the exit MV45AFZB with the USEREXIT_CUST_MATERIAL_READ form.
However, even if you do this, Text Determination is still sold-to only and still doesn't behave.
I am currently looking myself for a solution for this problem and I will let you know what I find.
Cheers
Chris -
Can we modify sales order line item before its booked through API?
can we modify sales order line item before its booked through process_order API?
here we have a situation where related item should be substituted for actual order item when user selects the related item , So looking for a way to modify the ordered item on sales order line .
Thanks,Hi
There is an API to update the Related Item on the line level in the Sales Order.
PROCESS_ORDER API can be used for this purpose. It is part of OE_ORDER_PUB.
Below are the fields on line table type that will be assigned to create an order line with related item and original ordered item.
ORIGINAL_ORDERED_ITEM : Original Item
ORDERED_ITEM : Related Item
ITEM_RELATIONSHIP_TYPE : Type of Relationship.
Please go ahead and try to create it like this. I am pretty sure that it will get the order created with related items.
Note: Please make sure the profile option
OM: Enable Related Items
should be enabled.
Please mark the response as helpful or correct if it provides you the solution.
Thanks
Mirza Tanzeel -
Re-Cost (CK55) Marked Sales Order Line Items
My current client resets standards each quarter. They have requested to re-cost open CTO Sales Order line items and update the valuated sales order cost (EK01). I have reviewed the options available in CK55 - Mass Costing and find the processing log retrurns the following message:
Cost estimate with status VO exists. See long text
Message no. CK_MCSO014
Diagnosis
A cost estimate with the status VO already exists. This cost estimate will not be overwritten.
System Response
Processing continues with the next item.
Note
You can remove this message from the log with the customizing transaction User-Defined Error Management for Mass Costing of
Sales Documents. The item will still not be costed, however.
Short of manually re-costing each open sales order line item. Is there a way to re-cost open CTO Sales Order Line items?
Regards,
Dewayne WesleyI didn't realize there was a MASS Cost transaction.
Is there a MASS delete Sales order Cost estimat transaction? That would help. -
How 2 Copy Header & Line Item Text from Purchase Order 2 Out Bound Delivery
Hi SD Gurus,
I want to copy header and line item text from Purchase Order to Out Bound Delivery (This is required in Stock Transfer Process).
I have been able to do successful config. for copying header and line item text from Sales Order to Outbound Delivery but config. doesn't seems to be same for copying text from PO to OBD.
Is there any way to achieve the same? Can some expert show the way to achieve this.
Thanks in advance.
Warm regards,
Rahul MishraHi Ravikumar thanks for u quick reply.
This is wht is currently coded.
concatenate values to get item text for read text function
invar3+0(10) = invar1. "PO number
invar3+10(5) = invar2. "PO line number
SELECT SINGLE * FROM stxh WHERE tdobject = 'EKPO'
AND tdname = invar3
AND tdid = 'F01'
AND tdspras = sy-langu.
IF sy-subrc = 0.
invar4 = invar3.
reading the text for the document items.
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = 'F01'
language = sy-langu
name = invar4
object = 'EKPO'
TABLES
lines = it_itab.
I have seen some PO's which have info rec texts in that, which gets pulled by the above code...first thing is its id is F02 which exist in STXH table also there is other text with F01 id, and hence the table it_itab gets both these text hence no pbm.
but i came across a PO which has only one text which is info rec text with id F05 and is not store in stxh and hence doesnot get pulled by read_text fm. How do i change my cod to get this text which should not hamper other PO's as well.
As mentioned in above msgs, this F05 could be retrieved by providing object name as EINE.
anyhelp will be appreciated and rewarded.
thanks -
Material Variant configuration in sales order line item from Ztable
Hello Experts,
we have configurable material and and creating sales order. from sales order line item if we goto configuration we can maintain variant configurations. My requirement is that when i click on configuration after selecting a line item i need to check ztable where i have material no and and relable text. if an entry exists i have to populate this relable text in one of the configuration filed. Can any one help how can i read and update configuration in sales order level and where to do this coding so that when i click on configuration the value from ztable populated in a field.
Many thanks in advance.Hi Senthil,
It is simple.
When you create a characteristic which should have the value maintained in the Z table, go to the tab values. Here you have a push button called "Other Value check". Here you click this button and select the function module option. Now, in the window, you will have a place where you can mention the name of teh function module.
You create a function module with the help of your developer to find out the text maintained in the Z table using teh rules you have in your mind and update that logic in the characteristic. In the earlier screen, you just have to mention the name of the function module, thats all, your work is done.
Now when you configure, for this characteristic, the value will be automatically determined using teh function module. You have to create such characteristics as "Not ready for input" ones in additional data for which you cannot enter values manually.
Hope this helps. -
Third Party GRN Posting Date to be Copied to Sales Order Line item Billing Date
Hello Experts
I have a client requirement where in they want to bill line items in the sales order ( third party process ) to the end customer in sync with the GRN posting dates happened in the PO
For EG if GRN happened on 1st July 2014 then Billing Date should come in as 31st July 2014 so when they execute VF04 giving from and to dates as 1st july to 31st corresponding sales order can be invoiced
Actual problem is for suppose if i create a sales order in the month of june say 26th basing on the factory calendar setting and invoicing list maintained in the customer master system defaults the billing date to 30th June 2014 , and the same when user runs VF04 from 1st June to 30th June this sales order shows as due and mistakenly end user invoices the customer ( whereas logical GR would have only received in July 1st )
My requirement is similar to below threads but i am unable to find answer how to copy GR Posting date to Billing Date of the sales order line item
use GR Doc date as billing date
3rd party sales process (w/o ship notif) - BillingHi Lakshmipathi ji,
As my requirement is to update the billing date at the sales order line item level , As a process user goes in executes VF04
For Ex
Sales Order Created Date is 1st June 2014 then System Defaults Billing Date at line item to 30th June 2014
Now when i do GRN suppose on 1st July 2014 for that line item , system should trigger a code where in check the posting date of the GRN and override the same in the Biiling Date field of the sales order line item
So when VF04 is run for a month All the GRN which are recieved in the month of July are invoiced in July
Please share me your thoughts do we need to check any userexits from MM side which reads the posting date of GRN and then copies in to my third party sales order
Regards
Hiba -
Access control on Sales Orders - Line items
Is it possible to control access to users from deleting line items in sales orders?
(since Julius would reply saying a "YES" or a "NO" , i will complete my question )
If it is feasible to control, could some one make a suggestion on how to do this and help me, please?Hi Manjula,
Thanks for trying to help and for sending the link, but unfortunately, the link doesnt help me for my question.
the discussion in the link you sent is more on the stock situations that is a mis-match in MD04, when a order line item is rejected then the stock of the line item should be refelcted in MD04 and since this doesnt happen the program was supposed to be eecuted for consistency ==> this was the issue in the link
Now, coming to the problem on hand: If i create a sales order with 25 line items and make a delivery of 22 line items , do a PGI for the 22 and then , i check for the other 3 line items in the Order, realize that the schedule lines in the order are for a date that doesnt meet the date of goods issue of the other 22 items - i delete the 3 line items in the order <== this is what i want to restrict, users shouldnt be able to delete line items of a order that has a subsequent document.
I know i can manage doing this via ABAP based on a few validations on the document flow, but i wanted to know if there is an alternate method of achieving this.
I vaguely remember a situation where i had a user who couldnt enter line items in Purchase orders although he had all required transactions, org,values.......after much research and quite a few trial and error methods i got to a solution by adding/deleting (i dont remember corretly) a parameter value to the user and he could add line items. The curiosity i have is in knowing if there is some parameter value or an other Authorization object, that could help me achieve my objective
Although it could be efficient, ABAP would be my last option
Do keep posting, any help is good help -
Sales order line items delivery cancelled but still appears in MD04.
Hi PP Gurus,
In the sales there are 6 line items are there out of which for 1 line item delivery and PGI happened. And for remaining line items delivery got cancelled, but these line items for which delivery cancelled appearing in the MD04, I have rejected the sales order line items but these line items still shows in MD04. Please advise how to remove these line items from MD04.
Thanks and Regards,
SHARAN.Hi
Pl refer SAP Note : 1166713 for the Problem which says " You have posted goods issue and therefore the delivery requirements should no longer be existing. These inconsistencies can be seen using report SDRQCR21"
Regards
Brahmaji -
Need to Split Sales Order Line Item in VA01
Hi,
I have a requirement in which i have to split an order line item for KMAT materail number. system popup configurable screen, here all the required characteristic values have to be selected as per the customer requirement.
After entering all the required customer specific characteristic values, system determines batch automatically. If characteristic values of the Batch matches with the characteristic values of configurable screen selected in the sales order
Here also we have to check the sales Order Quantity (VBAP u2013 KWMENG) and order Confirmed quantity (VBEP u2013 BMENG), if the both the quantities are not same, consider order has partially confirmed.
If Order quantity is partially confirmed, check for the batches with the same characteristic values of the quotation configurable screen and if batch found, system has to create a one more line item and new batch has to be assigned to create line item.
Reduce the order quantity equal to the confirmation quantity in the first line item.
Create a new line item in the quotation, copy all the remaining unconfirmed quantity from the first line item and also copy all the characteristics and properties (item category, schedule line category, business data, item data, and requirement type) and assign the batch to the new line item. System does the availability check automatically and confirms.
In another scenario system doesnu2019t find batch, in this case capable to promise has to trigger directly.
Here we have to check the Order confirmed quantity, if confirmed quantity is equal to zero.
Change the item category of the line item, due to which system determines different Requirement type and schedule line category.
Based on the Requirement type system triggers the capable to promise.
I would lke to know which is the suitable user eixt or BADI to split the line items and what all the tables or structures i need to populate in order to create a new line item successfully.
I have seen many post in sdn but no body gives the right user exit name where i can add new line item.
Regards,Hi Amit,
Thanks for your reply. In this scenario configurable material is involved. And first Make to Stock scenario is executed to check any material with customer entered characteristics are avialable. If its so it will determine its batch and assigned the quantity.
If zero quantity is assigned or no quantity is assigned then I have to trigger the Make to Order scenario for rest of unconfirmed quantities in order.
I have check it in USEREXIT_MOVE_FIELD_TO_VBAP but it was of no use. I even tried in USEREXIT_CHECK_VBAP but still no result. I am not sure what all the tables and structures i need to populate there.
Regards,
Maybe you are looking for
-
I am loosing configuration when I power off my Cisco 857 router
I bought new Cisco 857 router from the shop. Router must have been used before as I couln't go in with default username/password cisco/cisco. Well I followed instruciton and reset password to username and password. Now I finally connected to the Cisc
-
Macbook pro can't find printer
Hi, please could anyone help, I have installed the Yosemite 10.10.2 onto my Ma's macbook and it refused to find the wifi printer so I too the printer off and am now not able to ADD it back, when I click on the + sign, the options are just blank and
-
How To Schedule an Hyperion Interactive Reporting Dashboard
Hi . Can somebody let me know on how to schedule an Interactive REporting Dashboard Report and Export the output in PDF and Email the user.i can see the output in HTML when i schedule a pivot, Chart but i dont see anything when i try to schedule a Da
-
Strange problems in Oracle 8.1.7 driver
Hi, gurus, I have a strange problem in Oracle 8.1.7 ODBC driver on Windows 2000 Server. I use Visual C++ and ODBC to access database information. Our program uses character with ASCII code bigger than 127, for example, 170, 132, etc. When I try to ge
-
Hi, I just created a time dimension from a table that contains all the info I need, Once processed, I went to the browser to finalise the viewing, I have a time period from 2009 to 2025 and once I expand the levels, I see a level unknown right under