Update the change history for line items in CDHDR/CDPOS
Hi,
I have a problem in updating the sales order and line items in CDHDR/CDPOS when there is change in header level custom field..
Actually i have a custom field in VBAK which added in additional data A in the header level of sales order.When we have change in that field only some line items only updating in the change history tables(CDHDR/CDPOS),but we need to capture all the line items when the custom field in the header level is changed.
i have added change document flag in the data element of the custom field.
Please advice me how to get all the line items will reflect in CDHDR/CDPOS when the header level custom field has change .
Thanks & Regards
Kiran
The purpose of CHANGE DOCUMENT tables is to flag the changes with Old and New values. So when Header data is changed only Header details will be tracked and same for Item tables too.
If you need anything addtional from this then that would customizing.
I am not sure what is your requirement but to make it simple and achive requirement add same field with same setting to line item tables VBAP, VBKD.. (as required, if that's doesnt impact your Order. These fields no need to be on screen). While changing your Custom field of Header level change the item level field too. Then CHANGE DOCUMENT will generate automatically for all the line item including header.
Similar Messages
-
Hi,
I have customized the change rules for Line item.
Still the system not allowing to make changes to that particular field? Can any one tell me, whats the reason for the same.
Following Field is made as changeable for the line item.
BSEG-VBUND Trading partner.
The above field is available in More data Tab or additional data tab while making entry or display of document.
Thanks,
LalatenduHi,
That i know, but trading partner was not entered in the GL Master data. Infact some one wrongly entered Trading partner in Customer master and during bank posting system automatically picked Trading partner.
When thye r trying to clear open items for that GL account , because of that assignment system is not allowing to clear those line item.
If i can remove that trading partner from document, my problem will be solved.
Can any one guide me..or if u need more info please let me know.
Thanks,
Lalatendu -
Changing the default view for Line Items in an Auction.
Hello All,
We have a version 5 client who is asking for us to change the default view for line items in an auction.
Currently, if you have an auction setup, and you go to the Line Items tab, the default view is the "Basic View". The client would like to change the Default from "basic view" to "price view".
Is there a way to change this default in the system? Can this be configured using query groups? Any information would be helpful.Hi wood cloud,
This is not possible, bcz there is no VLV for that drop down and we cant set it to the price view.
Thanks,
Ankur Goyal -
Retrieving the Change Texts per Line Item (Purchase Order) - Very urgent
Hi,
How do you retrieve the Change Texts per Line Item (Purchase Order).
Table T166T does not list these values per line item.
Please help. This is very urgent & important.
Best Regards,
Johnif you are lookin out for change of item texts ...
then use the function module ... READ_TEXT.
and 2 tables r used ... STXH and TLINE ....
double click on item data ...
goto PO TEXT tab ....
double click on text ...
from menu ...
goto header ... u'll get 4 fields that u need to consider ...
TDID
TDOBJECT
TDHEAD
TDNAME
ALL THESE U'LL FIND IN STXH
ITEM TEXT is stored in TLINE
Edited by: anjali rana on Mar 5, 2008 4:55 AM -
Help:: Tracking the change history for a BP
Hi All..
I really need ur help.. Somebody please..
I'm making a prog. to update BP (TCODE: BP) & it run well. But now, i'm getting to make report for change history in BP. As for it, i look up it in table CDHDR & CDPOS, but i didn't find it :(.
I use these FM to update:
1. BUP_BUPA_UPDATE.
2. ADDR_SAVE_INTERN.
Even i have tried to run FM ADRESSE_WRITE_DOCUMENT, but it still didn't work well.
The questions are:
1. Am i right for using FM ADRESSE_WRITE_DOCUMENT in order to get the history change in CDHDR & CDPOS.
2. How to use FM ADRESSE_WRITE_DOCUMENT? What should i fill up in parameter: OBJECTID,PLANNED_CHANGE_NUMBER,PLANNED_OR_REAL_CHANGES,
and NO_CHANGE_POINTERS ???
3. Why do always i got the exception NO_POSITION_INSERTED in using FM ADRESSE_WRITE_DOCUMENT? How to solve it?
4. Or are there any ways how to update well where i'm able to track the change history for BP? / Is that any functions to update BP like FM CRM_ORDER_MAINTAIN.
Thx so much.. for ur attention
Ur guidance is so much needed.
Best Regards
Daniel N.Hi Daniel,
You can refer to table TCDOB for object class, it has a list of object class to which you can refer to and also the text description for each object class exists in that table.
Regarding the object id, you need not pass the value of the object id unless and until you want to read the change history of a particular Business partner.
Pass the value of the object class and if required the date of change to track the changes made to the BP's in that particular time period.
Hope this helps.
Regards,
Karthik. -
Customization of Plant change for line items.
Hi ,
My requirement is to customize the plant determination for line items.
Is there any Function module or any code to ensure this functionality.
Please help.
Regards
HarishHarish,
The standard functionality for determining the Plant for the line item comes from the Material master. The delivering plant filed that you have maintained in the Sales Org 1 View of the Material master.
If you want to have your own logic for determining the plant then you can write the User exit coding in the include MV45AFZZ form name "USEREXIT_MOVE_FIELD_TO_VBAP" .
Hope this helps you.
Let me know if you need any more information.
Regards,
Ajai.
Don't forget to reward points if helpful. -
Issue with PO change output - Service line items
Hi All,
This is issue with PO change output. We have PO with line item 10, 20 and item 10 has 4 service line items. PO is approved and initial print out is taken.
Some one goes and makes changes to 1st service line items of PO line item 10.
A change output gets triggered. When this output is printed, it prints line item 10 details. This is standard functionality as this item is changed. But its printing all the service line items for this PO line item. Consider a case where there are 3000 service lines for a PO item. If I add 1 service item to this PO line item, the change form prints 3001 services for that line item. There were no changes done to first 3000 service line items.
Currently PO change form takes care of changes at PO line item but it does not take care of changes at service line item level.
Is there any setting that needs to be done for this so that it only considers the changes at Service line item level also.
Regards,
ShahuIf you're using a standard form, send a message to SAP. Otherwise make a change in the form.
-
Additional fields for line item display for Vendor Accounts
Hi,
The additional fields for line item display have been defined for the vendor accounts. I am able to see the additional fields in SAP 4.7 system but not in ECC 6.0.
Could you help me to know how the same will be displayed in ECC 6.0 system.
ThanksIn SPRO, Vendor Accounts -> Line Items -> Display Line Items -> Define Additional fields for Line item display, the fields for Check number from (PAYR-CHECF) and Tax Jurisdiction (BSEG-TXJCD) have been defined.
When I am executing Vendor Line Item display (FBL1N), I am not able to select these fields for defining a layout. Could you please let me know, how I will get these fields in FBL1N.
Thanks -
Tcode for line item settlement other than tcode CJIC
Dear SAP Guru,
Please let me know the tcode for line item settlement other than tcode CJIC.
Required urgently.
Thanks & regards,
Pradip ShelkeThanks for your reply.
Actually we are trying to create the BDC program for line item settlement. Through both the tcode CJIC & CJ70 this BDC program is not getting created.
So please suggest some other tcode.
Thanks & Regards,
Pradip Shelke -
Change the sales order reason for rejection for line item
Hi,
i want to change the sales order reason for rejection for line item.
iam using bapi_salesorder_change.but i unable to change the sales order.
if possible please provide me what are the fields necessary for changing
sales order reason for rejection for line item.
Regards,
SureshThis is the standard config to supress printing on the rejected item. Are you using standard programs or customised ?
-
Updating the reason of rejection for line item in sales order
Hi
I am updating the reason of rejection field (ABGRU) using the function module VERKBELEG_WRITE_DOCUMENT.
there is no error that is thrown but the field is also not getting updated.
I have populated the VBAP old and new structure. where the difference is only in the ABGRU field. in the old VBAP struct its missing where as in new it has a value
if anyone has any idea what is that i might be missing, do let me know.
Regards
NikhilHi
we need to maintain the username of the person who has triggered this process through XI .
I BAPI we cannot instruct the BAPI to maintain a specific username.
that is why i am using this FM because this will allow us to maintain the change history with the username we want
Regards
Nikhil -
How to change the amount of Vendor Line Item in FB60
Hi all,
I want to post the invoice in SAP with FB60. The journal is as follow:
Dr. Expense 1000 USD
Dr. VAT-Input 100 USD
Cr. Account Payable 1100 USD
But the problem, the amount of Account payable is 1000 USD. Because I want to fill the amount in vendor line item (FB60) with the original expense (1000 USD).
I want to ask, there is any configuration in SAP to change the amount in vendor line item which it could be the same with amount of the original expense.
If you ever have same problems, plase share with me
Thanks,
JohnHi,
Thanks for your reply. The result of posting invoice that I want is as follow:
Dr. Expense 1000 USD
Dr. Vat - Input 100 USD
Cr. Account Payable 1100 USD
When posting invoices in FB60, there is a filed "amount vendor line item" at the top. Usually the field is filled with amount vendor 1100 USD, but I want to fill it with the expense amount (1000 USD). Which can be show the account payable 1100 USD.
Is there any configuration to change the field "amount vendor line item" ?
Thanks, -
Last line item gets changed to first line item for cs01
HI experts,
I have writen a BDC for Tcode cs01.
I am facing a problem in that.If sucppose there are 4 line items,
the first three line itmes are getting uploaded correctly but the kast line item gets changed to first line item.
below is part of my code.
DELETE ADJACENT DUPLICATES FROM T_MAT COMPARING MATNR.
SORT T_MAT BY MATNR. "HEADER DATA
SORT T_BOM BY MATNR1. "ITEM DATA
*CLEAR : COUNTER, ITEM_NO.
LOOP AT T_MAT INTO W_MAT.
REFRESH GT_BDCDATA.
CLEAR GW_BDCDATA.
perform bdc_dynpro using 'SAPLCSDI' '0100'.
perform bdc_field using 'BDC_CURSOR'
'RC29N-STLAN'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RC29N-MATNR' W_MAT-MATNR.
'lejn44001'.
perform bdc_field using 'RC29N-WERKS' W_MAT-PLANT.
'4600'.
perform bdc_field using 'RC29N-STLAN' W_MAT-BOM_USAGE.
'1'.
*perform bdc_field using 'RC29N-DATUV'
'22.06.2010'.
perform bdc_dynpro using 'SAPLCSDI' '0110'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RC29K-BMENG'
'1'.
perform bdc_field using 'RC29K-STLST'
'1'.
perform bdc_field using 'BDC_CURSOR'
'RC29K-EXSTL'.
perform bdc_dynpro using 'SAPLCSDI' '0111'.
perform bdc_field using 'BDC_CURSOR'
'RC29K-LABOR'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
LOOP AT T_BOM INTO W_BOM WHERE MATNR1 = W_MAT-MATNR.
cnt = cnt + 1.
CONCATENATE '0' CNT INTO VAR.
ADD 1 TO COUNTER.
ITEM_NO = 10 * COUNTER.
OVERLAY ITEM_NO WITH '0000'.
W_BOM-ITM_NO = ITEM_NO.
perform bdc_dynpro using 'SAPLCSDI' '0140'.
perform bdc_field using 'BDC_CURSOR'
'RC29P-POSTP(03)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
CONCATENATE 'RC29P-IDNRK(' var ')' INTO new_mark.
PERFORM bdc_field USING new_mark W_BOM-BOM_COMP.
clear new_mark.
CONCATENATE 'RC29P-MENGE(' var ')' INTO new_mark.
PERFORM bdc_field USING new_mark W_BOM-QTY.
clear new_mark.
CONCATENATE 'RC29P-POSTP(' VAR ')' INTO NEW_MARK.
perform bdc_field USING new_mark W_BOM-ITM_CAT.
clear new_mark.
clear VAR.
ENDLOOP.
loop at T_BOM INTO W_BOM WHERE MATNR1 = W_MAT-MATNR.
perform bdc_dynpro using 'SAPLCSDI' '0130'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'BDC_CURSOR'
'RC29P-POSNR'.
perform bdc_field using 'RC29P-POSNR' V_CNT.
'0010'.
perform bdc_field using 'RC29P-IDNRK' W_BOM-BOM_COMP.
'PURCHASECOST'.
perform bdc_field using 'RC29P-MENGE' W_BOM-QTY.
'20'.
perform bdc_field using 'RC29P-MEINS'
'M'.
perform bdc_dynpro using 'SAPLCSDI' '0131'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'BDC_CURSOR'
'RC29P-POTX1'.
perform bdc_field using 'RC29P-SANKA'
'X'.
V_CNT = V_CNT + 10.
ENDLOOP.
CLEAR V_CNT.
perform screen_data. " IS ALL ABOUT CALLING TRANSACTION......
ENDLOOP.
following is The input file format m providing.
Material Plant BOM usage Item No Item Cat BOM component QUANTITY
WRJN46106 4600 1 10 z PURCHASECOST 10
WRJN46106 4600 1 20 z SOURCINGCOST 15
WRJN46106 4600 1 30 z INVRESERVE 12
WRJN46106 4600 1 40 Z INVRESERVE1 20
in this the first 3 line items are coming correctly but the 4th one gets changed to
first line item.
e.g INVRESERVE1 changes to purchasecost.
plz help.
Thanks n regards,
Ashmita singh.Hi Suneel,
I hardly can't believe that. There must be an mistake by your own in the smartform itself. Would you please share some screens or better, the smartform-XML itself. You can pass out everything else and just share the table and a dataset to try this.
I'm pretty sure that there is something wrong with the settings or even the loop itself. I never faced a problem like that or even heared about such things.
I would love to have a look inside.
Before you share it, create a new one with just the table inside and try it with the same data. Perhaps it is just of to much folders or something like that, so the generating comes in trouble.
Regards
Florian -
Change in one line item should Populate for all line items
Hi ,
We have added one custom field Prefereed Vendor at line item level.
We have requirement that if Prefereed Vendor at one line item level is changed,
then it should populate for all the line items.
Can any one tell me how it can be implemented?
Thanks in Advance.
SnehalHello,
I assume you are referring to SC. In standard SRM Preferred Vendor is a partner to an Item. But based on your post, have you added the Preferred vendor as a CUF field?
Anyway we can achive your requirement in DOC_CHANGE_BADI. This BADI has importing parameter IT_ITEM and exporting as ET_ITEM.
1. Get the SC from PD buffer using BBP_PD_SC_GETdETAIL into LT_ITEM
2. Compare the preferred vendor for every item in IT_ITEM with corresponding item in PD buffer
3. If for some item, the preferred vendor for IT_ITEM is diferrent from that of LT_ITEM --> means we found the item for which preferred vendor was chaged
4. Now populate ET_ITEM based on IT_ITEM along with copying the preferred vendor from changed item to all items.
Rgds,
Prasanna -
Query to get the User who updated BP Catalog No. for an Item.
Hi experts,
I am trying to get the user id who updated BP Catalog No. for an Item. BPCatalog Number details are available in OSCN table. There is no BPCatalog No. field available in ItemMaster OITM, or in ItemHistory AITM. Also, I searched for history table of OSCN. I could not find it.
Any help is appreciated.
Thanks in advance,
Parvatha Solai.NHi,
Thanks for your quick response and reply.
Regards,
Parvatha Solai
Maybe you are looking for
-
How to remove data guard broker configuration when ORA-16625?
I setup data guard broker for a standby database. However, we recreate the database and re-setup the standby database. But find the earlier broker configuration still exists. But I cannot remove or disable the configuration or any database within the
-
I have tried to create an electronic version of a paper manual that uses fillable forms for parents to keep track of their child's healthcare records. I know how to create the forms as fillable forms, but I'm not sure how to get them to be "saveable
-
Muse content moves to bottom in browser, and it's not a footer issue.
Items I've added to a left column seem to move down the page to below a tabbed box widget in the right hand column. It's leaving a huge blank space in the middle of the page. When I view the source on business catalyst, it looks like the problem left
-
Dear consultants, I would like to know if standard SAP program allows me sending check information to Bank through Idoc (PAYEXT) as well as printing the check at the same time trough F110. I receive "no records selected" in F110 so I print the chec
-
Global class event handler not called
I am having a problem where I created a function module that instatiates an application log class. This application log class has methods ON_* for public events of other classes. The function module then processes its routines and as a result some of