Blocking SA line item on creation of new lines or reset via userexit
For a Schedule Agreement(SA ), tcode ME32L, when the following happens
- new line item
- reset a block
- reset a delete
I want to change the 'Deletion Indicator' (LOEKZ) to 'Block', value 'S', at the time of saving.
As a standard, this field would have been blank.
In EXIT_SAPMM06E_013 l assigned XEKPO-LOEKZ with value 'S' and updated the internal table.
On run-time, this field (XEKPO-LOEKZ) is updated but after saving the SA, LOEKZ is not updated in table EKPO.
I have checked EXIT_SAPMM06E_012, I cannot use it for what I want to do.
Has anyone done something like this successfully?
Any practical suggestons welcomed.
Dear,
Thanks for your reply, i changed the item category of SO line item and shedule line item in the xvbap and xvbep and i changed updkz to U. i have two item categories ( i.e YNAA and YNAB ) for YNAB system automaticallty creates Purchase requisation, If i change the item catergory in the user exit TO_VBEP . system not creating the PR for YNAB. by the time control comes to TO_VBEP user exit system already detemining shedule line and sale order line items category in XVBAP and XVBEP . if i change any thing at this place system giving error while saving .
Thanks in advance.
Regards,
Manoj
Edited by: manoj kv on Dec 26, 2010 4:40 PM
Similar Messages
-
BOM Change - Delete an item(s) and insert new line items
Hi,
We need to mass update BOMs like for some of the existing BOM's we need to delete some line items and insert new line items. We want to use the BOMMAT04 IDOC in LSMW but I'd like to know couple of things before I go ahead with that approach
For instance, I've a finished good material 12345678 and it has three components
a) Item 0010 Material 30101010 of quantity 10
b) Item 0020 Material 30101011 of quantity 11
C) Item 0030 Material 30101012 of quantity 12
Now, I'd like delete Item 0010 and add a new item 0040 Material 30101013 of quantity 13.
In the segment E1STKOM, there is LOEKZ (Deletion Flag) but I dont want to flag for deletion but instead delete the whole line item and add a new line item.
Is there any way to achieve this using BOMMAT04 IDOC? If not, can you please suggest me a better way to do it
Any help is greatly appreciated
Thanks,
SrinivasDear Srinivas,
1.IF you want to change for an individual BOM,use CS02,select the item which you want to delete,select the entire and click on
delete button and then add new line items and save.
2.For Mass changes of BOM you can use CS20.
3.Check these functional module's also if you want to change using a report,
CS_BI_BOM_CHANGE_BATCH_INPUT Change bill of material via batch input
CSEP_MAT_BOM_SELECT_CHANGE API Bills of Material: Select BOM(s)
CS_CL_P_BOM_MASS_CHANGE
CS_CL_S_BOM_CHANGE_COMPLETE
Check and revert back,.
Regards
Mangalraj.S -
Block creation of new line item in SO
Hi,
Scenario:
In the sales order, the order quantity of line item 10 is 10pcs, only 5pcs is shipped. I want to allow the remaining 5pcs to be able to ship at some other time. However, no modification is allowed in the order quantity of this line item 10. Also, no addition of new line item in this sales order.
Question:
How to block creation/addition of new line item or block modification in the order quantity of the existing line item, but allow the existing line item to be shipped in a sales order?
Thanks.Hi Wooi,
You can control through User authorisation, you maintain the authorisation for VA02 for the specific User with the help of BASIS people.
If you donot want maintain the authorisation you need to activate the User Exit for the with the help of ABAPer.
You can use these User exits.
The program is MV45AFZZ
USEREXIT_READ_DOCUMENT
USEREXIT_SAVE_DOCUMENT
USEREXIT_SAVE_DOCUMENT_PREPARE
I hope it will help you
Regards,
Murali. -
SD document line items Vs FICA accounting document line items
Hello All,
What is the interface we use in SAP, between the SD and FICA which will determine line items in FICA document with regard to SD line items.
SD : How we do configuration or mapping between sd sales order and billing document to determine billing document line items based on sales order line items ( for example : material group, profit center, cost center ?)
FICA: what interface / Configuration we use to determine how many line items should appear in the FICA document based on billing document line items.
Regards,
John.Integeration of SD to FICA is based on the img settings done under the node - SPRO - Financial accounting ( new ) - Contract accounts receivable and payable - integration - Sales and distribution .
Creation of FICA document based on SD is routed through the event 4000 and the details are detrived through event 4030 .
Would suggest you to go through events 4000 and 4030 .
Regards ,
Dewang -
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 -
Bapi to copy the PO line item below the existing PO line item
Hi All,
I am new to work on BAPI, Can any one help me out,
Requirement is to copy the PO line item below the existing PO line item (Replicate the line item for returns purpose) . So is there any bapi to do this task.
Thanks in Advance
Pallavi
Moderator Message: Please employ the SAP procedures to identify the right BADIs and Exits and help yourself.
Edited by: kishan P on Nov 16, 2010 1:56 PMHi,
What i think is you should use two BAPI one is BAPI_PO_GET_DETAIL to fetch existing details of line items and then BAPI_PO_CHANGE to create s second one.
Nabheet -
Multiple line item not appearing in vendor line item in FB60
Hi
I am posting FB60 accounting entry. I am deducting WHT on the invoice.
For ex: Expense amount - Rs. 100000, WHT - 10000
Hence accounting entry is posted:
Expenses A/c.. Dr 100000
To TDS Payable 10000
To Vendor A.c 90000
Now when i see vendor line item in FBL1N there is only one credit line item for Rs.90000.
But my requirement is that, vendor line item report should include two line item:
One for vendor credit i.e. Rs.100000 and one debit for TDS payable for Rs. 10000 and not single line item for Rs.90000
Please let me know how can i get this. Is there any standard report for the same?Hi friend,
unfoortunately the system doesn't post debit for vendor in this case. You have no report to display line items that wasn't posted.
would you like have it:
31 - Vendor ... 10,000.00
25 - Vendor............1,000.00 *
40 - expense .......10,000.00
50 - WHT ..........1,000.00
The standard automatic WHT post directly the invoice amount to vendor account like this:
31 - Vendor ... ...9,000.00
40 - expense ........10,000.00
50 - WHT ...........1,000.00
Tell about your business process. What are you doing for ?
regards -
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 -
WH tax line items cleared along with Other line items Message no:8I701
hI guru,
When i run J1INCHLN System givem the error is : Withholding tax line items cleared along with other line items, message no:8I701
Pleas any one give solution ..
I also cheked as respective g/l for tds IN FBL3N . All line items are opend.
Also cheked all selection parameter in J1INCHLN and FBL3N .is same .
Why the sys behaviour like this .
Thanks is andvance
MilindHI,
he error is occuring in this part of the
unction Module J_1IEWT_CHALLAN_UPDATE
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
LOOP AT p_t_ausz1.
Select the cleared line item from bseg table.
SELECT SINGLE * FROM bseg INTO p_bseg_tab
WHERE bukrs = p_t_ausz1-bukrs
AND belnr = p_t_ausz1-belnr
AND gjahr = p_t_ausz1-gjahr
AND buzei = p_t_ausz1-buzei
AND ktosl = 'WIT'
AND qsskz NE space .
IF sy-subrc <> 0.
This is not an ewt clearing transaction relevant for challan update.
p_no_with_clear = 'X'.
EXIT.
ELSE.
APPEND p_bseg_tab.
ENDIF.
ENDLOOP.
Even if one line item chosen is not of withholding tax entry, system
should exit by error message.
DESCRIBE TABLE p_bseg_tab LINES p_bseg_lines.
DESCRIBE TABLE p_t_ausz1 LINES p_with_lines.
IF p_bseg_lines > 0.
At least one entry is found in bseg table for challan update. IF p_with_lines NE p_bseg_lines.
At least one line chosen by the user is not for challan updation.
MESSAGE e701(8i).
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.
This is a clear case,that you are trying to post some documents
which does not match with the selection parameters.
I feel the above problem could be due to some document/s (open items of
the earlier years)are incorrect which is causing the reported problem.
Kindly run the challan update program for smaller date range so that you
can find the faulty document.
Hope this solves your query.
Reg
Madhu M -
Error message: Missing line item for CO-PA characteristic line 0000000001
Hello, when posting is being done in automatic we are getting the following error message RW621 : 'Missing line item for CO-PA characteristic line 0000000001' and the document is not being created. I've filled in correctly the cost center / profit center for the line items. Any idea on why i'm getting this message?
Hello Prashanth ,
there are 2 structures I think you should fill
CRITERIA (ref structure BAPIACKEC9 )
VALUEFIELD( ref STRUCTURE BAPIACKEV9) in BAPi_ACC_DOCUMENT_POST
hope this helps... -
Issue in creation of new line item in repair order-Reg
Hi all,
I have a query in Service Management Module of SAP while working in standard IDES System.
I followed the procedure given in the IDES material.
As per the standard system the fourth line item in the repair order should be automatically created, once the service order is technically confirmed and completed. In my case iam able to get the first three (Item Categories - IRRS,IRRE,IRRP) line items but even after completing the service order technically iam not gettin the fourth line item (IRAL). Only based on the Fourth line item we can create the Outbound delivery for the repaired item. After that the billing process need to be processed. My query is how to get the fourth line item automatically in the repair order after i technically complete the Service Order.
To brief you on the entire process that i have followed:
1. The QM Check need to be activated for the material.
2. Creating the Service Notification and the repair request.
3. Posting the GR of a piece of equipment to be repaired.
4. Processing the technical check.
5. Displaying the repair request and the service order.
6. Editing the Service Order.
7. Processing and Confirming the Service Order.
8. Technically Completing the Service Order.
9. Delivering the Repaired Piece of Equipment.
Then Comes the BILLING.....
In the above, after the eighth Step the Fourth Line item will be created automatically created but it DOESNT....
regards
VenuHi ,
Review your repair procedure and copy controls defined for this stage...mya be some thing is missing over there causing this behaviour.
As you told completion of Service order will determine the last item and enable us to delivery the item to customer...
Thanks,
sudhi -
Add New Line item while creating a new PO in ME21N
Hi All,
I have a requirement to add a new line item when user is pressing enter on the Line item 1 based on some condition.
I am using the BADI 'ME_PROCESS_PO_CUST' and Method is 'PROCESS_ITEM'.
I have tried lots of options and also look for method 'Create_Item ' but not able to understand what exactly I need to pass in that method.
Can somebody elaborate on it if somebody has work on it? Even sample code will also help me.
Thanks in advance.
With regards
Sachin GuptaHi Sachin,
Please find the sample code :
METHOD if_ex_me_process_po_cust~process_item .
DATA: ls_mepoitem TYPE mepoitem,
ls_customer TYPE mepo_badi_exampl,
ls_tbsg TYPE tbsg.
* here we check customers data
ls_mepoitem = im_item->get_data( ).
IF ls_mepoitem-loekz EQ 'D'.
* a physical deletion of the item was carried out. therrefor we have to
* delete customer data on the level of the item
ls_customer-ebeln = ls_mepoitem-ebeln.
ls_customer-ebelp = ls_mepoitem-ebelp.
CALL FUNCTION 'MEPOBADIEX_SET_DATA'
EXPORTING
im_data = ls_customer
im_physical_delete_request = 'X'.
ELSE.
* update/insert operation
CALL FUNCTION 'MEPOBADIEX_GET_DATA'
EXPORTING
im_ebeln = ls_mepoitem-ebeln
im_ebelp = ls_mepoitem-ebelp
IMPORTING
ex_data = ls_customer.
* check customers data
* check field badi_bsgru. This should be carried out only for new items. Once the PO is posted the
* field should no longer be changeable. This is done in Method FIELDSELECTION_ITEM.
IF im_item->is_persistent( ) EQ mmpur_no.
IF ls_customer-badi_bsgru IS INITIAL.
* Place the cursor onto field badi_bsgru. The metafield was defined in BAdI ME_GUI_PO_CUST,
* Method MAP_DYNPRO_FIELDS.
mmpur_metafield mmmfd_cust_01.
mmpur_message_forced 'W' 'ME' '083' text-002 '' '' ''.
ELSE.
* check whether the field is valid
SELECT SINGLE * FROM tbsg INTO ls_tbsg WHERE bsgru EQ ls_customer-badi_bsgru.
IF NOT sy-subrc IS INITIAL.
mmpur_metafield mmmfd_cust_01.
mmpur_message_forced 'E' 'ME' '083' text-004 '' '' ''.
* invalidate the object
CALL METHOD im_item->invalidate( ).
ENDIF.
ENDIF.
ENDIF.
Try to check the import and export paremeters to pass the vales.
I hope this may helpfull.
Thank you,
Thanks,
AMS -
Create new line item while saving a new order
I have a requirement to create a new line item with different item category while creating an order.
i.e
if the item category is ICT1, then create a new line item like item 1 but with item category ICT2.
Also in the conditions tab, we need to update the condition type with different values for both existing and new item.
All this has to be in VA01 i.e on save.
I tried to append lines of structure XVBAP at SAVE_DOCUMENT _PREPARE by changing the item no and item caegory. This works fine. But, how can I get other table details like XKOMV(which stores pricing condition details) for the new item?
Please can you suggest any other exit/subroutine for this?
or any other alternative solutionsHi,
Try to use this EXIT:
'EXIT_SAPMM06E_013' Update Customer's Own Data in Purchasing Document
The Badi and exit contains same parameter.
Thanks,
AMS -
Change Transfer Order Line Items during Creation
Hi All,
I have a requirement wherein it is necessary to change the Line item (LTAP) of a transfer order , during its creation.
I had a look at exits - MWMTO001 (EXIT_SAPLL03T_001) . But it is not useful in our case as the TO is already created before the control is passed over to the user-exit.
Our requirement is that, if the source qty in alternate unit of measure (LTAP-VSOLA) contains a decimal value i.e. if LTAP-VSOLA = 2.500 CAR ( Carton is the alternate unit of measure ), then the TO line must be split into two lines and the qty must be distributed as 2 CAR and 6 EA ( Each is the Base unit of Measure ), considering that 1 CAR = 12 EA.
I tried searching for any FM/BAPI for changing TO's, so that it can be used in the above exit after TO creation, but could not find any . Any suggestions to over come this will be highly appreciated.
Thanks & regards,
SandeepHi Jurgen,
You are right. The system does not propose TO's with different UoM's for the same material. The TO split thro configuration which you have suggested does not check for the decimal value of the quantity, but rather it takes the Qty value as a whole.
As far as I have seen , there are no user exits which can be used to influence the creation of TO line items. Let me know if u come across any of them, which can be used to modify the system determined TO lines.
Regards,
Sandeep -
WAD-Analysis Item-Poor performance for new lines
Hi.
I use WAD7 for entering new records in IP.
According to our business requirements, in analysis item properties I have defined "Number of New Lines in Planning Queries" = 50.
After that I face before extremely poor performance - it takes about 1-2 minutes until the page has loaded (note that it is empty page - only new blank rows).
When I define new lines = 1 performance is very good (2-3 sec).
Does anybody know what could be the problem ?
Thanks.Hello Andrey,
the number of new lines configured in WAD is completely unknown in the ABAP backend and has no impact on backend performance; in fact, the front end gets information about one 'line' of template cells, this costs nothing.
Checks for characteristic relationships etc. only may have significant costs for cells of the result set, not for new lines.
Whether this problem comes from the ABAP backed or form the Java stack or from the browser rendering can be checked
with an RSTT trace. Is the run time of the trace different between 1 or 50 new lines, were different backend calls recorded?
If not, the problem comes from the Java stack or from the browser rendering. One can check the latter via task manager.
To check (partially) the run time in Java and/or ABAP stack add the parameter &PROFILING=X in the url, cf. note 1048691.
Regards,
Gregor
Maybe you are looking for
-
I put in the WOT Addon, but Uninstalled it with not improvement.
-
BP_EVENT_RAISE : How do I know if the event was raised successfully ?
Hi All, I need to start a process chain after an event Z_MYEVENT. In BI7 1) For the pc Z_MYPC, the start process variant -> direct scheduling -> After Event -> specified the event Z_MYEVENT, parameter: blank 2) In SM62 under BckProcEvts I created a b
-
Trying to print booklet, but every second page printed upside down, how can I correct this? Any help appreciated.
-
I'm helping a friend with her new Mac Pro quad (latest model, 6g RAM, 1TB OEM drive, 2 extra 1TB Seagate Enterprise drives installed for storage, 24" ACD) and she can't shut it down now. Worked fine for the last week since she bought it all but now i
-
hi, pls help my requirement is that, in the case of implementing customised validation in jsf ,i have to call an xml(which is outside of our application context ) in backing bean's method using java unified expression laguage . i'm not able to parse