BDC recording(updating two line items in a single call)
Hi,
I have a problem with the transaction PK31,while recording we enterd material number,plant,supply area in the first screen,after that it display line items for that control cycle,I want to update some fields in that line items,when i updated quantity and status fields in the first line item after that i cliked the change "qty/status button" and it saves that field values and it comes out from the transaction.
can you please suggest what is the solution for updating two line items in a single call(PK31 transaction).
Hi,
In one screen . Put 2 containers with different names.
cont1,cont2
on each of the container call grid,grid1 like below .
1. this is for item line display
IF g_r_grid IS INITIAL.
CREATE OBJECT g_r_cont
EXPORTING container_name = 'CONT1'.
g_r_variant = sy-repid.
*--Build field catalog
PERFORM build_field_catalog.
*--Layout selection
g_r_layo-cwidth_opt = g_c_set.
g_r_layo-no_rowmark = g_c_set.
g_r_layo-sel_mode = space.
CALL METHOD g_r_grid->set_table_for_first_display
EXPORTING
i_buffer_active = g_c_set
is_variant = g_r_variant
is_layout = g_r_layo
i_save = g_c_set
i_default = g_c_set
CHANGING
it_outtab = g_t_alv
it_fieldcatalog = g_t_fieldcat
it_sort = g_t_sort.
endif
1. this is for error data display
IF g_r_grid1 IS INITIAL.
CREATE OBJECT g_r_cont
EXPORTING container_name = 'CONT2'.
g_r_variant = sy-repid.
*--Build field catalog
PERFORM build_field_catalog.
*--Layout selection
g_r_layo-cwidth_opt = g_c_set.
g_r_layo-no_rowmark = g_c_set.
g_r_layo-sel_mode = space.
CALL METHOD g_r_grid->set_table_for_first_display
EXPORTING
i_buffer_active = g_c_set
is_variant = g_r_variant
is_layout = g_r_layo
i_save = g_c_set
i_default = g_c_set
CHANGING
it_outtab = g_t_error
it_fieldcatalog = g_t_fieldcat
it_sort = g_t_sort.
endif
Similar Messages
-
SAPF150D-Dunning Notice Print - With Update of Line Items and Master Record
When I am running this program SAPF150D(Dunning Notice Print - With Update of Line Items and Master Records) with a variant containing run date, runc id, update mode, pimmed & pcount; the job is failing to execute. It is giving message like,
"The field symbol is no longer assigned because there was an attempt makde previously in a Unicode program to set the field symbol using ASSIGN with offset and/or length specification. Here, the memory addressed by the offset/length specification was not within the allowed area."
"GETWA_NOT_ASSIGNED_RANGE" "SAPF150D" or "F150DFS0" "SORTFELDER_ERMITTELN"Hi,
Search for routine FORM SORTFELDER_ERMITTELN
in SAPF150D.
Put a breakpoint in statement
ASSIGN (T047F-FELDN) TO <H1>.
in above routine and debug to the point where error is occuring.
Most likely there is a mismatch in the length assigned to some field FELDN in table T047F.
In that case, simply change the T047F-LENGT field accordingly in change mode.
Cheers,
Vikram
Edited by: Vikram Jalali on May 27, 2008 5:56 PM -
Hi Experts,
Opportunities (0crm_c04) InfoCube getting updated from Header and Item ODS. One of the Key figure Value (Expected Sales Volume) coming from Header ODS (It is not available in Item ODS). And two Characteristics (Product and Status) coming from Item ODS (It is not available in Header ODS).
Now the records are maintained in two line item.
In my query I want to see the key figure value based on Product and Status.
I tried through multicube, but it is not working.
Thanks advance,
AmritIs there a common key characteristic between header and item?
You can use an infoset on the two ODS to get what you want. -
Procurement tab in Sales order displays two line items per material
Folks
I am not a SD guy and i have a very basic question on how to read the details in the procurement tab for a sals order.
In the Procurement tab of a Sales order, two line items per material are displayed as shown below. whats does this mean ?
Further, I had observed the below differences in the below 2 lines
1. Mat. Avail Date is 06/19/2007 for line 1 & 06/20/2007 in line 2.why r the dates different ?whats the significance?
2. Confirmed qty is 0 line 1 & 1in line 2.( when does confirmation trigger or update ? Is it upon ATP check or upon delivery ?)
3. Order qty is 1 line 1 & 0 in line 2.
Item Material Plant Confirmed Qty SU Mat. Avial Date SL Req. Type Deliv. Date ATP Qty Loading dt Route Part. Deliv/ Item Deliv priority Desc
10 NTE801NC 2400 0 EA 6/15/2007 CT D 6/19/2007 0 6/15/2007 24GB03 C 98 Priority 98 (Normal)
1 EA 6/15/2007 CT D 6/20/2007 6/15/2007 Priority 98 (Normal)
ThanksIt means 2 schedule line for that materials ,
06/19/2007 is the date on which material is requested by customer but there is not sufficient stock on that day so 0 quantity is confirmed for that day.
On 06/20/2007 material is availabe and you can start delivery to customer on 06/20/2007 and system confirms the material for 20th and it is reserved for this sales order.
Confirmation is based on your MAT ( Material availability date ), but you can revist these dates through by triggering availabilty check or Back order processing through GATP or ATP.
Manish -
Hi All,
Please help me in this. My client requirement is to post Noted items in two line items. As Debit and credit. How to configure this technic. Max points will be awarded for the solution.
Thanks & Regards..
SrikanthHi,
Noted items are special G/L transactions with informational character which only remind the user about due payments or payments to be made and are not displayed in the general ledger or added to it.
Only one line item is updated if a noted item is created. No offsetting entry is made. That is why no zero balance check is made.
There is no standard functionality in SAP to do so.
Regards,
Jigar -
Fbl1n txn for updating vendor line item
hello every one iam trying to update vendor line item when a billing document get cancelled in vf11 i have tried bapi BAPI_ACC_DOCUMENT_REV_POST .
the requirement is whenever a billing document get cancelled the commision need to get credited again for example if vendor line item is
St Assignment DocumentNo Type Doc. Date S DD Amount in local cur. LCurr Clrng doc. Text
COMMISSION 1700000014 CP 31.08.2011 71.26- INR
it need to get like this
St Assignment DocumentNo Type Doc. Date S DD Amount in local cur. LCurr Clrng doc. Text
COMMISSION 1700000014 CP 31.08.2011 71.26 INR
that means the amount in local currency need to get into + one like above
Please help ASAP & if some one give me code also that will be very helpul for meHii ali this is my code & below iam showing u what wasthe data in my return table please suggest me what to do
DATA : P_REVERSAL LIKE BAPIACREV ,
TRAN_DOC(20) TYPE C ,
p_busact LIKE BAPIACHE09-BUS_ACT ,
p_objkey LIKE BAPIACREV-OBJ_KEY .
DATA : P_RETURN LIKE TABLE OF BAPIRET2 ,
WA_RETURN TYPE BAPIRET2 ,
WF_REMARKS ,
PLANT TYPE VBRP-WERKS ,
bill_no type vbrk-vbeln ,
belnr type BELNR_D ,
AWKEY type AWKEY .
data : date1 type sy-datum .
date1 = sy-datum+0(4) .
select single belnr AWKEY from bkpf into (belnr , AWKEY) where blart = 'CP' and
budat = sy-datum and
xblnr = vbrk-kidno . "bill_no .
IF SY-SUBRC = 0 .
CONCATENATE belnr AWKEY+10(4) date1 INTO TRAN_DOC .
ENDIF .
SELECT SINGLE WERKS FROM VBRP INTO PLANT WHERE VBELN = vbrk-kidno .
p_reversal-obj_type = 'BKPFF'.
p_reversal-obj_key = tran_doc.
p_reversal-obj_key_r = tran_doc.
p_reversal-pstng_date = sy-datum.
p_reversal-comp_code = tran_doc+10(4).
p_reversal-reason_rev = '02'.
p_reversal-ac_doc_no = tran_doc+0(10).
p_busact = ' '.
CALL FUNCTION 'BAPI_ACC_DOCUMENT_REV_POST'
EXPORTING
reversal = p_reversal
bus_act = p_busact
IMPORTING
obj_key = p_objkey
TABLES
return = p_return.
IF sy-subrc = 0.
---commit Work
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
ELSE .
*****Use the below statement, if the BAPI is sending back the 'RETURN' internal table.
READ TABLE p_return INTO WA_RETURN WITH KEY TYPE = 'F'.
IF SY-SUBRC EQ 0 .
CALL FUNCTION 'MESSAGE_TEXT_BUILD'
EXPORTING
MSGID = WA_RETURN-ID
MSGNR = WA_RETURN-NUMBER
MSGV1 = WA_RETURN-MESSAGE_V1
MSGV2 = WA_RETURN-MESSAGE_V2
MSGV3 = WA_RETURN-MESSAGE_V3
MSGV4 = WA_RETURN-MESSAGE_V4
IMPORTING
MESSAGE_TEXT_OUTPUT = WF_REMARKS.
ENDIF.
ENDIF.
1 E RW 609 Error in document: BKPFF $ DEVCLNT300 000000 BKPFF $
2 E RW 632 Document BKPFF 1700000061WPL12011 DEVCLNT300 cannot be reversed 000000 BKPFF 1700000061WPL12011
3 E F5 814 Document type ZX not defined 000000 ZX
4 E F5 814 Document type ZX not defined 000000 ZX -
Different Pricing date for two line items
Hi guru's
How to give different pricing dates for two line items
in a sales order
To elaborate
I have two line items one i need pricing date order date
second one i need pricing date should be delivery date
Thanks in advance
SrinivasDear Srinivas,
While creating sales order select the item which you want to change the pricing date then go to menu>GOTO>Item -->Click on Sales A here you can able to change the pricing date as you like.
You can change the pricing date of the item in the sales order through sales order change mode but that sales order should be open.
I hope it will help you,
Regards,
Murali. -
FB60 - Two line items for tax amount (Posting Key - 50)
Hi,
I am facing some issue in FB60 invoice posting. For the same vendor(say V1) I am posting 2 different invoices for 100 USD - the <u>company code, G/L, CostCenter & Tax Jursdiction code are different</u> in both the cases. Once I do FB60 and got to document overview screen this is what I see...
<b>Case1</b> - in the document overview screen I see a Posting key(PK) 31(invoice amount), PK50(tax amount) & PK40(total amount)...which is fine.
<b>Case2</b> - in second case the document overview shows two line items for PK50(credit - tax amount) and tax amount is different.
Two questions...
1) Why there are two tax items (PK50 items) - is that dependent on tax rule or vendor or company code?
2)My client says the tax amount should be same in both cases - but I am wondering how can it be, when tax codes are different in both the cases? Where can I check how these tax values are getting calculated.
Any adivse/hints will be greatly appreciated/rewarded.
Thanks
KiranAKu
I got the same scenario also
this second document display because of material price change u can double click that document -
Function Module to Change / Update BOM Line Items
Hi,
I need a Function Module to Change / Update BOM Line Items.
Please help.
Thanks.Try this FM - CSAP_MAT_BOM_MAINTAIN
-
Not cleared two line items from the GR/IR clearing
For one of the items in PO following transactions are done...
Mtype Date Quantity Amount
GR 101 06/14/09 1 02.001 887.85
GR 102 06/14/09 102.001- 887.85
GR 101 06/14/09 101.999 887.85
GR 101 07/22/09 102.001 923.61
IR-L 06/14/09 102.001 887.85
IR-L 06/14/09 101.999 887.85
FBL3N: out put
Open items
Doc Type Date Amount
WE 06/14/2009 86 887.85
WE 07/22/2009 96 923.61-
Cleared items:
Doc Type Date Amount
WE 06/14/2009 96 887.85-
Z9 06/09/2009 86 887.85
WE 06/14/2009 96 887.85-
Z9 06/09/2009 86 887.85
System has not cleared two line items from the GR/IR clearing for this line item in PO.
What could be the reason these items are not cleared and now how these line
items can be cleared?Hi,
When the Dr and Cr amount are equal to zero system will automatically clear the line items in F.13. Here the open items are appearing with different amounts due to that system not able to clear.
By passing some manual JV or something you done to make Dr and Cr equal to zero then you clear through F-03(untick post automatically for this clearing in T.cdoe FS00)
Regards,
Sankar -
Delivery get created with one line item from sale ord having two line item
I have an issue when delivery is created with reference to a sales order.
The sale order consist of a header with customer group VBKD-KDGRP = '01'. There are two line item for this header with item 10 having customer group '01' and line item '20' having customer group '02'.
When delivery is created with reference to this sale order the delivery contains only one line item corresponding to line item 10 having customer group '01' of the sale order. But I need to have both the line item in the delivery irrespective of difference in customer group.
What makes this split up of delivery? Is there any configuration or user exit that need to be applied in order to adress this.
<REMOVED BY MODERATOR>
Thanks in advance
Ramachandran Babu
Edited by: Alvaro Tejada Galindo on Jun 13, 2008 5:45 PMCheck if there is any copy routine applied in the copy control from order to delivery - transaction VTLA. The routines themselves can be found in transaction VOFM (Data transfer -> Deliveries). LIKP-ZUKRL field contains the split criteria (by the way, check what's in that field on your deliveries).
It's possible that there is something in the current routine that is forcing the delivery split. Otherwise you can probably use similar approach to make it stop splitting.
Hope this helps. -
Why two line items for vendor credt
hi EXperts,
At the time of doing MIRO entry , System has generated two line items for vendor credit
GI/IR dr 2275.00
Vendor cr 2252.25
Vendor cr 22.75
That means while 1% of the INvoice value system has created one more line item.
Pls suggest why it has created like this. don't offer points
Thanks in Advance,
Arabinda Paridado you have a split payment term (different due dates) as defined in OBB9
-
Two line items created while doing sales excise invoice
Hi all,
I have created an excise invoice through J1iin. But when I do so, there are two line items created for BED on excise paid. where as ideally there should only be one line item created.
The standard entry should be as follows :
Excise Duty BED Paid 617.00
Excise Duty SEC Pay 6.00-
Basic Excise Duty p 599.00-
Excise Duty ECSPay 12.00-
In my scenario the entry is as follows :
Excise Duty BED Paid 181.00 here there are two line items created.
Excise Duty BED Paid 436.00
Excise Duty SEC Pay 6.00-
Basic Excise Duty p 599.00-
Excise Duty ECSPay 12.00-
can anyone help on this?
Thanks
Priyanka
Edited by: Priyanka Patwardhan on May 19, 2011 12:35 PMHI,
Check the below settings are exist or not at your order to delivery copy controls.
Order requirements 001 Header
Combination requirmt 051 Combination
Header Data 001 Header
Header Data Ext. Sys 0
Handling Units 000
check and revert
Regards
Ram -
PDS has input component twice, hance PReqs have two line items.
Hi,
In a subcontracting scenario, we are using PDS at Vendor location with only one component. However, the PDS has two entries for the component. Hence, the PRqs created frpm the plant on vendor have two line items.
What could be a cause (setting) for the PDS to be created like this?
Regards,
ShivaHi Senthil,
The BOM/ PRod Vers looks correct. In fact, the PDS is created correctly using CURTO_CREATE transaction in test system, and so are all orders correct. But, as a standard, we are using CIF IMods only for PDS transfer.
What is the difference between transferring PDS using CIF IMods and CURTO_CREATE?
Regards,
Shiva -
Function module for BOM Update all line items at a time
Hi,
Please enlightenn us, which FM is do the update for BOM item datas. ( current FM is updated line item one item then come out and log in again updating another line item , thus cause more error are facing.)
we want a FM to update one time all the line time and come out from the screen.
Thx
SathiyaHI,
As suggested above use CEWB or if you want to manage it via a Z program then use:
CSAP_MAT_BOM_MAINTAIN
or
CSAP_MAT_BOM_OPEN
CSAP_BOM_ITEM_MAINTAIN (Use these 3 in sequence, refer to the help file on the FM)
CSAP_MAT_BOM_CLOSE
Hope it answers your query.
Regards,
Vivek
Maybe you are looking for
-
Interactive report : issue with french special characters
Hi, We have many interactive reports and we can't use any french special characters in the filter clauses. For example, Montréal becomes montréal. What parameters do we have to change to make it work? Thanks.
-
Issue about BI JAVA SDK-SOAP request failed with return message 2147483653
Dear Experts, I'm trying to use BI JAVA SDK to connect BW by using XMLA connector. But there's an error messaet said : SOAP request failed with return message 2147483653 ( Invalid MDX command with INCLUDING) I'm really new to this JAVA SDK, and after
-
How to run user enter value query and get result on Text item
Hi , I'm really newbie at JDeveloper and ADF , I want to run the query below , before with Forms i just adding :TEXT_NAME to get the entered users value , what I have to do now with ADF , really it's not clear question and I would appreciate any help
-
Clone Stamp in mirror direction?
Using the clone stamp tool, when I sample an area to clone, it would follow in the same direction as where my cursor is. Is it possible to have the sampled area move in the opposite direction? I am fixing a portrait and I need to clone the other symm
-
MacBook pro won't boot correct anymore...
Hi, I put my MacBook Pro to sleep yesterday evening, did nothing special, just closed the lid and it started breathing. Today I wanted to wake it. Putted my usb mouse in the left port, it woke up, lid was still closed. Opened the lid, no image on the