Re : schedule line item date change
HI
How to change schedule line item date. Default 5 days inadvance its coming. i want to change that into 8 days.
thanks
mani
Hi,
Please go to t-code VOV8,select your s.doc type and double click it.Pl check no of days in "Requested delivery date/pricing date/PO date" -Lead time in days.
If it is 5,change it to 8.
Schedule line date is also determined after system carry out availability check.
thanks,
vrajesh
Similar Messages
-
Schedule line item data missing in Purchase order form in ECC6.0
Hi All,
We are doing ECC6.0 upgradation project . I am trying to print Purchase order in ECC6.0 , all data is coming fine in PO except schedule line item data is missing.
Same print program and form works fine in 4.7E but schedule line item data missing in ECC6.0.
Print program is a copy of standard SAP program SAPFM06P and layoutset is a copy of MEDRUCK.
If anyone knows if there is any OSS note for the standard print program or any solution please let me know.
Thanks,
Sonali.Resolved on own.
-
Schedule line delivery dates change in VA01
Experts,
User is adding some days for a material in maintenance table and it is like below.
Material Days Plant
2525252 100 ABCD
3636363 150 PQRS
The requirement is --
While creating sales orders or changing sales orders(VA01 or VA02) while adding this material(2525252)in the line item - In schedule line items Delivery date should changed (some thing like get added 100days)
I have added my logic in routine RV03VFZZ. But some materials are not getting changed due to avilability check.
How can i bypass availability check ?
(tried in USEREXIT_MOVE_FIELD_TO_VBEP... but no use).
Thanks,
PriyaTake a look an ATP00001 in SMOD. However, this looks to me as a classic case when we're trying to use ABAP to compensate for poor functional choices or an incorrect business process. I find it hard to believe this cannot be done by other means than such funky ABAP.
-
Schedule Line Item 100001 delivery date is missing
Hello Sirs,
After created a sales order in ECC and transferred to TM via XI, the queue remains with STOP status. Entering in transaction /SAPPO/PPO2 I’m facing the error “Schedule Line Item 100001 delivery date is missing”. The delivery date is filled in ECC side.
Is there something that I need to check in TM regarding delivery date?
Thanks.Please try to edit the PO[Change date] and process it again. This issue happens when we use a conversion program to create PO instead of creating it from UI.
-
KANBAN cycle - Change of Schedule line dellivery date.
Hi,
I have some queries in KANABAN scenario
1) How to change the schedule line delivery date generated from KANBAN cycle.
2)How to avoid generation of schedule lines from KANABAN if the Scheduling agreement was not released.
regards,
Kannaiah NaiduHi,
1.It is not possible to change the schedule lines of the Scheduling agreement with kanban indicator. Only work arround solution is to remove the kanban indicator. Then you can change the schedule line.
2.Using user exit, during emptying of the bin check whether scheduling agreement is released on not.If not released generate error.
Regards,
Krishna A S V -
BAPI FOR Deleting a Schedule Line Item from EKES and EKET tables
Dear All,
I would like to for deleting one of the line item from EKES (Po Confirmation ) and the respective line item from the EKET(PO Schedule Line Item Table).
Assume that am allowing the user to select the lineitem from zprogram screen and collecting the PO and Its LIne Item details in an internal table.
Can i Use
<b>BAPI_PO_Change</b> , if so , can anybody tell me the steps to follow to use this bapi for deleting the PO lineItems, since i m going to try BAPI for First time.
pls help me out
Message was edited by: Raja K.PHi raja ,
loop at iekko1.
w_index = sy-tabix.
item-po_item = itemx-po_item = iekko1-ebelp.
item-quantity = iekko1-mng01.
itemx-quantity = iekko1-mng01.
if iekko1-wamng = iekko1-wemng.
itemx-no_more_gr = item-no_more_gr = 'X'.
else.
itemx-no_more_gr = item-no_more_gr = ''.
endif.
append item.
append itemx.
clear return[].
call function 'BAPI_PO_CHANGE'
exporting
purchaseorder = iekko1-ebeln
tables
return = return
poitem = item
poitemx = itemx.
if return[] is initial.
commit work and wait.
call function 'DEQUEUE_ALL'.
search for deletion fields which u have to mark 'X'.
before calling this BAPi u have to lock the PO by using ENQUEUE.
<b>
FU BAPI_PO_CHANGE
Text
Change purchase order
Functionality
Function module BAPI_PO_CHANGE enables you to change purchase orders. The Change method uses the technology behind the online transaction ME22N.
Alternatively, the IDoc type PORDCH1 is available. The data from this IDoc populates the interface parameters of the function module BAPI_PO_CHANGE.
Functionality in Detail
Authorization
When you create (activity 02) an Enjoy purchase order, the following authorization objects are checked:
M_BEST_BSA (document type in PO)
M_BEST_EKG (purchasing group in PO)
M_BEST_EKO (purchasing organization in PO)
M_BEST_WRK (plant in PO)
Controlling adoption of field values via X bar
For most tables, you can use your own parameters in the associated X bar (e.g. PoItemX) to determine whether fields are to be set initial, values inserted via the interface, or default values adopted from Customizing or master records, etc. (for example, it is not mandatory to adopt the material group from an underlying requisition - you can change it with the BAPI).
Transfer
Purchase order number
The PurchaseOrder field uniquely identifies a purchase order. This field must be populated in order to carry out the Change method.
Header data
The header data of the Enjoy purchase order is transferred in table PoHeader.
Item data
The item data of the Enjoy purchase order is stored in the tables PoItem (general item data). Changes regarding quantity and delivery date are to be made in the table PoSchedule.
Use the table PoAccount to change the account assignment information.
Services and limits
Changes to existing items cannot be carried out with the Change method. It is only possible to create new items.
Conditions
Conditions are transferred in the table PoCond; header conditions in the table PoCondHeader. A new price determination process can be initiated via the parameter CALCTYPE in the table PoItem.
Vendor and delivery address
The vendor address in the table PoAddrVendor and the delivery address in the table PoAddrDelivery can only be replaced by another address number that already exists in the system (table ADRC). Changes to address details can only be made using the method BAPI_ADDRESSORG_CHANGE.
Partner roles
You can change all partners except the partner role "vendor" via the table PoPartner.
Export/import data
Export/import data can be specified per item in the table PoExpImpItem. Foreign trade data can only be transferred as default data for new items. Changes to the export/import data of existing items are not possible.
Texts
Header and item texts can be transferred in the tables PoTextHeader and PoTextItem. Texts for services are imported in the table PoServicesText. Texts can only be replaced completely.
Version Management
You can make use of the Version Management facility via the table AllVersions.
Return
If the PO was changed successfully, the header and item tables are populated with the information from the PO.
Return messages
Messages are returned in the parameter Return. This also contains information as to whether interface data has been wrongly or probably wrongly (heuristical interface check) populated. If a PO has been successfully created, the PO number is also placed in the return table with the appropriate message.
Restrictions
With this function module, it is not possible to:
Create subcontracting components (you can only use existing ones)
Create configurations (you can only use existing ones)
Change message records (table NAST) and additional message data (this data can only be determined via the message determination facility (Customizing))
Attach documents to the purchase order
Change foreign trade data
Change service data
Change or reexplode BOMs
A firewall prevents the manipulation of data that is not changeable in Purchasing according to the business logic of the purchase order (e.g. PO number, vendor, etc.).
PO items with an invoicing plan cannot be created or changed using the BAPIs
In this connection, please refer to current information in Note 197958.
To change addresses with numbers from Business Address Services (cantral address management), please use the function module BAPI_ADDRESSORG_CHANGE.
To change variant configurations, please use the function module BAPI_UI_CHANGE. More information is available in the BAPI Explorer under the Logistics General node.
In the case of changes that are to be made via the BAPI_PO_CHANGE, a firewall first checks whether the relevant fields are changeable. This approach follows that of the online transaction. Here it is not possible to change the vendor or the document type, for example.
Example
Example of changes made to a purchase order with:
1. Change in header data
2. Change in item
3. Change in delivery schedule
4. Change in account assignment
5. Change in conditions
6. Change in partners
Parameter: PURCHASEORDER 4500049596
Parameter: POHEADER
PMNTTRMS = 0002
PUR_GROUP = 002
Parameter: POHEADERX
PMNTTRMS = X
PUR_GROUP = X
Parameter: POITEM
PO_ITEM = 00001
CONF_CTRL = 0001
Parameter: POITEMX
PO_ITEM = 00001
PO_ITEMX = X
CONF_CTRL = X
Parameter: POSCHEDULE
PO_ITEM = 00001
SCHED_LINE = 0001
QUANTITY = 10.000
PO_ITEM = 00001
SCHED_LINE = 0003
DELETE_IND = X
Parameter: POSCHEDULEX
PO_ITEM = 00001
SCHED_LINE = 0001
PO_ITEMX = X
SCHED_LINEX = X
QUANTITY = X
PO_ITEM = 00001
SCHED_LINE = 0003
PO_ITEMX = X
SCHED_LINEX = X
DELETE_IND = X
Parameter: POACCOUNT
PO_ITEM = 00001
SERIAL_NO = 01
GL_ACCOUNT = 0000400020
Parameter: POACCOUNTX
PO_ITEM = 00001
SERIAL_NO = 01
PO_ITEMX = X
SERIAL_NOX = X
GL_ACCOUNT = X
Parameter: POCOND
ITM_NUMBER = 000001
COND_TYPE = RA02
COND_VALUE = 2.110000000
CURRENCY = %
CHANGE_ID = U
Parameter: POCONDX
ITM_NUMBER = 000001
COND_ST_NO = 001
ITM_NUMBERX = X
COND_ST_NOX = X
COND_TYPE = X
COND_VALUE = X
CURRENCY = X
CHANGE_ID = X
Parameter: POPARTNER
PARTNERDESC = GS
LANGU = EN
BUSPARTNO = 0000001000
Help in the Case of Problems
1. Note 197958 lists answers to frequently asked questions (FAQs). (Note 499626 contains answers to FAQs relating to External Services Management.)
2. If you have detected an error in the function of a BAPI, kindly create a reproducible example in the test data directory in the Function Builder (transaction code SE37). Note 375886 tells you how to do this.
3. If the problem persists, please create a Customer Problem Message for the componente MM-PUR-PO-BAPI, and document the reproducible example where necessary.
Customer Enhancements
The following user exits (function modules) are available for the BAPI BAPI_PO_CREATE1:
EXIT_SAPL2012_001 (at start of BAPI)
EXIT_SAPL2012_003 (at end of BAPI)
The following user exits (function modules) are available for the BAPI BAPI BAPI_PO_CHANGE:
EXIT_SAPL2012_002 (at start of BAPI)
EXIT_SAPL2012_004 (at end of BAPI)
These exits belong to the enhancement SAPL2012 (see also transaction codes SMOD and CMOD).
There is also the option of populating customer-specific fields for header, item, or account assignment data via the parameter EXTENSIONIN.
Further Information
1. Note 197958 contains up-to-date information on the purchase order BAPIs.
2. If you test the BAPIs BAPI_PO_CREATE1 or BAPI_PO_CHANGE in the Function Builder (transaction code SE37), no database updates will be carried out. If you need this function, please take a look at Note 420646.
3. The BAPI BAPI_PO_GETDETAIL serves to read the details of a purchase order. The BAPI cannot read all details (e.g. conditions). However, you can use the BAPI BAPI_PO_CHANGE for this purpose if only the document number is populated and the initiator has change authorizations for purchase orders.
4. Frequently used BAPIs for purchase orders are BAPI_PO_CREATE, BAPI_PO_CREATE1, BAPI_PO_CHANGE, BAPI_PO_GETDETAIL, BAPI_PO_GETITEMS, BAPI_PO_GETITEMSREL, and BAPI_PO_GETRELINFO.
5. For more information on purchase orders, refer to the SAP library (under MM Purchasing -> Purchase Orders) or the Help for the Enjoy Purchase Order, or choose the path Tools -> ABAP Workbench -> Overview -> BAPI Explorer from the SAP menu.
Parameters
PURCHASEORDER
POHEADER
POHEADERX
POADDRVENDOR
TESTRUN
MEMORY_UNCOMPLETE
MEMORY_COMPLETE
POEXPIMPHEADER
POEXPIMPHEADERX
VERSIONS
NO_MESSAGING
NO_MESSAGE_REQ
NO_AUTHORITY
NO_PRICE_FROM_PO
EXPHEADER
EXPPOEXPIMPHEADER
RETURN
POITEM
POITEMX
POADDRDELIVERY
POSCHEDULE
POSCHEDULEX
POACCOUNT
POACCOUNTPROFITSEGMENT
POACCOUNTX
POCONDHEADER
POCONDHEADERX
POCOND
POCONDX
POLIMITS
POCONTRACTLIMITS
POSERVICES
POSRVACCESSVALUES
POSERVICESTEXT
EXTENSIONIN
EXTENSIONOUT
POEXPIMPITEM
POEXPIMPITEMX
POTEXTHEADER
POTEXTITEM
ALLVERSIONS
POPARTNER
Exceptions
Function Group
2012
</b>
regards
prabhu
Message was edited by: Prabhu Peram -
Not Printing Item Schedule line items in SAP Script
Hi ,
I modified copied sap standard script(MEDRUCK) and copied my Zprogram to standard program.
But here every thing is fine but i am not getting schedule line items and item text in items data for every item
thanks,
sriramHi
Pls Check in the Line item Ur using the syntax properly or not..In SAP if it ios syntax error it won show..Pls chk the syntax properly ...POr try to debug the script and see whether item text is coming or not.
If it is not coming check me23n whether tat PO has item text or not..if it is there Problem is in ur Include text. -
In VA01 In Schedule line Delivery date not getting populated
Hello,
We have developed enhancement for VA01 tcode.
Depending upon the quatity entered for a material it should show one more item as free good.
If quatity is 10 for a line item 10 then it should show item 20 by default same mateerial and quatilty as 1.We have done this it is working fine.
But if we select free good item in our case it is 20 and click on schedule line item buttom all quaitity fields getting populated.but delivery date not getting populated for only free good.for line item 10 it showing properly.
Can any one please suggest what i need to do in order to display delivery date for free good.
Thanks in advance.
Regards.Thanks for your response.
Actually i have seen technical settings for that field.it is rv45a-etdat.this field has value till MV45AFZZ.seen in debugger.
Looks like it is clearing some where after the above include.Any suggisitions welcome.Thanks again. -
SCHEDULE AGREEMENT-DELIVERY SCHEDULE LINE ITEM PRINTING
Scheduling agreement is created in ECC.
Delivery schedule line items are generated using APO and CIFed over to ECC.
Upon displaying in ME38 in ECC, the delivery schedule line items are appearing as required. The problem is that no output type is displayed for condition type LPET even though the settings are done & condition records are maintained.
Can someone throw some light on this?Hi Anil ,
Goto Transaction NACE , Select Application EL and then Click on O/p Types.
Select your o/p and click on Processing routines.
Make a copy of medium 1 and change it to 5. The program , Form , Form routine would remain the same.
Maintain condition records with medium 5 in MN10.
Ensure that email address exists in Vendor Master.
Check with ur Basis to make sure that the setting are done in Transaction SCOT for sending document via PDF.
Create a new Agreement and test it.
Regards
Ramesh Ch -
Update Schedule line Delivery date using Bapi_po_Change
Hi all,
I am using Bapi_po_change to Update the Schedule line Delivery date(EKET-EINDT) for the PO based on the Item and the Schedule line.
I am passing the PO number, Po header, Item structure, Schedule line Structure.
But the Date is not getting updated in the Eket table.
Please suggest.Hi Sukriti,
Thanks for the Response, yes i have used the Bapi Transaction Commit Also .
The point is I am able to Update the Statistical Delivery Date in the Same EKET table using BAPI_PO_Change .I have Checked all the Ways to update the EKET-EINDT(Delivery Date)but no Unable to do it. -
Calculate all days in month from schedule line delivery date for 12 mths
Hi experts,
I am trying to solve a problem and would appreciate any help! Im on BI7.
The user will input a date for the schedule line delivery date via a variable.
From this date I need to go forward 12 months exactly and display a key figure (outstanding value) by months but the first and last months must only use the days in that month i.e not the whole month if not selected by the user.
I.e if the user types in 13.05.2008
The display need to show (columns)
May 08 (13th to end of May 2008)
June 08 (All)
July 08 (All)
August 08 (All)
Sept 08 (All)
Oct 08 (All)
Nov 08 (All)
Dec 08 (All)
Jan 09 (All)
Feb 09 (All)
Mar 09 (All)
April 09 (All)
May 09 (1st to 12)
So I neen to restrict the key figure (Outstanding Value) by Schedule Line Delivery Date and display as above on a 12 month forecast basis from the day (sch line delivery daye) entered as a variable by the user.
I also need the first month to only show the dates in the month remaining including the date entered as a variable. The last month must go up to the day before exactly a year in front.
I have created the 12 months as a structure and can include the key figure and the schedule line delivery date. The schedule line delivery date for each period needs to be restricted. How can I do this to achieve the above?
Thanks in advance. Will assign good points for a speedy solution.
Best
Steve.Hi,
Check "OVLY" and "OVLZ" and If the sceduling is active for he shipping point /sales document type. Check "OVXD" and see If the Loading time/ Pick/pack time is determined from it. If they are getting determined from shipping point check the shipping point calender in "SCAL" .If it has saturday and sunday as holidays ,then you may have to change them. And check If the customer has goods recieving hours assigned to him (In customer master unloading point). If he has only 5 working days and If he accepts only goods at 8 am in the morining then system would propose like this.Kindly please let me know If you need any more Information on this.
Regards
Ram Pedarla -
Line item data is not saving while creating a Sales order using Interactive
Hi all,
I am creating a sales order Using Interactive forms. In the form i am having Header data and line item data.I had created two structures one for Header data and one for Line item data. For entering the LINE ITEM DATA i had created a Dynamic table with Buttons ADD ROW and DELETE ROW.
User will Add the Row or Delete the Row based on the requirement.
My issue is When ever the user clicks the SUBMIT button after entering the header data and 3 line items data , Sales order has been created with only first line item and the remaining two line items are not created.
My Interactive form is like below
HEADER DATA
DOC_TYPE
SALES_ORG
DIST_CHN
DIVISION
PURCH_NO
PARTN_ROLE
PART_NO
LINE ITEM DATA
ITEM_NO MATERIAL PLANT QTY COND_TYPE COND_VALUE
ADD ROW
DELETE ROW
SUBMIT
My code for the method ONACTIONCLICK is like below
method ONACTIONCLICK .
data:
Node_Adobe type ref to If_Wd_Context_Node,
Node_Zsaleheader type ref to If_Wd_Context_Node,
Elem_Zsaleheader type ref to If_Wd_Context_Element,
Stru_Zsaleheader type If_Main=>Element_Zsaleheader,
Node_Zsaleitem type ref to If_Wd_Context_Node,
Elem_Zsaleitem type ref to If_Wd_Context_Element,
Stru_Zsaleitem type If_Main=>Element_Zsaleitem.
data: header_data type BAPISDHEAD.
data: item_wa type BAPIITEMIN.
data: item_data type table of BAPIITEMIN.
data: partner_wa type BAPIPARTNR.
data: partner_data type table of BAPIPARTNR.
data: sales_order type BAPIVBELN-VBELN.
data: Errorlog type BAPIRETURN1.
navigate from <CONTEXT> to <ADOBE> via lead selection
Node_Adobe = wd_Context->get_Child_Node( Name = IF_MAIN=>wdctx_Adobe ).
navigate from <ADOBE> to <Zsaleheader> via lead selection
Node_Zsaleheader = Node_Adobe->get_Child_Node( Name = IF_MAIN=>wdctx_Zsaleheader ).
Node_Zsaleitem = Node_Adobe->get_Child_Node( Name = IF_MAIN=>wdctx_Zsaleitem ).
get element via lead selection
Elem_Zsaleheader = Node_Zsaleheader->get_Element( ).
Elem_Zsaleitem = Node_Zsaleitem->get_Element( ).
get all declared attributes
Elem_Zsaleheader->get_Static_Attributes(
importing
Static_Attributes = Stru_Zsaleheader ).
header_data-DOC_TYPE = Stru_Zsaleheader-DOC_TYPE.
header_data-SALES_ORG = Stru_Zsaleheader-SALES_ORG.
header_data-DISTR_CHAN = Stru_Zsaleheader-DISTR_CHAN.
header_data-DIVISION = Stru_Zsaleheader-DIVISION.
header_data-PURCH_NO = Stru_Zsaleheader-PURCH_NO.
partner_wa-PARTN_ROLE = Stru_Zsaleheader-PARTN_ROLE.
partner_wa-PARTN_NUMB = Stru_Zsaleheader-PARTN_NUMB.
append partner_wa to partner_data.
Elem_Zsaleitem->get_Static_Attributes(
importing
Static_Attributes = Stru_Zsaleitem ).
item_wa-ITM_NUMBER = Stru_Zsaleitem-ITM_NUMBER.
item_wa-MATERIAL = Stru_Zsaleitem-MATERIAL.
item_wa-PLANT = Stru_Zsaleitem-PLANT.
item_wa-REQ_QTY = Stru_Zsaleitem-REQ_QTY.
item_wa-COND_TYPE = Stru_Zsaleitem-COND_TYPE.
item_wa-COND_VALUE = Stru_Zsaleitem-COND_VALUE.
append item_wa to item_data.
CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT1'
EXPORTING
ORDER_HEADER_IN = header_data
WITHOUT_COMMIT = ' '
CONVERT_PARVW_AUART = ' '
IMPORTING
SALESDOCUMENT = sales_order
SOLD_TO_PARTY =
SHIP_TO_PARTY =
BILLING_PARTY =
RETURN = errorlog
TABLES
ORDER_ITEMS_IN = item_data
ORDER_PARTNERS = partner_data
ORDER_ITEMS_OUT =
ORDER_CFGS_REF =
ORDER_CFGS_INST =
ORDER_CFGS_PART_OF =
ORDER_CFGS_VALUE =
ORDER_CCARD =
ORDER_CFGS_BLOB =
ORDER_SCHEDULE_EX =
endmethod.
PLEASE SUGGEST ME IF ANY CODE CHANGE IS REQUIRED
Thanks in advance
AjayHi,
The item data is not read because, the dynamically added rows should also reflect back to the Web Dynpro context. When the user clicks on Add Row, use the Onsubmit event to add a empty line to internal table and then bind it to the context. And if the user removes a row, remove a row from internal table and bind it back to the context.
You may refer this article.
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/802f0ed1-a17a-2c10-7db4-d515a5b047ed
Regards,
Runal -
Relation between movement type and Schedule Line Item Cat
I have a situation for Return Sales Order, there's two lines items with
*Item Cat Schedule Line Item Cat Stock
REN(Normal) YN (Returns 657) Blocked
RENN (Free Goods) DN (Returns) Return Stock
Question is, the user would like all the return stock to be posted to Block stock which should be using movement type 657. How can I configure this.Hello Sarvanand
Assign Sched Line category YN to item category RENN using this path:
SPRO/IMG/Sales and Distribution/Sales/Schedule Lines/Assign Schedule Line Categories
Don't change movement type of standard Item cat DN.
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 -
How to delete schedule line item
Hi All,
I want to delete schedule line entry for an item in R/3.
How can i do this?
Thanks,
NabhaHi,
For some of the business documents schedule line item deletion would be partially which means mark for deletion-specially when the case of POs and so on
other in general you need to goto the change document t-code and select the line item and you find the delete row mark in the same screen and select..
Hope this helps..
assign points if useful.
cheers
Pattan.
Maybe you are looking for
-
Major problem here: After a security sweep my Z10 was stuck at the screen "softwareupdate" (turning cycle). I left it alone for 20, 30 minutes, but nothing happened. So I took the battery out to restart it. Now I get to the screen "softwareupdate" bu
-
Can anyone point me to a link for the 8.01 update download can't seem to find it - I really need it because of my 8.02 issues. thanks.
-
Hi buddies , End user has encountered a situation as given below 1.Supervisor is trying to enter leave on behalf of his direct report & its not happening. 2.the dates on which leave is applied for is a future date 3.the leave type he is trying to ap
-
Converts a VARRAY object into a BLOB
Hi Is it possible to convert a VARRAY collection into a BLOB? Kind regards Taoufik
-
I don't know how to eject a music CD, that accidentally i put it upside down. And the computer doesnt read it. Please, someone could help me?