Help needed in BAPI for uploading data in FB01 - Urgent!!!
Hi,
i need to post a document in FB01.
i am getting the following details from the user in a .CSV file.
Vendor no, vendor name, amount, document date, posting datem reference vendor line item text and Gl account line item text.
i am using BAPI BAPI_ACC_DOCUMENT_POST to post the document.
Now my req is if the amount is in negative then
use posting key 31 against the vendor and 40 for GL account
if its positive amounts
use posting key of 24 against vendor and 50 against the GL account.
Now by default, when the amount is negative the function is working fine.
but when its is positive its posting 21 against vendor and 50 against GL account. but i need 24 against vendor
can any one tel me, where should i pass these value in the BAPI?
or is there any other way of doing it?
Regards,
Niyaz
Hi,
the posting keys 31/21 (01/11 and 40/50) are hard coded and cannot be populated from the interface. This is because a different posting key could have a different posting logic from what is implemented in the BAPI.
So unless you want to do some modifications here, you have to use the fixed PKs. Pls. let me know if you are interested in where exactly the PKs are defined (hardcoded). I have this noticed for myself earlier but my notices are on another PC
Hope that helps, points welcome
Csaba
Similar Messages
-
Hi all,
iam creating a good movement with 201 using bapi. I created manually with the data in the t code MB1A. LATER I TRIED WITH THE SAME DATA IN PROGRAM BY PASSING THROOUGH bAPI
BUT FOR SOME REASON IAM GETTING AN ERROR SAYING
EKI 222Cost center ABCD/12345 does not exist on 03/28/2007.
but this cost center is valid till 9999. I never passed ABCD what is that?
I TRIED WITH SAME COST CENTER IT WORKED WHILE CREATE MANUALLY WITHT THE SAME DATA IN mb1a T-CODE.
tHIS IS MY CODE LET ME IF IAM MISSING ANYTHING
data: gm_header type bapi2017_gm_head_01.
data: gm_code type bapi2017_gm_code.
data: gm_headret type bapi2017_gm_head_ret.
data: gm_item type table of
bapi2017_gm_item_create with header line.
data: gm_return type bapiret2 occurs 0 with header line.
data: gm_retmtd type bapi2017_gm_head_ret-mat_doc.
clear: gm_return, gm_retmtd. refresh gm_return.
Setup BAPI header data.
gm_header-pstng_date = sy-datum.
gm_header-doc_date = sy-datum.
gm_code-gm_code = '03'. " MB1A
Write 971 movement to table
clear gm_item.
move '201' to gm_item-move_type .
move '90998' to gm_item-material.
move '1' to gm_item-entry_qnt.
MOVE 'EA' TO GM_ITEM-ENTRY_UOM.
move 'PNT' to gm_item-plant.
move 'PPNT' to gm_item-stge_loc.
*MOVE '0901' TO GM_ITEM-MOVE_REAS.
move '12345' to gm_item-COSTCENTER.
append gm_item.
Call goods movement BAPI
call function 'BAPI_GOODSMVT_CREATE'
exporting
goodsmvt_header = gm_header
goodsmvt_code = gm_code
importing
goodsmvt_headret = gm_headret
materialdocument = gm_retmtd
tables
goodsmvt_item = gm_item
return = gm_return.
if not gm_retmtd is initial.
commit work and wait.
call function 'DEQUEUE_ALL'.
else.
commit work and wait.
call function 'DEQUEUE_ALL'.
endif.
write:/ gm_retmtd.
loop at gm_return.
write:/ gm_return.
endloop.
ThanksHi,
Iam abale to create a goods issue with the same data.
The only difference i see when i create through MB1A, in the initial screen i see the collective slip has been selected and in the second when i give the cost center and hit enter it brings up the buisness area and then when i save it it creates a document number.
I tried passing the buisness area but iam getting same error.
If it work through mB1A then it should work through the BAPI RIGHT?
tAKE A LOOK AT MY BAPI CODE AND LET ME KNOW IF IA M MISSING ANYTHING IN HERE
tHANKS -
Interface Using BAPI for Uploading shipment datas
Can any1 send me the example code for Inbound Interface using BAPI for Uploading shipment datas.please kindly send me the programs which u using with BAPI
Hi
Except hiring (or new joinee) for all other actions you can use below Function Module.
HR_INFOTYPE_OPERATION.
~~~Ganesh Kumar K. -
Bapi to upload data for hrp1001
Hi is there any standard Bapi to upload data in 1001.
I know it can be done by lsmw or BDC ..but i wanted to aout any bapiHi pratyush,
Try using FM RH_INSERT_INFTY.
Before RH_INSERT_INFTY, call function RH_PM_ENQUEUE, after RH_INSERT_INFTY, call function RH_PM_DEQUEUE.
Regards,
Dilek -
I need a bapi for workdownstructure elements
i need a bapi for workdownstructure elements
WBS number
WBS descriptions
WBS start date
WBS end date
Status
thanks and regards,
jameer.p
Edited by: Jameer P on Jan 30, 2008 12:59 PMHai.
It may help you.
can use WS_DOWNLOAD like this:
L_T_HEADERS TYPE TABLE OF TEXT40.
IF SP_LOCAL = 'X'.
Headings: TEXT-U01 ... TEXT-U28
DO 28 TIMES.
CLEAR: L_F_INDEX,L_F_NAME,L_F_HEADERS.
L_F_INDEX = SY-INDEX.
CONCATENATE 'TEXT-U' L_F_INDEX INTO L_F_NAME.
ASSIGN (L_F_NAME) TO <FS_HEADER>.
L_F_HEADERS = <FS_HEADER>.
APPEND L_F_HEADERS TO L_T_HEADERS.
ENDDO.
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
FILENAME = SP_FILE
FILETYPE = 'DAT'
TABLES
DATA_TAB = L_T_OUT
FIELDNAMES = L_T_HEADERS
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_WRITE_ERROR = 2
INVALID_FILESIZE = 3
INVALID_TYPE = 4
NO_BATCH = 5
UNKNOWN_ERROR = 6
INVALID_TABLE_WIDTH = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
OTHERS = 10.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE 'I' NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
LEAVE PROGRAM.
ELSE.
DESCRIBE TABLE L_T_OUT LINES L_F_COUNT.
MESSAGE I145 WITH L_F_COUNT SP_FILE.
ENDIF.
Regards.
Sowjanya.b. -
I need a bapi for material management advance shipping notifications
i need a bapi for material management advance shipping notifications for developing powls which includes below fields and some more fields.
Inbound delivery number
Due date (GR date)
Vendor delivery number
Material
Name of material
Quantity
Vendor
Name of vendor
thanks and regards,
jameer.pHi Jameer,
This is a hard one, my friend. I understand what you are trying to do.. Try BAPI_DELIVERYPROCESSING_EXEC. It is tricky though.
Moreover you might want to use a FM to fill the IDOC data. something like IDOC_INPUT_**. this might be a better option.
cheers,
Hema. -
I need a bapi for service order
i need a bapi for serviceorders the fields which i required in the output should be
GLTRI(Actual finish date),
FTRMP(Planned release date),
RMANR( SD Document Number),
POSNV_RMA(Item number of the SD document),
PM_OBJTY,
ARBPL.Dear Jammer,
This question can be put in ABAP forum. You can also try SD forum. Chances of getting a reply on this query is almost nil in this forum.
Please let me know in case of any query and keep revisiting this forum.
Regards,
Rakesh -
Program RFEBKA00(T-Code- ff.5 ) for upload data problems
Hi Gurus,
Program RFEBKA00(T-Code- ff.5 ) for upload the bank statement data and passing the with parameters.
When execute then :
Getting warning message u201CWRONG PARAMETER: FILE_NAMEu201D
Getting error message u201CFile in disk drive can not be openu201D.
My text file data for upload:--
0000 01INGBNL2AXXXX00001
0000 01INGBNL2AXXXX00001
940 00
:20:INGEB
:25:0656905271
:28C:132
:60F:C100708EUR25470,35
:61:100709C2885,40N078
:86:AT673200000003743077 RLNWATWW F . W Kopieranstaltbetriebs- GmbH
:86: RG: 1001853
:61:100709C1296,41N078
:86:0666065284 Drukkerij Wilco BV Postbus 1477 3800 BL AMERSFOORT F
:86:ACT.NRS 1001851
:62F:C100709EUR29652,16
:64:C100709EUR29652,16
:65:C100710EUR29652,16
:65:C100711EUR29652,16
:65:C100712EUR29652,16
:65:C100713EUR34204,84
:65:C100714EUR34204,84
:65:C100715EUR34204,84
:86:D000000C000002D0,00C4181,81
:86:CF (Netherlands) Holding Limited BV
-XXX
If you have any Idea for upload data in ff.5 TCode please help.
Subasha SahooHi Sunita,
If your data is in a text file , simply save the file as tab delimited.
Then use FM 'GUI_UPOAD' to upload the file data into internal table.
Hope this helps.
Regards,
Abhijeet Kapgate -
Help needed with header and upload onto business catalyst
Can someone help with a problem over a header please?
I have inserted a rectangle with a jpeg image in background, in the 'header' section, underneath the menu. It comes up fine on most pages when previsualised, going right to the side of the screen, but stops just before the edge on certain pages. I have double checked that I have placed it in the right place in relation to the guides on the page.
That's one problem.
The second problem is that I tried to upload onto business catalyst, which got to 60% and refused to go any further, saying it couldn't find the header picture, giving the title and then u4833-3.fr.png. The picture is in the right folder I have double checked. And it isn't a png. Does it have to be ?
And the third problem is that I got an email following my upload from business catalyst in Swedish. I am living in France.
Can anyone help ? Thanks.Thanks for replying,
How can I check the preview in other browsers before I publish a provisional site with BC?
The rectangle width issue happens on certain pages but not others. The Welecom page is fine when the menu is active, also the contact page, but others are slightly too narrow. Changing the menu spacing doesn’t help - I was already on uniform but tried changing to regular and back.
In design mode the rectangle is set to the edge of the browser, that’s 100%browser width right?
Re BC I have about 200 images on 24 different pages and it seems to be having difficulty uploading some of them. But it has managed a couple I named with spaces but not others I named with just one name.
Is there an issue on size of pictures ? If I need to replace is there a quick way to rename and relink or do I have to insert the photos all over again?
I’m a novice with Muse with an ambitious site !
Thanks for your help.
Mary Featherstone
Envoyé depuis Courrier Windows
De : Sanjit_Das
Envoyé : vendredi 14 février 2014 22:15
À : MFeatherstone
Re: Help needed with header and upload onto business catalyst
created by Sanjit_Das in Help with using Adobe Muse CC - View the full discussion
Hi
Answering the questions :
- Have you checked the preview in Muse and also in other browsers ?
- Does the rectangle width issue happens when menu is active , or in any specific state , Try to change the menu with uniform spacing and then check.
- In design view the rectangle is set to 100% browser width ?
With publishing :
- Please try to rename the image file and then relink
- If it happens with other images as well , see if all the image names includes strange characters or spaces.
- Try again to publish
With e-mail from BC :
- Under preferences , please check the country selected.
- If you have previously created partner account in BC and selected country and language then it would follow that, please check that.
Thanks,
Sanjit
Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6121942#6121942
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6121942#6121942
To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6121942#6121942. In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Help with using Adobe Muse CC at Adobe Community
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0. -
I am using a bapi for getting data into infotype BAPI_EMPLOYEE_GETDATA.
Is there any BAPI for updating data ?
regards
Balajithese links might be useful...
http://help.sap.com/saphelp_nw70/helpdata/EN/44/b78765378b56a5e10000000a1553f6/content.htm -
BDC for Uploading data from XL sheet with unknown order of fields
Hi SAP Gurus,
My requirement is as follows,
A BDC is to be developed for uploading data from an XL sheet, but the problem here is , the order of fileds in the sheet can be changed .
ie, for example the fields in the XL sheet are :-
matnr maktx menge amount
but the user can give as
matnr amount menge maktx
or
maktx matnr amount menge
how i can solve this problem.
Thanks and Regards,
pavan.Hi Pavan,
You need to handle it by your self, you can create a dynamic table based on the file value.
The field name pass from file with the record as a header, and based on the header name create your dynamic table.
afterward you can pass your value to BDC.
for creating dynamic table you can use this method
call method cl_alv_table_create=>create_dynamic_table
exporting
i_style_table =
it_fieldcatalog = it_field[]
i_length_in_byte =
importing
ep_table = dyn_tab
e_style_fname =
exceptions
generate_subpool_dir_full = 1
others = 2
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
-Dhirendra -
Is there any BAPI for Upload Documents of WBS elements?
Hi Guys,
Can anbody tell me is there any BAPI for Uploading Documents of WBS elements ?
Thanks,
Gopi.hi
check these BAPI
Change WBS Elements Using BAPI
BAPI_BUS2054_CHANGE_MULTI
Create WBS Elements Using BAPI
BAPI_BUS2054_CREATE_MULTI
Delete WBS Elements Using BAPI
BAPI_BUS2054_DELETE_MULTI
Detail Data for WBS Elements
BAPI_BUS2054_GETDATA
Reading the GUIDs using the WBS Key
BAPI_BUS2054_GET_GUID_FROM_KEY
Reading the WBS Key using the GUIDs
BAPI_BUS2054_GET_KEY_FROM_GUID
Check Existence of a WBS Element
BAPI_PROJECT_EXISTENCECHECK
Element
thnks
sitaram -
Bapi for uploading opening balances for AUC
Hi All experts,
I want Bapi for uploading opening balances for AUC.
Please help me its urgent.hi ,
try
BAPI_GL_GETGLACCBALANCE - closing balance of G/L account for a chosen year.
BAPI_GL_GETGLACCCURRENTBALANCE - closing balance of G/L account for the current year
BAPI_GL_GETGLACCPERIODBALANCES - Posting period balances for each G/L account. -
Which one is better for uploading data LSMW or ECATT ?
I am going to implement my product in customer place.which tool I can use for uploading data.ECATT or LSMW whch one is better to upload master data and transaction data ,which one is user friendly?kindly guide me on this.
Hello TJK,
LSMW and eCATT has different functionalitites and different advantages, but common thing is they are used for data upload.
eCATT is mainly used as a testing tool for follow-on transactions i.e. Purchase Requisition, Purchase order, Goods Receipt etc.
Where as LSMW is used for Master data (Materials, Customer, Vendor, BOM, Inforecord etc) and some of the transactions data (Purchase order, purchase requisition)
There are many standard objects are available in LSMW so most of the consultants use LSMW, but again depends on the requirement.
This will help to understand the basics of eCATT.
/people/sumeet.kaul/blog/2005/07/26/ecatt-an-introduction
and here it is for LSMW
/people/hema.rao/blog/2006/09/14/lsmw--step-by-step
Hope this will help.
Regards
Arif Mansuri -
After upgrade from 4.6c to ECC6.0 F4 Help is not coming for few date fields
Hi Friends
Just now we have completed upgrade project from 4.6c to ECC6.0.
After upgrade F4 help is not working for some date fields.
For example its working in MB11,Its not working in va01,vf01 like that.
In abap side we checked ...not able to find any issues in coding level, because its a standard SAP code.
So if any solution is there to correct this issue.Kindly help me to resolve this asap.
Thanks
Gowrishankar
Edited by: gowrishankar p on Nov 17, 2009 7:25 AMHi
Please refer to the SAP note 1278056 and 1278115 - PDS Display: F4-characteristic values are not selectable. Hope this will resolve your issue.
Regards,
JB
Maybe you are looking for
-
Computer no longer recognizes SuperDrive
My early model iMac G5 (pre-iSight) has recently stopped recognizing the SuperDrive. There is currently a DVD in there, but the computer won't acknowledge it in any application or on the desktop. Looking at the system profiler, I get the message: No
-
Vsftpd: allow writeable root for anonymous user
Hi, I try to set up a simple FTP server which allows anonymous users to upload file into the root directory. I use the directive allow_writeable_chroot but I still get the following error: 500 OOPS: vsftpd: refusing to run with writable root inside c
-
after updating to 10.5 itunes will not let me add mp4 files to film library will let me do music ??? please help but will let my brother on him new laptop same file ???
-
Why did my apple ipad bank charges disappear?
So, I pre-ordered two iPads on 3/7 and was immediately debited the charges from my bank. Today I looked and the charges have disappeared...that is, the money is still in my account. However, my ship date on my order still says they will arrive on 3/1
-
Memory leaks in GC or something else on iOS
Hello. I am making a game by Adobe AIR for iOS. My application has a memory leak bug with using only iOS. So, I have some questions. Why is it different using memory size of between Scout and Instruments VM Tracker (Dirty size) ? Why is the differenc