How to Include House Number when Creating SO using BAPI
Dear Experts,
I am using BAPI BAPI_SALESORDER_CREATEFROMDAT2 to create a new Sales Order. I can actually create the sales order with all other fields right except for the HOUSE NUMBER in the SHIP-TO PARTY.
For the BAPI_SALESORDER_CREATEFROMDAT2, I have include the table ORDER_PARTNERS with structure BAPIPARNR. But when I check in the structure BAPIPARNR, there is only the field STREET (char 35) but no individual field for HOUSE NUMBER. May I ask how can I insert the HOUSE NUMBER to the Sales Order?
Points will be rewarded for helpful answers.
Thanks in Advance.
Hello,
1) BAPI is not returning the sales order number to the program but when checked from SE37 it is returning the sales order
number.
- are you passing simulation parameter (TESTRUN) as 'X'
2) It is not updating the VBFA (SD flow) table.
- Please use BAPI_SALESDOCUMENT_COPY for copying and updating VBFA table
Thanks
Krish
Similar Messages
-
Header data not coming from vendor master when creating SA using BAPI
Hello,
I am creating SA using BAPI_SA_CREATE. I am passing the vendor code and other header related data in the header table of the BAPI.
SA is created successfully with all the data that is passed to the BAPI. Now if the payment term and inco terms data is passed initial to BAPI then this data is not taken from vendor master. This data appears blank in SA.
Shouldn't this data be picked up from vendor master as they are maintained properly in vendor master?
I just need confirmation whether BAPI picks or not from vendor master if the data (payment term and inco terms) passed is initial.
Thanks and Regards,
SabaHi,
Are u passing X to corresponding fields of HEADER structure what ever you have populated in HEADER structure . -
How to register the recipient when create job by function
I am now use JOB_OPEN , JOB_SUBMIT and JOB_CLOSE to create a job in the program. And need to post the result of the report to the person by email.
Can you tell me how to register the recipient when create the job.
( in sm36, it is easily to do but how to do in coding? )
regards,
slamHi
I think in Back ground using the above fun modules you can't send a mail to the receipient.
see the use of the above fun modules;
IF p_bjob = 'X'.
CONCATENATE sy-cprog sy-datum sy-uzeit
INTO jobname SEPARATED BY '_'.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = jobname
IMPORTING
jobcount = jobcount
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
IMPORTING
out_archive_parameters = arc_params
out_parameters = print_params
valid = valid
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
IF valid = chk.
SUBMIT ybrep
WITH < sel Screen>
AND RETURN
USER sy-uname
VIA JOB jobname
NUMBER jobcount
TO SAP-SPOOL
SPOOL PARAMETERS print_params
ARCHIVE PARAMETERS arc_params
WITHOUT SPOOL DYNPRO.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = jobcount
jobname = jobname
strtimmed = 'X'
EXCEPTIONS
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
invalid_target = 8
OTHERS = 9.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
MESSAGE i029 WITH jobname.
ENDIF.
ELSE.
MESSAGE s000 WITH text-003.
STOP.
ENDIF.
ENDIF.
Reward points if useful
Regards
Anji -
How to get UTF-8 encoding when create XML using DBMS_XMLGEN and UTL_FILE ?
How to get UTF-8 encoding when create XML using DBMS_XMLGEN and UTL_FILE ?
Hi,
I do generate XML-Files by using DBMS_XMLGEN with output by UTL_FILE
but it seems, the xml-Datafile I get on end is not really UTF-8 encoding
( f.ex. cannot verifying it correct in xmlspy )
my dbms is
NLS_CHARACTERSET = WE8MSWIN1252
NLS_NCHAR_CHARACTERSET = AL16UTF16
NLS_RDBMS_VERSION = 10.2.0.1.0
I do generate it in this matter :
declare
xmldoc CLOB;
ctx number ;
utl_file.file_type;
begin
-- generate fom xml-view :
ctx := DBMS_XMLGEN.newContext('select xml from xml_View');
DBMS_XMLGEN.setRowSetTag(ctx, null);
DBMS_XMLGEN.setRowTag(ctx, null );
DBMS_XMLGEN.SETCONVERTSPECIALCHARS(ctx,TRUE);
-- create xml-file:
xmldoc := DBMS_XMLGEN.getXML(ctx);
-- put data to host-file:
vblob_len := DBMS_LOB.getlength(xmldoc);
DBMS_LOB.READ (xmldoc, vblob_len, 1, vBuffer);
bHandle := utl_file.fopen(vPATH,vFileName,'W',32767);
UTL_FILE.put_line(bHandle, vbuffer, FALSE);
UTL_FILE.fclose(bHandle);
end ;
maybe while work UTL_FILE there is a change the encoding ?
How can this solved ?
Thank you
Norbert
Edited by: astramare on Feb 11, 2009 12:39 PM with database charsetsMarco,
I tryed to work with dbms_xslprocessor.clob2file,
that works good,
but what is in this matter with encoding UTF-8 ?
in my understandig, the xmltyp created should be UTF8 (16),
but when open the xml-file in xmlSpy as UTF-8,
it is not well ( german caracter like Ä, Ö .. ):
my dbms is
NLS_CHARACTERSET = WE8MSWIN1252
NLS_NCHAR_CHARACTERSET = AL16UTF16
NLS_RDBMS_VERSION = 10.2.0.1.0
-- test:
create table nh_test ( s0 number, s1 varchar2(20) ) ;
insert into nh_test (select 1,'hallo' from dual );
insert into nh_test (select 2,'straße' from dual );
insert into nh_test (select 3,'mäckie' from dual );
insert into nh_test (select 4,'euro_€' from dual );
commit;
select * from nh_test ;
S0 S1
1 hallo
1 hallo
2 straße
3 mäckie
4 euro_€
declare
rc sys_refcursor;
begin
open rc FOR SELECT * FROM ( SELECT s0,s1 from nh_test );
dbms_xslprocessor.clob2file( xmltype( rc ).getclobval( ) , 'XML_EXPORT_DIR','my_xml_file.xml');
end;
( its the same when using output with DBMS_XMLDOM.WRITETOFILE )
open in xmlSpy is:
<?xml version="1.0"?>
<ROWSET>
<ROW>
<S0>1</S0>
<S1>hallo</S1>
</ROW>
<ROW>
<S0>2</S0>
<S1>straޥ</S1>
</ROW>
<ROW>
<S0>3</S0>
<S1>m㢫ie</S1>
</ROW>
<ROW>
<S0>4</S0>
<S1>euro_</S1>
</ROW>
</ROWSET>
regards
Norbert -
New validation - don't inform material number when creating
Hello!!!
I'd need to create a validation in order to avoid informing the field 'SAP Material number' when creating a new entry in MDM Data Manager for specific material types (material type is a lookup field which has two values, let's say 1 and 2).
For material type 1, we need to inform, when creating the entry, the material type 1, supplier name and supplier reference, but not the SAP material number, as it comes informed through an interface from SAP R/3.
For material type 2, we only need to inform the SAP material number.
Could you guide me on how to do this validation?
Thank you,
Carlos Santamaría.Hello,
The data flow is as follows:
There are two scenarios, one for Goods:
1. Add new record into the Data Manager.
2. Inform field 'Material type' (lookup field) Goods.
3. Inform field 'Supplier name' (lookup field).
4. Inform field 'Supplier reference' (text field).
5. Field 'SAP material number' must be left EMPTY when creating the new record. Once it's created, there is an interface from SAP R/3 which updates through ABAP API the records, informing the SAP material number and other fields informed in SAP R/3.
The validation should avoid that the user informs the material number when creating the new record.
Second scenario is for Finished Goods:
1. Add new record into the Data Manager.
2. Inform field 'material type' (lookup field) Finished goods.
3. Inform field 'SAP material number' (text field).
4. Optionally it is possible to inform Supplier name and Supplier reference, but it's not always inform.
There is already a validation rule that force the user to inform 'Supplier name and supplier reference for Goods, and for Finished goods it's mandatory to inform the SAP material number.
There is another field which is 'Unique key' which is a calculated field and it's composed by SAP material number + Supplier number + Supplier reference.
Our problem is to avoid that the user informs the SAP material number only for Goods. If the user does it, the interface will not work as it is designed.
Thanks for your feedback. -
Beginner's question: Find Warehouse Number when creating a Tranfer Order
How do I find the Warehouse Number when creating a Tranfer Order?
Hi..
If you are creating Transfer Order with reference to an Outbound Delivery, THen you will find the warehouse number ont he Picking tab page of the Delivery Document Overview Screen.
The warehouse in the Delivery is determined by the assigment of warehouse Number to the combination of Plant and Storage location in the IMG --> Enterprise Structure --> Assignment --> Logistics Execution
If you want to do a transfer posting....
The other way is Go to table MLGN. and give the material number for which you want to cerate the transfer order and see it is stored in which warehouses.
Tcode LS24 will give the Stock Over View of Material per Warehouse.
Thanks,, -
How to find port number , when there will be different instance number ?
In case of portal url,
port number is 50000 for default instance number 00.
how to find port number , when there will be different instance number , instead of 00?
ThanksHi
You can find the port number by your instance number as follows:
There is a general format for the port number like you have mentioned.
For 00 instance the port number is 50000.
The general format for the port number goes like this:
<b>5<instance_no>00</b>
If your <b>instance number is 01</b> then the port number would be <b>50100</b>.
It depends on the installation type which you perform.
You can also change the instance number during the installation but normally you dont do this.
If you have many components or units installed on your system you may have more than one instance in that case it may go like this 00, 01, 02....accordingly port number will be 50000, 50100, 50200...resp.
Hope this solves your doubt.
If you need some more clarification please lemme know.
Regards
Sumit Jain
**Rewrd with points if useful. -
Can't select "include book documents" when creating index in InDesign CC
I'm trying to make an index for several dokuments in a book. I've made the index but when I try to generate the index the checkbox is greyed out so I can't check it. Do You know what's wrong?
Thank You. That worked well.
One more question: It looks as if the index does not include the words of all the documents in the book. Is it something I do wrong?
Thanks
Henning
Fra: Peter Spier <[email protected]<mailto:[email protected]>>
Svar til: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
Dato: onsdag 10. juli 2013 13:04
Til: Henning Kristoffersen <[email protected]<mailto:[email protected]>>
Emne: Can't select "include book documents" when creating index in InDesign CC
Re: Can't select "include book documents" when creating index in InDesign CC
created by Peter Spier<http://forums.adobe.com/people/P+Spier> in InDesign - View the full discussion<http://forums.adobe.com/message/5491834#5491834 -
How to add multiple table when creating add on using b1de
Hi all,
Plz help me
How to add multiple table when creating add on using b1de.
ThanksHi dns_sap,
Can you explain a little better what you are trying to accomplish? Is it to create UserTables and UserFields in the database, when the addon runs the first time?
If so, you can use the following code
Add User Table
Try
Dim lRetCode As Long
Dim oUDT As SAPbobsCOM.UserTablesMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserTables)
oUDT.TableName = TableName
oUDT.TableDescription = TableDescription
oUDT.TableType = TableType
lRetCode = oUDT.Add
'// Check for error when adding the Table: if lRetCode = 0 the table was created; if lRetCode = -2035 the table already exisits
If lRetCode <> 0 Then
oApplication.MessageBox("Error: " & lRetCode.ToString & ", " & oCompany.GetLastErrorDescription)
End If
Catch ex As Exception
oApplication.MessageBox(oCompany.GetLastErrorDescription)
Finally
System.Runtime.InteropServices.Marshal.ReleaseComObject(oUDT)
oUDT = Nothing
lRetCode = Nothing
GC.Collect()
End Try
Add User Field
Try
Dim lRetCode As Long
Dim oUDF As SAPbobsCOM.UserFieldsMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields)
oUDF.TableName = TableName
oUDF.Name = FieldName
oUDF.Description = FieldDescription
oUDF.Type = FieldType
lRetCode = oUDF.Add
'// Check for error when adding the field: if lRetCode = 0 the field was created; if lRetCode = -2035, the field already exists
If lRetCode <> 0 Then
oApplication.MessageBox("Error: " & oCompany.GetLastErrorCode & ", " & oCompany.GetLastErrorDescription)
End If
Catch ex As Exception
oApplication.MessageBox(oCompany.GetLastErrorDescription)
Finally
System.Runtime.InteropServices.Marshal.ReleaseComObject(oUDF)
oUDF = Nothing
lRetCode = Nothing
GC.Collect()
End Try
Regards,
Vítor Vieira -
How to create invoice using bapi base on delivery number with example
hi,
Pl give me one example to create invoice using bapi base on delivery number (PGI).Use this code
* Pass the delivery no to the FM to create the invoice
wa_vbsk-smart = u2018Fu2019.
wa_komfk-vbeln = nast-objky. u201CuF0DF-----delivery number
APPEND wa_komfk TO it_komfk.
CLEAR wa_komfk.
* To fill the message structure
* l_wa_error-vbeln_vl = nast-objky. " Delivery No.
* l_wa_error-fkart = wa_ztab-bil_doc_type." Billing Doc type
CALL FUNCTION 'RV_INVOICE_CREATE'
EXPORTING
* delivery_date = 0
invoice_date = v_date u201C<- date
* invoice_type = ' '
* pricing_date = 0
vbsk_i = wa_vbsk
with_posting = u2018Du2019
* select_date = 0
i_no_vblog = ' '
i_analyze_mode = ' '
id_utasy = ' '
id_utswl = ' '
id_utsnl = ' '
id_no_enqueue = ' '
id_new_cancellation = ' '
** IMPORTING
* VBSK_E =
* OD_BAD_DATA =
* DET_REBATE =
TABLES
xkomfk = it_komfk
xkomv = it_komv
xthead = it_thead
xvbfs = it_vbfs
xvbpa = it_vbpa
xvbrk = it_xvbrk
xvbrp = it_vbrp
xvbss = it_vbss
* XKOMFKGN =
* XKOMFKKO = -
Error when generating program when creating CVC using infoprovider
We are receiving the message "Error when generating program" when
creating CVC using infoprovider.
This may have something to do with the fact that we added an attribute
to the infoObject 9ALOCNO. We are getting an information message if we
run a consistency check in the POS.
We had this same issue in our development system. Here, I deactivated
and then reactivated the CVCs and this resolved the problem. However,
this is not a good solution since this is also a problem in our
production system and we do not want to deactivate the POS.
is there another option to fix this problem?
Thank you,
RumiHi Rumi,
i would try these:
1. Make sure the cube is active and every thing ok there
2. Run programs /SAPAPO/TS_PSTRU_CONS_CHECK on POS and /SAPAPO/TS_LCM_CONS_CHECK on planning area respectively.
3. Check the CVC creation log in transaction /n/sapapo/mc62 for more details. -
How to set request number of info package using start routine
Hi All,
I have a specific requirement in which I need to upload only selective request nos from PSA to DSO.
Any one can suggest how to set request number of info package using start routine or any other mode so that only selective request should proceed using DTP?
Thanks
SangitaYou'll probably want to do this in a start routine. It is probably not advisable to hard-code the technical name of the InfoPak. They seem to remain the same upon transport, unlike DTP technical names which are locally generated.
I would do a SQL select like this in a start routine, and then filter based on the results of the SQL. You'll probably want to sort the results by date and time, both descending. Or do a MAX in the SQL.
Please let me know if this isn't clear.
select q~rnr q~logdpid q~tdatum q~tuzeit
from rsreqdone as q
inner join rsldpio as p
on p~logdpid = q~logdpid
where p~objvers = 'A'
and p~logdpid like 'ZPAK%'
and p~source = 'your data source' -
Fail when creating routing through bapi.
what are the mandatrory steps to create routing using bapi fm ( bapi_routing_create )?
when i create routing using bapi it is showing the routing is created succesfull but it is not updating in the standard table plko .after bapi use commit
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'. -
How to read line number text from PDF using plugin?
Hi, I would like to know how to read line number text from PDF using plugin?
Thanks in advance.Ok, some background reading of the PDF Reference will help you understand why this is so difficult. PDF files are not organised into lines. It is best to think of each word or character on the page as being a graphic with its own position. The human eye sees lines where a series of graphics (words) are roughly in the same horizontal region.
In the general case it is difficult or even impossible to answer this. You may have columns with different spacing (but the PDF stores no information on what is a column). You may have subscripts and superscripts. You may have text in graphics coinciding with other text. Commonly, there may be titles, headings or page numbers which are just ordinary text and might count as lines.
That said, what you need to do is extract the text on the page and its positions. The WordFinder APIs are the way to do that. Now, sort all the words out, using the Y coordinates and size to try and guess what makes a "line". Now you are in a position to find the text (divided into words, not strings) and report the "line number" you have estimated. -
Hi,
I am trying to create PDF using BAPI. I got one BAPI(Z_MM_EPSP_BAPI_GET_PO_PDF). That bapi returns bytecodes. How can I generate PDF file using this BAPI output in BLS. Give some example
Thanks & Regards
ArtArt,
Are you familiar with xMII at all? I would like to answer your question but it seems more like a tutoring lesson rather than a technical problem.
Please post a problem and not how somone can help you do your work. Unless of course you are willing to paypal some money over. :-D
Maybe you are looking for
-
Creating follow-up document in actions
Hello all, I need to create a followup document in actions with specific process_type (transaction type) and channel type (category example: in-call , email..) Now, I am able to pass my transaction type as an import param
-
"an error occurred when trying to change modules"
When I switch repeatedly between Library and Develop with the R and E keys, I always sooner or later run into a problem where nothing happens when I press R. Really that should go the Develop module and enter crop mode -- what I'm usually trying to d
-
Is there any kind of change log for UME?
Is there any kind of logging of changes to users or roles in UME? We are on GRC 5.3 SP13. We have a strange situation in our production RAR system. The Change History shows some changes where made to a function on 7/8. However the userid indicated
-
Hi Folks, I've got a simple terminal command...hamachi start...that I would like to run as LaunchAgent plist file or as an executable file triggered by a LaunchAgent. For the former I currently have: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE p
-
PSE -5, loss in sharpness of pictures when placed in slide show
In PSE-5, when good pictures are transferred from tagged groups to the slide show, there is a significant loss of picture quality despite using "high quality". Is there a way to make the pictures in slide show have the same quality an in the storage