How to populate fields "DocEntry" and "DocNum" in UDT? Those are not UDF.
I created a UDT with document type. When I populate the data, I don't know how to populate fields "DocEntry" and "DocNum". Those are not UDF. Here is my coding. Can somebody help me out?
Dim objUserTable As SAPbobsCOM.UserTable
objUserTable = objSBOAPI.oCompany.UserTables.Item("AIT_POSTRANS")
objUserTable.UserFields.Fields.Item("DocEntry").Value ="1000"
///////////// Error here "DocEntry" is not a UDF
objUserTable.UserFields.Fields.Item("U_TrnsType").Value = "4"
objUserTable.UserFields.Fields.Item("U_CardCode").Value = objRecord.Fields.Item(0).Value
objUserTable.UserFields.Fields.Item("U_ShpBrnch").Value = objRecord.Fields.Item(1).Value.Replace("'", "")
Currently versions of the SDK (SBO2005A SP01, SBO2007A, SBO2005B, SBO2007B) does not support Data Support of UDO-tabeles using the DI-API... That means that you can only add data to such tables using the GUI,,,
This is currently a huge problem and the number one DI-API Development Request. The status with SAP is that this will become part of the SDK in SAP Business One 8.8 (the next major release), but 8.8 does not yet have a shipment date (My guess is that it will be 2009 before we even see it in rampup)...
I know some people have experimented with writing direct SQL to such tables and know it can be done, but be aware that SAP does NOT support it!... Personally I've never done it for that reason althoug it would have been nice to do if some situations...
Sorry I could not give anything better...
Similar Messages
-
How to populate field catalogue fields in ALV using dynamic internal table
Hi All,
Please let me know how to populate field catalogue fields in ALV using dynamic internal table.
I have created <dyn_table> using code below.
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = g_t_ifc
it_fieldcatalog = g_t_fieldcat
IMPORTING
ep_table = dy_table.
ASSIGN dy_table->* TO <dyn_table>.
Create dynamic work area and assign to FS
CREATE DATA dy_line LIKE LINE OF <dyn_table>.
ASSIGN dy_line->* TO <dyn_wa>.
Now this <dyn_table> has fields like idoc no.,creation date ,
segment field 1, segment field 2 etc..Now idoc no.,creation date are static fields from table EDIDC. And segment field 1, segment field 2 etc are dynamic fields from table EDSAPPL.
In my ALV report I am getting the final layout properly but I am unable to move values to corresponding fields in the final layout shown.Please let me know how to populate these fields from different tables.
I tried this way but its not working.
SORT g_t_edid4 BY docnum.
LOOP AT g_t_edidc INTO g_r_edidc.
READ TABLE g_t_edid4 into g_r_edid4
WITH KEY docnum = g_r_edidc-docnum
BINARY SEARCH.
IF sy-subrc = 0.
<dyn_wa> = g_r_edid4-sdata.
MOVE-CORRESPONDING g_r_edid4 to <dyn_wa>.
CLEAR g_r_edid4.
ENDIF.
MOVE-CORRESPONDING g_r_edidc to <dyn_wa>.
APPEND <dyn_wa> TO <dyn_table>.You have to assign each field to field symbol and then assign the value to that field symbol and asssign that field symbol to workarea field symbol.
LOOP AT g_t_edidc INTO g_r_edidc.
READ TABLE g_t_edid4 into g_r_edid4
WITH KEY docnum = g_r_edidc-docnum
BINARY SEARCH.
IF sy-subrc = 0.
ASSIGN COMPONENT 'SDATA' OF STRUCTURE <DYN_WA> TO <DYN_FLD>.
<DYN_FLD> = g_r_edid4-sdata.
" <dyn_wa> = g_r_edid4-sdata.
" Assign each fields like this.
" MOVE-CORRESPONDING g_r_edid4 to <dyn_wa>.
CLEAR g_r_edid4.
ENDIF.
" MOVE-CORRESPONDING g_r_edidc to <dyn_wa>.
APPEND <dyn_wa> TO <dyn_table>.
Regards,
Naimesh Patel -
How to populate the CST and VAT registration no in billing.
Hello Gurus ,
Goodevening ,
How to populate VAT NO and CST NO of Customer and Company in the invoice of the customer.
Looking for your inputs
Regards
Ravi.MHi,
Go to J1ID, select "Excise Indicator for Plant" and maintain the CST and VAT numbers of that plant.
Table - J_1IMOCOMP
Field names are
CST No - J_1ICSTNO
VAT No.- J_1ILSTNO
PAN No. - J_1IPANNO
Rgds
Raj -
Why the Docentry and DocNum for Outgoing payment is same?
Hi,
I have define the numbering series for Outgoing payment , But while i created the outgoing payment document, in the backend the docentry and docnum values are same.
Anyone have idea why its happened?
i am using 2007 B
Regards,
Senthil KumarHi senthilkumar,
That is the normal behavior in that table.
Regards,
Vítor Vieira -
How to findout Field Exit and Menu Exit ?
Hi all,
How to findout Field Exit and Menu Exit ?If you have any example for both , could you please send it to me ?
Thanks in advance
KrishnasriTo find user exit check below code exicute with required T code you will get its all exits
report zm_user_exit1 no standard page heading.
*& Enter the transaction code that you want to search through in order
*& to find which Standard SAP User Exits exists.
*& Tables
tables : tstc, "SAP Transaction Codes
tadir, "Directory of Repository Objects
modsapt, "SAP Enhancements - Short Texts
modact, "Modifications
trdir, "System table TRDIR
tfdir, "Function Module
enlfdir, "Additional Attributes for Function Modules
tstct. "Transaction Code Texts
*& Variables
data : jtab like tadir occurs 0 with header line.
data : field1(30).
data : v_devclass like tadir-devclass.
*& Selection Screen Parameters
selection-screen begin of block a01 with frame title text-001.
selection-screen skip.
parameters : p_tcode like tstc-tcode obligatory.
selection-screen skip.
selection-screen end of block a01.
*& Start of main program
start-of-selection.
Validate Transaction Code
select single * from tstc
where tcode eq p_tcode.
Find Repository Objects for transaction code
if sy-subrc eq 0.
select single * from tadir
where pgmid = 'R3TR'
and object = 'PROG'
and obj_name = tstc-pgmna.
move : tadir-devclass to v_devclass.
if sy-subrc ne 0.
select single * from trdir
where name = tstc-pgmna.
if trdir-subc eq 'F'.
select single * from tfdir
where pname = tstc-pgmna.
select single * from enlfdir
where funcname = tfdir-funcname.
select single * from tadir
where pgmid = 'R3TR'
and object = 'FUGR'
and obj_name = enlfdir-area.
move : tadir-devclass to v_devclass.
endif.
endif.
Find SAP Modifactions
select * from tadir
into table jtab
where pgmid = 'R3TR'
and object = 'SMOD'
and devclass = v_devclass.
select single * from tstct
where sprsl eq sy-langu
and tcode eq p_tcode.
format color col_positive intensified off.
write:/(19) 'Transaction Code - ',
20(20) p_tcode,
45(50) tstct-ttext.
skip.
if not jtab[] is initial.
write:/(95) sy-uline.
format color col_heading intensified on.
write:/1 sy-vline,
2 'Exit Name',
21 sy-vline ,
22 'Description',
95 sy-vline.
write:/(95) sy-uline.
loop at jtab.
select single * from modsapt
where sprsl = sy-langu and
name = jtab-obj_name.
format color col_normal intensified off.
write:/1 sy-vline,
2 jtab-obj_name hotspot on,
21 sy-vline ,
22 modsapt-modtext,
95 sy-vline.
endloop.
write:/(95) sy-uline.
describe table jtab.
skip.
format color col_total intensified on.
write:/ 'No of Exits:' , sy-tfill.
else.
format color col_negative intensified on.
write:/(95) 'No User Exit exists'.
endif.
else.
format color col_negative intensified on.
write:/(95) 'Transaction Code Does Not Exist'.
endif.
Take the user to SMOD for the Exit that was selected.
at line-selection.
get cursor field field1.
check field1(4) eq 'JTAB'.
set parameter id 'MON' field sy-lisel+1(10).
call transaction 'SMOD' and skip first screen.
Rewards if useful......................
Minal -
How do i disable copy and paste so a reader can not copy text from my pdf document?
how do i disable copy and paste so a reader can not copy text from my pdf document? i have gone into my security preferences but can not find out how to change the settings so i can disable the copying option.
See http://www.adobe.com/content/dam/Adobe/en/products/acrobat/pdfs/adobe-acrobat-xi-protect-p df-file-with-permissions-tutorial-ue.pdf
-
Hello,
Photoshop Elements 8, How to show hue, value and saturation of a specific area of a picture?
How should I select the area? Which tool?
Thank you in advance, KarlFirst make sure your Info Palette is visible : menu Window / Info (shortcut F8)
In this palette, click the small icon 'more'
Choose 'Palette Options'
and choose HSB for the second palette readout. -
How can i download maverick and keep snow leopard,i am not very tech savy
how can i download maverick and keep snow leopard,i am not very tech savy
You'll be given the option to change the target after the download is complete and before the actual installation begins. The process is otherwise the same as normal.
(91555) -
I have a ipod 4 and I just bought a iphone4 how do i sync apps and the progress for those apps?
Welcome to Apple Support Communities
You have an Early 2008 Mac Pro. You have the specs that your Mac Pro needs for more memory > https://support.apple.com/kb/HT4433#4 As you can read, that computer should have come with 2 GB of memory.
You can buy memory at OWC or Crucial > http://eshop.macsales.com/shop/memory/Mac-Pro-Memory#800-memory Those sell compatible memory with all Macs. You can use another memory, but you can be sure that the memory that these brands sell are compatible -
How to fix keyboard clicks and lock sounds when they are on in setting , sounds and still do not work?
Double-click the Home button and swipe the Task Bar to the right. Check Volume and Mute Settings.
Message was edited by: Diavonex -
I can not restore and upgrade my Iphone 4. When i plug in to computer itune's restore and check for update buttons are not active. What is that mean?
Razmee,
Guess what? After posting, I read another thread on this topic where someone said they went to an Apple store and the tech person there added the optional username and password in the Outgoing Mail Server boxes, and then reset the phone again. Although I had tried resetting and restarting a few times today, I had NOT reset it after entering the username and password into the optional fields.
When I entered my username and password into the optional fields, the iPhone entered checks (ticks) to the right of every entry; it had not done this earlier. (I didn't reset at this time, and the outgoing mail would still not transmit).
So just now, I reset it and the outgoing email was sent!
Thanks to you and this forum, it's a great ending to a few frustrating days.
I hope this message helps others. Not only does everything have to be entered correctly in the respective boxes; but once everything is entered and you press the "Done" button, every box should then have a check mark next to it and then you must reset the phone. -
(fn+F2 and fn+F3) for brightness are not working
(fn+F2 and fn+F3) for brightness are not working, while the other function working properly... help me plz
DJanoonWhat is the product number?
Did anything change before this started happening?
Power the system on and press F10 about once a second to get into BIOS. Once you are in BIOS, go to the configuration tab (typically next to last tab) and set Action Keys to enabled. Save the changes, exit, and the system should reboot automatically. Test the brightness keys wihtout pressing the Fn key. I suspect they will not work in this state, but I want to rule out the possibilities while awaiting the product number.
↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓ -
How do i set colors on javascript coding page, colors are not seen after installing Firefox version 8 . I am using WaveMaker application for web development
Make sure that you allow pages to choose their colors and that you haven't enabled High Contrast in the Accessibility settings.
*Tools > Options > Content : Fonts & Colors > Colors : [X] "Allow pages to choose their own colors, instead of my selections above"
*http://kb.mozillazine.org/Website_colors_are_wrong
*http://kb.mozillazine.org/Websites_look_wrong -
"Batch NO SALEAB. and valuation type 1ST CHOICE are not the same"
Hi MM guru,
Please help me with the error message - "Batch NO SALEAB. and valuation type 1ST CHOICE are not the same" encountered during MB1b transaction.
Thanks in advance,
IramHello Amuthan,
I'm using mov type 311 and the material is not batch managed. I've entered the supplying & receiving batch and then error "Batch NO SALEAB. and valuation type 1ST CHOICE are not the same" was encountered, I found out that in table MCHA that the batch & valuation type for this material is not the same thats why its showing the error. Can you please guide me on how to maintain the data in table MCHA? What configuration we need to set?
Thanks in advance,
Iram -
have IPod classic that I have been extremely happy with. I now have purchased ipod nano and Iphone. the older version and the new 2.2 are not compatiable. I want to use all my IPods and Iphone, but I only have my one computer, how can I update all of my Apple products. I want to use them all.
Hello graingers45,
graingers45 wrote:
have IPod classic that I have been extremely happy with. I now have purchased ipod nano and Iphone. the older version and the new 2.2 are not compatiable. I want to use all my IPods and Iphone, but I only have my one computer, how can I update all of my Apple products. I want to use them all.
What do you mean it isn't' compatible? What isn't compatible?
There is no limit to the number of iPods you can sync to one computer, iTunes library, or iTunes account. Simply connect each separate iPod/iPhone to your computer and configure each to sync whatever content you wish to.
B-rock
Maybe you are looking for
-
ITunes was not installed correctly. Error 7 (Windows error 1114)dow error 1114dows
Hi, My itunes on my computer is not working. Need your kind help and advice. Thanks Anwar
-
No matter how I set it up, iCal seems to double my entries
How do I keep from getting two or three copies of every entry in my calendar? I have a MBP, iPad 2, iPod Touch syncing calendar through icloud
-
BME-99003: An error occurred
During mapping from database tables to Toplink classes (about 100 classes) i have such an error: Message BME-99003: An error occurred, so processing could not continue. Cause The application has tried to de-reference an invalid pointer. This exceptio
-
HT4623 apps and updates are not downloading with IOS7 on iphone4S. Any suggestions?
When trying to update IOS7 to IOS7.4 it takes forever and does not download, but my biggest concern is that my fav apps are not updating either. They say "waiting" or are just grayed out on the phone. I have also tried to take out the apps and reinst
-
Can you copy and paste camera raw filter settings for video?
I have just learned how to use the camera raw filter for color correcting my video clips. Is there a way to copy the settings for one clip and apply it to another? How do you do this?