Line Item control in Table control
Hiiii Friends,
I am working on the table control. Im getting a probelm at one point.
I want to populate the
Po Sorce
207/2007 4500000090 10 101 Iron Ores HOS
207/2007 4500000090 10 101 Iron Ores HYD
207/2007 4500000090 10 101 Iron Ores HOS
207/2005 4500000091 10 102 Iron Ores VIZ
: User will select the Contract Number & from the above ZTable PO Number will get populated in the PO Number field autometically . User will enter the Item Number as available in PO and Material Code will appear in the Material code field in this development.
I want to restrict the Sorce within the PO & Line item selected.
Sorce shud get populated with F4 according to the material No & Po lone item.
Im using this slect qury in POV.
SELECT matnr sorce sodet
FROM zmmsorce INTO TABLE gitf4_sorce
WHERE matnr = gs_zwagond_scr-matnr.
How can i sort this problem .
Please help me out .
Harman
HI,
You can use GET CURSOR LINE LINE_NO this will give you the sy-index so that you can read the itab like
read table itab index line_no. This is one option and second is if you have row selector.
read table itab with key mark = 'X'.
If you want the Row contents befor the PAI triggers
[Check this Thread|Table Control dynamic F4;
Hope this is clear to you.
Regards
Ram
Similar Messages
-
After a PAI, I am not able to slect line items in the table control.
Dear All,
In GR55 Report;after a PAI triggered (by Enter button or vertical scroll bar), I am not able to select any line-items in the table control. If no PAI triggered, the I am able to select as much as line item..
Can anybody help me..
-Ullas Ubefore display, while debugging , after pai, it will go in pbo modules,
so there u need to check the structure screen for the variable select. u might have declare one variable like sel(1) type c,
these variable u have written in table control attributes in select variable as itab-sel.
so check in debugging first. -
Multiple line items in ESERVICE table
Hi All,
In production they moved out one BP from a premise and Moved in another BP in that premise.Now when they reverse both Move In and Move out they are getting multiple line items in ESERVICE table.In our case two shipper was created.How to avoid this issue?
Regards,
AvishekYou recieve in reference to the PO, not in reference to the 351 goods issue movements, hence SAP defaults just one item to MIGO.
If you get the quantity in one physical delivery, how can then the receiver know that it was issued with 3 different material documents?
if the receiver gets kowledge about 3 different goods issues from the accompaning paperwork then he amend the suggested quantity and post partial quantities.
if the goods issue was done with 3 material documents because of a certain reason like different batches, then the receiver can click the distribute icon to distribute the quantity of one item line in MIGO to several lines based on batch numbers. -
BDC - How to find line item index in table control?
Hi guys,
I am doing a BDC for VL02N, I am stuck up in positioning the line item index. For example, I have 10 line items, I want to fill quantity for the item 000060 which is in the third line. I am able position the cursor using button for locating item ( ok_code = 'POPO' ), but I could not find the index of the item in the table control, so that I can enter the quantity value as
PERFORM bdc_field USING 'LIPSD-G_LFIMG(03)' '100'.
Any expert to help me on this?Depending on the message the line number might be in one of the fields:
MESSAGE_V1
MESSAGE_V2
MESSAGE_V3
MESSAGE_V4
Although if the message simply is not meant to include the line number, it won't be there. That's the way it is. If there is a user exit available, you may add your custom messages with the line number. In some user exits (in sales order for sure) there is a special variable (flag), which is set when the BAPI runs the transaction. -
Change line item status at table level & also in transaction.
Hello,
I want to change the status of line item in CRM service order at table level. This change should reflect in transaction too.
Ex. Order X is in release state. When i run my program for line item 10 with enabling a check box in the selection screen, then the line item status shd be changed to "complete".
Table to change status is CRM_JCDS. Kindly send sample code on how to change the status in order through pgm.
Regards
Devika.SHi Nikhil
Open item management tick checked in GL master as we have run the program FAGL_SWITCH_TO_OPEN_ITEM .
Also GL shows the line item dispaly as RFSEPA01 had been executed.
However FAGLL03 shows all the old line item as posted status -we are looking for option have the status of all the old
line item as open item indicatior(in red) there by we can have the option to select all the item to process open item in F-03.
Appreciate for an amicable solution on this.
Regards
subrata -
Sapscript help -displaying line items in the table
Hi folks,
Can anyone please help me in a way of displaying the line items at the right place in the table fields?I have been playing with the tabs to space it for quite sometime. I tried everypossible combination, but does not work. Tring to figure out have not succeeded yet.
the line items in some lines displaying right, but if the first name or the last name is long, either pushes forward the subsequesnt data or if the length is small, it pulls the data inside.
I do not know how to fix this.
Here are the 4 elements I tried to display as line items
BOX XPOS 0 MM YPOS 0 MM WIDTH 10 MM HEIGHT 100 MM FRAME 10 TW
BOX XPOS 10 MM YPOS 0 MM WIDTH 50 MM HEIGHT 100 MM FRAME 10 TW
BOX XPOS 60 MM YPOS 0 MM WIDTH 50 MM HEIGHT 100 MM FRAME 10 TW
BOX XPOS 110 MM YPOS 0 MM WIDTH 28 MM HEIGHT 100 MM FRAME 10 TW
&OUT-SLNO&,,&OUT-EFNAME&,,,,,,&OUT-ELNAME&,,,,,,&OUT-EDOB&
paragraph format
tab1: 15 MM LEFT
tab2: 22MM LEFT
tab3: 24 MM LEFT
tab4: 28 MM LEFT
Any help is widely appreciated,
Thanks,
SkIf it is a form to be newly developed, it is better to go in for Smartform development since smartforms will automatically handle this problem.
If you still want to continue using Scripts try to use
/: YORGIN
or
/: XORIGIN to adjust the height of the Box, if needed.
More Details : http://help.sap.com/saphelp_47x200/helpdata/en/d1/803293454211d189710000e8322d00/frameset.htm
http://help.sap.com/saphelp_47x200/helpdata/en/d1/802edf454211d189710000e8322d00/frameset.htm
For the problem regarding length of the names, try to split the name and show it on two lines
eg., wrk_name+0(20) on the first line
and wrk_name+20(20) on the second line
Regards,
Anish Thomas -
All line items related internal table or structure in f-44 Transaction
Hi All,
In F-44 Transaction once i will give Vendor number then i press enter then all related documents will come. I need that related internal table before display of documents. I have to change some values in those documents. I found one internal table i.e. POSTAB. And I made changes. But is not effected and not helpful for my requirement.Please tell me exact internal table before those values come .
If there is any Enhancement Spot or User Exit of that related Line items Values.
Regards
NageswarDear Kavana,
In almost all situations the reason to your this issue can be found in
notes 136754 or 152813.
Mostly, the documents are included in a payment proposal and will
therefore not show up in F-44.
You can check which items are blocked by payment proposal in two
ways:
In table REGUP (Processed items from payment program), you can check
which items are blocked by payment proposals (display via SE16 or SE17,
selection on vendor (LIFNR), company code (ZBUKR) and document number
(BELNR).
I hope this can help You.
mauri -
Missing of line items data in Tables
Dear ALL,
While uploading initial inventory data from legacy to SAP by transaction MB1C, some line items were not updated in G/L total table:FAGLFLEXT and G/L line item table:FAGLFLEXA .
Now we want to rectify by inserting the missed data in to the above said tables with the help of abaper .
What we are doing is right ?,if not plz help us as how to come out from this problem.
We doubt,if we insert the data in the tables,it may lead to inconsistency in the data of other tables also.Please clarify.
Thanks in advance
SuHi,
Direct uploading the data into tables will make the inconsistency of data in tables.
So,Beterr ask ABAper to do uploading by BDC or LSMW.In logic ask him to check whether data with Header item and line items existted or not .Put the condition if not upload.
Pls. reward if useful... -
When payment is made to Vendor for an open line item. Which table's updated
Hi,
When an invoice has been posted for a GR. The invoice will be pending for payment. And when the payment is made to the vendor .Which table is updated, as i need to create a functional spec for triggering a message automatically to initate vendor payment if it is due for a month. I want the table name?
Regards
ChandanHi,
The payment document posted is again a accounting document, the table is BKPF - Header and BSEG - Item.
In order to know if a LIV accounting document is cleared i.e payment made could be checked in the field
BSEG-REBZG. this field would carry the payment document number, which is again a accounting document ( table bkpf-bseg).
hope this helps.
Harish -
WSo2 BDC to delete line item in table control
Hi all,
My requirement is to delete material from wso2 table control.
The only way to delete a line item in this table control is to select the line in table control and delete it.
The recording doesnt captures any selection of row.
Any input on how to caputre particular row ??
Please dont send me links to work with table control in bdc
Regards
BhanuDaveL wrote:
I am not aware of any way to make the BDC delete the row, other than by running in 'A'-all mode and letting the user step through each screen and delete the rows that should be deleted.
Well , if the user has to run it in "A" all screen mode why a BDC is required
DaveL wrote:
Deleting them from the table control would obviously have no effect upon the database table though, would it....it would just hide a row from view in this particular table control
Really ? Well it will delete it from database too i dont know what makes you think that it wont be deleted from database.
Anways i have figured out how to capture row selection in BDC .
Thanks for your reply it proves nothing i guess -
Dynamically picking the line item of table control
Hi all,
Can u suggest me a way to dynamically picking the no of line item in the table control displayed.
Regards,
Ashutosh KumarHi Ashutosh,
In BDC case, what you can do is use the "position button" instead of finding the number of lines on the table control.
Or else you can use call transaction with 'Options addition'
eg:
Call transaction parameters
clear gs_options.
<b> gs_options-defsize = 'X'. "Default size</b>
gs_options-dismode = 'N'.
gs_options-updmode = 'S'.
call transaction 'VI02' using t_bdcdata
"mode 'N'
"update 'S'
options from gs_options
messages into t_messages.
Please let us know why do you want to know the number of lines on the Table control.If the above answer doesn't satisfy you.
Regards,
Ravi -
Setting line item of table control
I need to allow the user to enter a line item number 10, 20, 30 ... and then the cursor is set to that line item in the table control
Any one please.
-
Line item display problem from table
Hi experts......
I am strucked up in my report with a problem ,
document no.(BELNR) for corresponding bkpf has four line item in BSEG table,
BUZEI GJAHR BUZEI KOART DMBTR HKONT
9000000078 2006 1 S 200,600.00 0000500100
9000000078 2006 2 S 24,072.00 0000301500
9000000078 2006 3 S 481.00 0000300450
9000000078 2006 4 D 225,153.00 0000209800
My requiremet is that
========================
when it goes inside the loop
i want to display the belnr where Hkont = '000500100'
and koart = 'D', that will be 001 line item (buzei) and 0004 Buzei in this case.
ie my output should be like
============================
GROSS NET
200,600.00 225,153.00
If i specify and hkont = '000500100'and koart = 'D'. its not getting inside the select itself
if i select without the where condition and hkont = '000500100'and koart = 'D' its going inside...
Can you please help me out....
My codings
elect bukrs belnr gjahr xref1 xref2 kunnr buzei dmbtr hkont koart from bseg into corresponding fields of table it_bseg
for all entries in it_bkpf
where bukrs = it_bkpf-bukrs
and belnr = it_bkpf-belnr
and gjahr = it_bkpf-gjahr
and hkont = '000500100'
and koart = 'D'.
loop at it_bseg into wa_bseg .
wa_final-kunnr = wa_bseg-kunnr.
wa_final-xref1 = wa_bseg-xref1.
wa_final-xref2 = wa_bseg-xref2.
wa_final-DMbtr = wa_bseg-dmbtr.hi ...
thanx a lot fo your reply,....
thats wat i thought and was trying to do so.....
and modified...can you please look in to the code....
but wa_final-gross = wa_amount-dmbtr.
wa_final-net = wa_amount-dmbtr.
value is not getting populated ....i dont know the reason
IF it_bseg[] is not initial.
select bukrs belnr gjahr dmbtr from bseg into corresponding fields of table it_amount
for all entries in it_bseg
where bukrs = it_bseg-bukrs
and belnr = it_bseg-belnr.
endif.
if it_amount[] is not initial.
select kunnr name1 LOCCO from kna1 into corresponding fields of table it_kna1
for all entries in it_bseg
where kunnr = it_bseg-kunnr and
locco = pr_locco.
endif.
sort it_bseg by belnr.
loop at it_bseg into wa_bseg .
wa_final-kunnr = wa_bseg-kunnr.
wa_final-xref1 = wa_bseg-xref1.
wa_final-xref2 = wa_bseg-xref2.
read table it_amount into wa_amount with key belnr = bseg-belnr.
if sy-subrc = 0.
if wa_bseg-hkont = '000500100'.
wa_final-gross = wa_amount-dmbtr.
endif.
if wa_bseg-koart = 'D'.
wa_final-net = wa_amount-dmbtr.
Endif.
at end of belnr.
Endat.
Endif. -
What is table name in SAP R/3 for PM order line item data
Hello,
I am extracting data for PM module and Interested in PM order line item data. Table AUFK is for PM order header master data.
Is there any other table for PM order line item master data?
Thanks,
IshakHi Ishak,
The item table is AUFP.
Thanks. -
Display line items in Cells of a table- Smartform
Hello All,
Can any one help me achieving the below requirement.
I have a requirement of printing invoice with a smartform. I am displaying line items from a TABLE node by looping VBRP's internal table. There are 12 cells and the 5 th cell contains a number of Dicount rates.
I am displaying these discount rates from LOOP node by looping KONV's internal table within that CELL. The 7 th Cell has got 2 values which are required to be: one aligned to the TOP right corner of the cell and the other to the bottom right side of the cell.
Now the issue description is:
CELL-5: Contains unknown number of values for display within the cell to be positioned as MIDDLE justified for an item(POSNR) of the main item table.
CELL-7: Contains two fixed values :KWERT to be at Top right of the CELL-7and NETWR at the bottom right of CELL-7
I have managed to display the sub items in CELL-5 in the middle by giving values to SPACE BEFORE/SPACE AFTER sections of PARAGRAPH FORMAT in SMART STYLE.
Requirement: Irrespective of number of sub items in CELL-5 the 2 values in CELL- 7 to be aligned as one at the top right and the other to the bottom right cell flexibly . Same applies to other items(POSNR) of MAIN VBRP item table.
The ROWS of the MAIN Table to be flexible enough to shrink the space when then are less number of subitems in CELL-5.
Values in Cell-7 should be adjusted according to contents in CELL-5.
Thanks in advance for your valuable suggestions.Hi,
Do one thing while filling the 5th cell , count the number of values(counter) in it for each record and fill new internal table (Itab_cell7) as follws.
DATA : FLAG,
counter1 type n.
DO COUNTER TIMES.
counter1 = counter1 + 1.
CLEAR FLAG.
IF counter = 1.
WA_CELL7-VALUE = KWERT.
APPEND WA_CELL7 TO ITAB_CELL7.
FLAG = 'X'.
ENDIF.
IF counter1 = (counter1 - 1).
WA_CELL7-VALUE = KWERT.
APPEND WA_CELL7 TO ITAB_CELL7.
FLAG = 'X'.
EXIT.
ENDIF.
IF FLAG NE 'X'.
WA_CELL7-VALUE = ''.
APPEND WA_CELL7 TO ITAB_CELL7.
ENDIF.
ENDDO.
Adjust the code if need as per your data.
In cell 7 under loop node print ITAB_CELL7 values in a text. and prepare a paragragh for alingment.
if it does not work for send me the XML file for your smartform.
Regards,
Antim
Maybe you are looking for
-
Hi, I have a single iTunes account with all my apps etc. However, I have an iPhone which is mine and and iPod Touch which I let my kids play on. When I upgraded to iOS 5 I now can't seem to get Game Center to login to my account on the iPhone and my
-
Custom Number Format Default to Numeric Keyboard
Hello, I recently put together a timesheet form for our superintendents. I have some fields to accept our company's 6-digit cost codes. Initially, I used the general Number format. This worked well since, on the iPad, the numeric keyboard came up
-
Mutable and Immuatable Objects...Pl. Explain
I would like to know what exactly are these mutable and immutable objects with respect to Java and how do they differ.
-
What isa the best way to reorganize my photos from multiple libraries to a single library
I need to reorganize my photos from multiple libraries to a single library. What is the best way to do this?
-
Usb 3.0 camera black screen
I am using a Basler USB 3.0 ace camera. The first problem I am meeting is in the Measurement & Automation Explorer, the camera only shows black screen under both 'grab' and 'snap'. I changed the exposure time and brightness, the problem still remains