Automatically connecting Docs LInks to PR line item in ME51N
Hello Experts,
We are using ECC6.0 with EHP6 package and implement MM system. We got a requirement as below.
When User enter any material in ME51N and press enter , we need to automatically load the "related" DMS documents on the basis of some Business roles from the Document Server. When I checked,currently user has to click on the "Document" button and search it ,then add it..But we need to do the same thing automatically.
When I searched found that this is happening in
Class LCL_REQ_ITEM_GRID
Method LINKED_DMS_DOCUMENTS
But not understand how can we achieve our requirement..
Is it possible to achieve this in ME51N?
If Yes, how can we do ,,is there any exit present ?
Kindly let me know if any one have idea on this.
Thanks and Regards
CB
Hi Channappa,
Object linking in ME51N works as follows. You can link DIR's to Line item and not material.
Both linking are done in different ways.
You link following documents to a material master such as design Drawing, Maintainence procedure, Manuals and drawing which is specific to a material.
You link following documents to Purchase order or PR line item which various with every PRor PO such as Material Specifications, Detail Design or internal design document.
Now you can attach same documents to PR/PO line item or Material master based on your business.
If you want automatic apply all DIR linked to Line item in PR/PO, Then this is not possible through standard fucntionality.
My Solution-Wild Guess. Check if on Save you have any BADI ot User exit in PR/PO. You can create a FM which will run on save and fetch all Material Line items and apply all Object links from Material Master to Line item. For this you need to go through BAPI's available for SAP DMS.
Hope this helps you.
With Warm Regards
Mangesh Pande
Similar Messages
-
Automatic Service Order creation and OBD line item creation - Repair Order
Hi ALL,
I tried to run the Repair process based on the help document of SAP:
Configs Followed:
1) In Material master MRP3 view, strategy group is assigned as 84 (service orders). By default this str.grp is linked with Requirement type SERA and Requirement class 203.
2 ) Requirement class is assigned with appropriate Service order type.
SPRO>Sales and Distribution>Basic Functions>Availability Check and Transfer of Requirements>Transfer of Requirements-->Define Requirements Classes (OVZG)
Actual Assignment:
Reqt. Class Service Order Type
039 SM01
203 SM01
3) Task list is assigned to your Service material - Service product - OISD
Actual Assignment:
Service Pdt Work Centre Plant B Area Gen TL Group Counter Task List Type
R-1001 PC-SERV 1200 8000 62 1 A
4) Check the Requirement class setting indicator for configuration (cnfg)
Actual Assignment:
= mandatory
5) SPRO>Sales and Distribution>Basic Functions>Availability Check and Transfer of Requirements>Transfer of Requirements-->Define Requirements Classes --> Determination Of Requirement Types Using Transaction
Actual Assignment:
Item Category Reqt class Reqt. Type
IRRS 039 SE
IRRE 203 SERP
IRRP 203 SERP
IRAL 040 KE
6) Sales and Distribution>Sales>Sales Document Item-->Assign Item Categories for determining the item category based on usage
Actual Assignment:
Sal. Doc. Type Item Cat. Group Item Usage H. L . Item Cat Item Category
RAS NORM IRRS
RAS NORM R101 IRRS IRRE
RAS NORM R102 IRRS IRRP
RAS NORM R103 IRRS IRAL
Errors Faced:
1. Service Order is not getting created automatically.
Error in SAP - IDES :"A service order has not been found for action 'Repairs'"
2. Also im not getting the automatic creation of the 4th line item(Item Category - IRAL) in the repair order, which in turn stops me from creating the Outbound delivery.
Please HELP !
RegardsHi PeteA,
Sorry, here it is...
Let me explain the process that has been followed:
1) Initially to start with Service Notification was created with IW51 T-code.
In that, Sold to party and material # were entered. Then from there directly i go for Create Repair Order from the Action Box.
Order type for repair order - RAS, and when i save both Service Notification and the Repair gets saved.
Now, in the repair order, two line items were getting created automatically and the requirement Types for those line items are:
Line Item I : SE
Line Item II: SERP
2) After that i take the material in with the help of t-code VRRE.
3) Then, i do the acceptance of the stock ( Technical Check) with t-code QA11.
Once i do that, i get the Third line item in the Repair Order and the requirement Type for that line item is:
Line Item III: SERP
Now my query is, Once i do the QA11 transaction i need to get a Service Order automatically but thats not happening.
Also if i create a Service Order manually, and do the repair and do the technically completion of the service order, then i need to get a third line item (IRAL) in the repair order automatically and thats also not happening.
Regards -
What is the direct link between Schedule Line item and Delivery line item?
Hi SAP SD Gurus,
The question is simple. I would like to calculate the Open order quantity for a particular month based on the Schedule Line Date.
I am taking all the Schedule lines falling below the running date of the month and sum up that and look for the deliveries happened for that Schedule lines.
I am unable to link that Schedule line with that Delivery line item.
The only link is Schedule Line Number in VBEP table which is not available in LIPS. I would like sum up the Schdule line Quantities and Subtract the sum of the Delivery quantities which will give me the Open orders for the particular day of the month.
Can anyone help me to link this VBEP table to LIPS table to connect the Schedule line number with the Delivery line item?
Thanks in advance for your help..
AugustineAnuj,
I am aware of the Functional Modules.
I wanted to know for this Schedule Line, this is Delivery document created.
Where in SAP through Tables it is linked? Because, I need to source the Tables to calulate the open orders by way of external report through Business Object.
The table link from VBEP to LIPS is not directly linked. It is linked from Sales order line item level. Because we are capturing all the Sales order Line tiems through the Delivery Status which is not equalled to C. But if there are partial deliveries against the Scheuld Line item level, we need to identify. The only common joint should be Scheldule line number which is not available in LIPS.
If we are developing report inside SAP, we can use the said Functional Modules to capture through Structures VBEPD. Since it is a external reporting , we need to give correct tables and the joints. Hence I am looking for any other way to solve this.
Thanks
Augustine Ponraj -
Link between delivery line item and sales order item schedule line.
Hello friends,
This is a continuation of my earlier query - for which I got half the solution, and this is the remaining problem.
I want to know: from delivery document line item, how to link it to sales order line item's schedule line (when there are multiple schedule lines with identical quantities).
Thanks for your help.
- ChetanThis is the code which i used for the same purpose and its working.
Hope this will help you too....
****it_itab is my final internal table.
*Internal table for manupulating the Delivery balance when
*its used in more than one schedule line
TYPES: BEGIN OF ty_new,
vbeln TYPE vbep-vbeln," so no
posnr TYPE vbep-posnr," so line no
etenr TYPE vbep-etenr," schedule line
delno TYPE lips-vbeln,"delivery no
delposnr TYPE lips-posnr,"del item no
totval TYPE vbep-wmeng," total del wise value
val TYPE vbep-wmeng," del wise used value
sdval TYPE vbep-wmeng,"schedule wise del used value
sdtotval TYPE vbep-wmeng," total Schedule value
END OF ty_new.
DATA:it_new TYPE ty_new OCCURS 0,
wa_new TYPE ty_new.
DATA: it_vbepvb TYPE TABLE OF vbepvb,
wa_vbepvb LIKE LINE OF it_vbepvb,
fvbfa TYPE TABLE OF vbfa,
fvbup TYPE TABLE OF vbup,
fvbap TYPE TABLE OF vbapvb.
LOOP AT it_vbak INTO wa_vbak.
LOOP AT it_vbap INTO wa_vbap
WHERE vbeln = wa_vbak-vbeln.
SELECT * FROM vbfa INTO TABLE fvbfa WHERE vbelv = wa_vbap-vbeln
AND posnv = wa_vbap-posnr.
SELECT * FROM vbup INTO TABLE fvbup WHERE vbeln = wa_vbap-vbeln
AND posnr = wa_vbap-posnr.
SELECT * FROM vbap INTO TABLE fvbap WHERE vbeln = wa_vbap-vbeln
AND posnr = wa_vbap-posnr.
SELECT * FROM vbep INTO TABLE it_vbepvb WHERE vbeln = wa_vbap-vbeln
AND posnr = wa_vbap-posnr.
CALL FUNCTION 'RV_SCHEDULE_CHECK_DELIVERIES'
EXPORTING
fbeleg = wa_vbap-vbeln
fposnr = wa_vbap-posnr
FVERRECHNUNG = ' '
FS073_ALT = ' '
IF_NO_SORT = ' '
TABLES
fvbfa = fvbfa
fvbup = fvbup
fxvbep = it_vbepvb
FVBLB =
fvbap = fvbap
EXCEPTIONS
FEHLER_BEI_LESEN_FVBUP = 1
FEHLER_BEI_LESEN_FXVBEP = 2
OTHERS = 3
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
SORT it_vbepvb BY vbeln posnr edatu.
LOOP AT it_vbepvb INTO wa_vbepvb
WHERE vbeln = wa_vbap-vbeln
AND posnr = wa_vbap-posnr.
to write data of schedule line with no delivery
MOVE wa_vbepvb-olfmng_flt TO wa_itab-openqty.
IF wa_vbepvb-bmeng EQ wa_itab-openqty.
CLEAR wa_itab.
PERFORM schedule_data. "schedule line based data to be displayed
MOVE: wa_vbap-lgort TO wa_itab-lgort.
MOVE: wa_vbepvb-etenr TO wa_itab-etenr,
wa_vbepvb-bmeng TO wa_itab-kwmeng,
wa_vbepvb-olfmng_flt TO wa_itab-openqty.
APPEND wa_itab TO it_itab .
CLEAR wa_itab.
ENDIF.
LOOP AT it_vbfa INTO wa_vbfa WHERE vbelv = wa_vbepvb-vbeln
AND posnv = wa_vbepvb-posnr.
READ TABLE it_likp INTO wa_likp WITH KEY vbeln = wa_vbfa-vbeln.
CHECK wa_likp-bldat >= wa_vbepvb-edatu.
check the Delivery doc date with the schedule line confirmed date
CLEAR: delbal, deltot,wa_new.
LOOP AT it_new INTO wa_new WHERE vbeln = wa_vbepvb-vbeln
AND posnr = wa_vbepvb-posnr
AND etenr = wa_vbepvb-etenr.
deltot = deltot + wa_new-sdval.
ENDLOOP.
delbal = wa_new-sdtotval - deltot.
CHECK sy-subrc <> 0 OR delbal GT 0.
MOVE wa_vbepvb-olfmng_flt TO wa_itab-openqty.
CHECK wa_vbepvb-bmeng NE wa_itab-openqty.
****To check whether this delivery is already fully allocated against
any other schedule.
LOOP AT it_lips INTO wa_lips WHERE vbeln = wa_vbfa-vbeln
AND posnr = wa_vbfa-posnn.
MOVE: wa_likp-bolnr TO wa_itab-vesname.
MOVE: wa_likp-vbeln TO wa_itab-delno.
MOVE: wa_likp-wadat TO wa_itab-wadat.
MOVE: wa_likp-anzpk TO wa_itab-anzpk.
MOVE: wa_likp-lddat TO wa_itab-lddat.
MOVE: wa_likp-ernam TO wa_itab-ernam.
******end of code added by IVL1 on sep 27 2007 #3618
PERFORM schedule_data.
IF wa_lips-umvkz <> 0.
tempquant = wa_lips-umvkn / wa_lips-umvkz.
ELSE.
tempquant = wa_lips-umvkn. "delivery qty
ENDIF.
tempquant = tempquant * wa_vbfa-rfmng.
***New logic added to get delivery qty schedule wise****
MOVE: wa_vbepvb-etenr TO wa_itab-etenr,
wa_vbepvb-bmeng TO wa_itab-kwmeng,
wa_vbepvb-olfmng_flt TO wa_itab-openqty. "jo
**if delivery qty is less than or equal to schedule line qty******
IF tempquant LE wa_vbepvb-bmeng.
wa_itab-delqty = tempquant.
LOOP AT it_new INTO wa_new WHERE vbeln = wa_vbepvb-vbeln
AND posnr = wa_vbepvb-posnr
AND etenr = wa_vbepvb-etenr
AND delno = wa_lips-vbeln
AND delposnr = wa_lips-posnr.
MOVE-CORRESPONDING wa_itab TO wa_new.
wa_new-delposnr = wa_lips-posnr.
wa_new-val = tempquant.
wa_new-totval = tempquant.
wa_new-sdval = tempquant.
wa_new-sdtotval = wa_vbepvb-bmeng.
MODIFY TABLE it_new FROM wa_new .
IF NOT sy-subrc IS INITIAL.
APPEND wa_new TO it_new.
ENDIF.
ENDLOOP.
IF sy-subrc <> 0.
MOVE-CORRESPONDING wa_itab TO wa_new.
wa_new-delposnr = wa_lips-posnr.
wa_new-val = tempquant.
wa_new-totval = tempquant.
wa_new-sdval = tempquant.
wa_new-sdtotval = wa_vbepvb-bmeng.
APPEND wa_new TO it_new.
ENDIF.
wa_itab-delqty = tempquant.
CLEAR tempquant.
ELSE.
lips qty > so schedule lineqty
CLEAR deltol.
LOOP AT it_new INTO wa_new WHERE vbeln = wa_vbepvb-vbeln
AND posnr = wa_vbepvb-posnr
AND etenr = wa_vbepvb-etenr
AND delno = wa_lips-vbeln
AND delposnr = wa_lips-posnr.
deltol = deltol + wa_new-val.
ENDLOOP.
LOOP AT it_new INTO wa_new WHERE vbeln = wa_vbepvb-vbeln
AND posnr = wa_vbepvb-posnr
AND delno = wa_lips-vbeln
AND delposnr = wa_lips-posnr.
MOVE-CORRESPONDING wa_itab TO wa_new.
wa_new-val = wa_new-totval - deltol.
wa_itab-delqty = wa_new-val.
wa_new-delposnr = wa_lips-posnr.
wa_new-totval = tempquant.
wa_new-sdval = wa_new-val.
wa_new-sdtotval = wa_vbepvb-bmeng.
MODIFY TABLE it_new FROM wa_new .
IF NOT sy-subrc IS INITIAL.
APPEND wa_new TO it_new.
ENDIF.
ENDLOOP.
IF sy-subrc <> 0.
MOVE-CORRESPONDING wa_itab TO wa_new.
wa_itab-delqty = wa_vbepvb-bmeng.
wa_new-delposnr = wa_lips-posnr.
wa_new-val = wa_vbepvb-bmeng.
wa_new-totval = tempquant.
wa_new-sdval = wa_vbepvb-bmeng.
wa_new-sdtotval = wa_vbepvb-bmeng.
APPEND wa_new TO it_new.
ENDIF.
ENDIF.
IF NOT wa_lips-lgort IS INITIAL.
MOVE: wa_lips-lgort TO wa_itab-lgort.
ELSE.
MOVE: wa_vbap-lgort TO wa_itab-lgort.
ENDIF.
APPEND wa_itab TO it_itab .
CLEAR wa_itab.
ENDLOOP.
ENDLOOP.
CLEAR wa_vbepvb.
ENDLOOP.
ENDLOOP.
CLEAR wa_vbak.
ENDLOOP. -
BAPI_BILLINGDOC_CREATEMULTIPLE, creating a Bill doc with a single line item
Hi there,
I am trying to create a Billing document with reference to Sales document using this BAPI (BAPI_BILLINGDOC_CREATEMULTIPLE)
..but the generated billing document is creating only single line item where as the original Sales document is containing a Two line items, ie. 1 main line item an a Sub line item for this .
I am passing the Values mentioned below..
As per requirement is need to create a Pre invoice or a Proforma with Provided Sales Document.
it_billingdata_in-ORDBILLTYP = Proforma/Preinvoice
it_billingdata_in-REF_DOC = Reference Sales doc number
it_billingdata_in-REF_DOC_CA = Reference Sales document category('C').
Can some one please suggest any thing else do i need to pass apart of these field..
Appreciate of some one answer me.
thanks
SrinivasHi Srinivas,
You need to loop on the internal table 'it_billingdata_in' based on the Sales Order line items and pass the value to 'it_billingdata_in-REF_ITEM' for every line item of the Sales Order.
Hope this helps.
Regards,
Pranav. -
Adobe form link in all line items
Hi,
I have a tipical requirement in WDA Adobe forms.
In a list of material line items, when ever click on any one of the items it should have link to the another adobe form depends on material type.
In this case we have 3 types of material types.So, here i have 3 different forms.
So, depends on this material type that each item should have to link with any of these 3 forms.
How can we do this?
Thanks and Regards,
Prabhakar DharmalaHi,
Use get attribute to get the value from context element and pass it to IF_WD_NAVIGATION_SERVICES~DO_DYNAMIC_NAVIGATION
Provide the following parameters to get the navigation link:
SOURCE_PLUG_NAME
PLUG_PARAMETERS = attribute value(which u want to provide link)
TARGET_COMPONENT_NAME
TARGET_PLUG_NAME
REWARD points..:-) -
How to connect DMS with sales order line items
Hi
Our client wants to attach some documents in sales oder line items. They have a DMS system in place but how can we connect that to sales order is the quastion. Can you please suggest?Hi shrivastava,
At first you have to create document in CV01n transaction with document type BVV ( as per standard) and add attachments
Now in VA02, select line item-->EXTRAS--->DOCUMENT, find the document number created in CV01n and click on add
system will add the attachment to sales order
regards,
santosh -
Automatic Discount for a combination of Line Items
Dear Gurus,
In my clients place they have some material with different colour. Like Pens in Black, Red, Green and so on..
Now the requirement is to give discounted price for every 10 pcs. of any colour. If customer takes 3 line items of Pens
like: 4 Black Pens + 4 Red Pens + 2 Green Pens making total 10 Pens, then system should give discount of Rs.10 for the Black pen and Rs.12 for all the other colours.
I remember seeing similar issue in this forum some days earlier but was not able to trace it. On the whole let me recapitulate what I said:
If customer buys a total of 10 pens of any colour, different discounts has to be given based on the colour selected.
If Black, discount is Rs.10,
Any other colour, discount is Rs.12
Please help me in this.
Regards.
VenkatHi Venkat
I have got a suggestion, Please try it ,I hope it will work.
You have 3 Pen, let those be A, B & C of three different colour.
Try with following steps.
1. First check the Material Masters of all the Materials A,B & C .
Check the "Material Pricing group" in the "Sales org 2" tab page of those Material. If the material pricing groups are same for all the material then it should work.
So if, not same then make it same if possible and try.(I hope they must be same as all materials are pen and only their colours are different).
2. Create Material Discount(K004) Condition Record for each Material and put the rate of discount as required in your organisation.
3. Go to T.code V/06, Condition type screen in IMG for condition type K004.
Activate the "Group Condition " check box.
Beside this, you will find another check box " Group condition Routine". Put the value "3" there from the drop down.
Now you can try,make the condition records and the scale properly,try for different scales . I am sure your problem will be solved here.
Regards
Pradyumna -
Reset Cleared Doc - Balance of the line item is not zero" Message no. F5136
I have this error : Balance of the line item is not zero" Message no. F5136
This error arise when we tried to reset cleared document dated June 6,2007 during data migration from Legacy system to SAP.
We wanted to reset this cleared document because it was wrong executed (cleared) way back 2007.
The entries are:
Debit to GL (B/S) --> 3,758.48
Credit (1100039-Vendor) with special GL (408319) --> 3,758.48
=====================================================
For us to correct the clearing, we need to reset first the cleared document via FBRA, however, this error arise saying "Balance of the line item is not zero" with Message no. F5136.
I read several posted issue here, however, it doesn't resolve my problem.
Hoping to hear from your inputs on this problem.
Regards,
macalongeDear:
SAP Note 400530 - FBRA - F5136: Balance of line items not zero
describes your issue as
Summary
Symptom
A payment using a payment card fails, in other words, the payment is reversed using Transaction FBRC where the customer or vendor item is reopened.It is not possible to reset a payment document posted again for the open customer or vendor item by using Transaction FBRA, "Reset Cleared Items" and it responds with the error message "Balance of the line items is not zero".
Other terms
Error message F5136, FBRA, FBRC, payment cards
Solution
A solution is available in the Support Package for Release 4.0B and 4.6C. An advance correction is possible. The solution consists of a repair report, so that the current payment document can be reset by means of 'Reset Cleared Items', and of a correction.
1. Repair-report ZREPAIR_BSEGC_FBRA:Create it temporarily as a test report using Transaction SE38. First the current payment/clearing document must be cleaned up of payment card data by means of the repair-report. Afterwards you can reset the payment document by means of 'Reset Cleared Items'. The report takes the current payment document as a parameter. In this case only changes are made to the database if the option "DO_UPD" is set.
2. Advance correction:Supplement the interface for function module CREDIT_CARD_POST_REFUSAL with table parameter T_BSEG with reference type BSEG. The following describes the procedure in more detail.
a) Transaction SE37: Enter function module CREDIT_CARD_POST_REFUSAL and choose "Change".
b) On the "Tables" tab page, create parameter T_BSEG with reference to structure BSEG.
c) Save and activate the function module.
3. After you implemented the correction or the R/3 Support Packages valid for this note, read Note 450081 to avoid the unwanted deletion of payment card data.
Hope it will help
Regards -
Link between Delivery Line Item to DTR Line Item to Freight Unit Number?
Dear All,
I am creating DTR with reference to delivery from ECC. As per my logic in FUBR, I am creating separate Freight Unit for every DTR line item.
Now how to identify (At Table Level) that which DTR line item belongs to which Delivery Line Item?
Also how to determine which Freight Unit belongs to which DTR Line item?
Request to please share the above flow at table level in SAP TM System.
Regards,
Vibhu GuptaHi Vibhu,
First, you know which DTR item you have on hand and then you can find the corresponding FU item by association(TOR ITEM from TRQ item to FU item), after retrieving the data of FU item you can find the root key of every result data entry(FU item data) and you can also get the DTR item key/FU item key pair(which DTR item/which FU item), actually the root key is the FU root key, then you can user service manager to retrieve the root data of corresponding FU root key.
Hope this helps.
BR, Dawson -
Clearing field data for new line item in me51n PR Creation
hello everyone!!
As you can see from the below picture, i have created some custom fields which are to be fillup during PR creation. now when user trying to create a second line item under a PR then those custom fields are holding previous value. But it should be blank.
please help.
best regards.Please uncomment this:
ORDER_ITEM_INX-target_qty = 'X'.
You can check the 2nd example in this link for your reference.
http://sap4.com/wiki/index.php?title=BAPI_SALESORDER_CHANGE
Regards,
Naimesh Patel -
Error whil creating Service Line item in ME51N using BAPI_PR_CREATE
Hi Experts,
Am able to create PR number using BAPI_PR_CREATE, but when am trying to create Service line item am getting acc assignment error please check my code and solve my issue. ..its very adj please help me .
DATA : t_bapimereqitemimp TYPE TABLE OF bapimereqitemimp ,
t_bapimereqaccount TYPE TABLE OF bapimereqaccount,
t_bapimereqaccountx TYPE TABLE OF bapimereqaccountx,
t_pritemx TYPE TABLE OF bapimereqitemx,
wa_bapimereqitemimp TYPE bapimereqitemimp,
pr_number TYPE bapimereqheader-preq_no,
wa_prheader TYPE bapimereqheader,
wa_prheaderx TYPE bapimereqheaderx,
wa_pritemx TYPE bapimereqitemx,
wa_bapimereqaccountx TYPE bapimereqaccountx,
wa_bapimereqaccount TYPE bapimereqaccount,
t_return TYPE TABLE OF bapiret2,
wa_return TYPE bapiret2.
DATA : t_bapi_srv_limit_data TYPE TABLE OF bapi_srv_limit_data,
wa_bapi_srv_limit_data TYPE bapi_srv_limit_data.
DATA servicelimitx TYPE TABLE OF bapi_srv_limit_datax.
DATA w_servicelimitx TYPE bapi_srv_limit_datax.
DATA : t_servicelines TYPE TABLE OF bapi_srv_service_line,
w_servicelines TYPE bapi_srv_service_line,
t_servicelinesx TYPE TABLE OF bapi_srv_service_linex,
w_servicelinesx TYPE bapi_srv_service_linex,
t_bapi_srv_acc_data TYPE TABLE OF bapi_srv_acc_data,
w_bapi_srv_acc_data TYPE bapi_srv_acc_data,
t_bapi_srv_acc_datax TYPE TABLE OF bapi_srv_acc_datax,
w_bapi_srv_acc_datax TYPE bapi_srv_acc_datax.
DATA : t_bapimereqitem TYPE TABLE OF bapimereqitem,
w_bapimereqitem TYPE bapimereqitem.
DATA : t_bapimereqitemx TYPE TABLE OF bapimereqitemx,
w_bapimereqitemx TYPE bapimereqitemx.
wa_prheader-pr_type = 'RV'."lv_doc_type.
wa_prheaderx-pr_type = 'X'.
wa_bapimereqitemimp-preq_item = '1'."wa_eban-item.
wa_bapimereqitemimp-pur_group = '100'."wa_eban-ekgrp.
wa_bapimereqitemimp-preq_name = 'E.R. TITTO'."wa_eban-afnam.
wa_bapimereqitemimp-short_text = 'AC Fitting'."wa_eban-txz01.
wa_bapimereqitemimp-material = ' '."wa_eban-matnr.
wa_bapimereqitemimp-plant = '1000'."wa_eban-werks.
wa_bapimereqitemimp-store_loc = 'ST00'."wa_eban-lgort.
wa_bapimereqitemimp-matl_group = 'Z13'."wa_eban-matkl.
wa_bapimereqitemimp-quantity = '1'."wa_eban-menge.
wa_bapimereqitemimp-unit = 'AU'."wa_eban-meins.
wa_bapimereqitemimp-deliv_date = '20140604'."wa_eban-lfdat.
wa_bapimereqitemimp-preq_price = '100'."wa_eban-preis.
wa_bapimereqitemimp-item_cat = 'D'."wa_eban-pstyp.
wa_bapimereqitemimp-acctasscat = 'K'."wa_eban-knttp.
wa_bapimereqitemimp-fixed_vend = ' '."wa_eban-flief.
wa_bapimereqitemimp-purch_org = '1000'."wa_eban-ekorg.
wa_bapimereqitemimp-currency = 'INR'."wa_eban-waers.
wa_bapimereqitemimp-pckg_no = '00000001'.
wa_bapimereqaccount-preq_item = '1'."wa_eban-item.
*wa_bapimereqaccount-serial_no = '01'.
wa_bapimereqaccount-gl_account = '0000002244'."wa_eban-sakto.
wa_bapimereqaccount-costcenter = 'OPSD'."wa_eban-kostl.
APPEND wa_bapimereqitemimp TO t_bapimereqitemimp.
APPEND wa_bapimereqaccount TO t_bapimereqaccount.
wa_pritemx-preq_item = '1'."wa_eban-item.
wa_pritemx-pur_group = 'X'.
wa_pritemx-preq_name = 'X'.
wa_pritemx-short_text = 'X'.
wa_pritemx-material = 'X'.
wa_pritemx-plant = 'X'.
wa_pritemx-store_loc = 'X'.
wa_pritemx-matl_group = 'X'.
wa_pritemx-quantity = 'X'.
wa_pritemx-unit = 'X'.
wa_pritemx-deliv_date = 'X'.
wa_pritemx-preq_price = 'X'.
wa_pritemx-item_cat = 'X'.
wa_pritemx-acctasscat = 'X'.
wa_pritemx-fixed_vend = 'X'.
wa_pritemx-purch_org = 'X'.
wa_pritemx-currency = 'X'.
wa_pritemx-pckg_no = 'X'.
wa_bapimereqaccountx-preq_item = '1'."wa_eban-item.
*wa_bapimereqaccountx-serial_no = '01'.
wa_bapimereqaccountx-preq_itemx = 'X'.
wa_bapimereqaccountx-serial_nox = 'X'.
wa_bapimereqaccountx-gl_account = 'X'.
wa_bapimereqaccountx-costcenter = 'X'.
APPEND wa_pritemx TO t_pritemx.
APPEND wa_bapimereqaccountx TO t_bapimereqaccountx.
**Service item limit
*wa_bapi_srv_limit_data-doc_item = '10'.
wa_bapi_srv_limit_data-overall_limit = '1000'.
wa_bapi_srv_limit_data-exp_value = '800'.
APPEND wa_bapi_srv_limit_data TO t_bapi_srv_limit_data.
*w_servicelimitx-doc_item = '10'.
w_servicelimitx-overall_limit = 'X'.
w_servicelimitx-exp_value = 'X'.
APPEND w_servicelimitx TO servicelimitx.
w_bapimereqitem-preq_item = '10'.
***w_bapimereqitem-preq_name = 'E.R. TITTO'.
***w_bapimereqitem-plant = '1000'.
***w_bapimereqitem-store_loc = 'ST00'.
***w_bapimereqitem-matl_group = 'Z03'.
***w_bapimereqitem-quantity = '1'.
***w_bapimereqitem-unit = 'AU'.
w_bapimereqitem-item_cat = 'D'.
w_bapimereqitem-deliv_time = '20140604'.
w_bapimereqitem-acctasscat = 'K'.
**w_bapimereqitem-consumpt = 'U'.
APPEND w_bapimereqitem TO t_bapimereqitem.
**w_bapi_srv_acc_data-doc_item = '1'.
**w_bapi_srv_acc_data-outline = '0000000001'.
*w_bapi_srv_acc_data-srv_line = '20'.
w_bapi_srv_acc_data-serial_no = '10'.
w_bapi_srv_acc_data-serial_no_item = 'D'.
*w_bapi_srv_acc_data-quantity = '1'.
*APPEND w_bapi_srv_acc_data TO t_bapi_srv_acc_data.
**w_bapi_srv_acc_datax-doc_item = '1'.
**w_bapi_srv_acc_datax-outline = '0000000001'.
*w_bapi_srv_acc_datax-srv_line = '20'.
**w_bapi_srv_acc_datax-serial_no = '01'.
**w_bapi_srv_acc_datax-serial_no_item = '01'.
*w_bapi_srv_acc_datax-quantity = '1'.
*APPEND w_bapi_srv_acc_datax TO t_bapi_srv_acc_datax.
w_servicelines-service = '00000001'.
APPEND w_servicelines TO t_servicelines.
w_servicelinesx-service = 'X'.
APPEND w_servicelinesx TO t_servicelinesx.
CALL FUNCTION 'BAPI_PR_CREATE'
EXPORTING
prheader = wa_prheader
prheaderx = wa_prheaderx
IMPORTING
number = pr_number
TABLES
return = t_return
pritem = t_bapimereqitemimp
pritemx = t_pritemx
pritemexp = t_bapimereqitem
praccount = t_bapimereqaccount
praccountx = t_bapimereqaccountx
servicelimit = t_bapi_srv_limit_data
servicelimitx = servicelimitx
servicelines = t_servicelines
servicelinesx = t_servicelinesx
serviceaccount = t_bapi_srv_acc_data
serviceaccountx = t_bapi_srv_acc_datax.Hi,
Check this Thread , Thread1 . It might help you to resolve the issue.
Thanks
KH -
Line Item text to updated automatically with current month
In this trxn, we have to always set the Posting variant every month, in spro.(set up line item text).
spro->payroll india -> Reporting for Posting Payroll Results to Accounting->Activities in the AC System->Set Up Line Item Text.
1000 Salary for the month of June08
Whatever text, we give at ID 1000, it gets updated in the accounting entries. What we require, that can it be automated , based on the payroll area/period. I mean, if I give Novu201907, then the text should be u201CSal for the month of Novu201907u201D.
PC00_M99_CIPE - Execute run
Document Date
Posting variant SAP Standard variantHI,
a text change in general ledger line item will not be forwarded to spec. ledger automatically (as the change of a line item text triggers no posting to spec. ledger).
But as you know the document relationship from GL doc. to SL doc go to the corresponding SL doc. and change the text if this is really needed (don't understand why the line item text is that important).
Best regards, Christian -
Based on single Doc number Multiple line items update to in single Z database table
Dear Frds,
Based on single Doc number Multiple line items update to database table
Example : Doc Num: Janu
If users are using different doc number again the line items are modifying and replacing to new document Number . Pls Help me Screen attached as
Like CS01 TransactionDear Frds,
Based on single Doc number Multiple line items update to database table
Example : Doc Num: Janu
If users are using different doc number again the line items are modifying and replacing to new document Number . Pls Help me Screen attached as
Like CS01 Transaction -
Purchasing Doc. No in Vendor Line item
Dear Gurus,
When we passed document type RE (MIRO) , an accounting entry generated as GR/IR Debit and Vendor A/C Cr. In GR/IR a/c we can get the Purchasing doc. no . My requirement is can we get the same purchasing doc. no in Vendor line item. Currently it is not showing in our office. Can we bring the purchasing doc. no in vendor line item ? If yes then please guide.Hi,
I don't know whether you are aware of it or not.
It is simple.....In FBL1N you can't get it for Vendor as thie field will be populated in GR/IR Clearing account.
Go to GBL3N - give the GR/IR account - Go to Change layout from Application bar
Get the "Purchase Document" in the left side window and check
Purchasing Document 10
Asset Subnumber 4
FBL3N - GR/IR account - Change Layout - Purchasing Document 10 - Get this into left side window and check it now
you will get it
Thanks
Maybe you are looking for
-
User defined Characterestics not being updated in actual line items
Gurus! I am using Accounting Based COPA only. I have defined a user based characteristic for which I am using user exit to derive. However, this charaterstic is not getting updated in actual line items. The derivation is working correctly at Sales or
-
I am attempting to parse an XML string with the XXX.Factory.parse(String) method. In most cases it works fine, but when I have a document with 100 - 200 elements, it throws an XmlException. The error message says "Unexpected token encountered 'S' (le
-
On order stock to be transferred to Unrestricted stock
Some material was transferred from Plant X to Plant Y. Now this material is lying in On order stock instead of Unrestricted stock Kindly suggest how this On order stock can be transferred to Unrestricted stock Thanks
-
Import manager error, when using Standard maps
Hi, I am trying to import data using Import manager statndard Maps. For certain maps I am getting the following error message. <b>"Unable to retrieve unique values for field 'Key <Clone>'."</b> And also after getting this error if I close the current
-
Preferences Page Display Overprint View Never Not Working
If you have solved this problem, please share the solution here. My system is iMac OS X Mavericks, and I'm using a trial version of Acrobat Professional XI (updated).